Bugzilla安装,亲自安装成功,解决发邮件问题.doc_第1页
Bugzilla安装,亲自安装成功,解决发邮件问题.doc_第2页
Bugzilla安装,亲自安装成功,解决发邮件问题.doc_第3页
Bugzilla安装,亲自安装成功,解决发邮件问题.doc_第4页
Bugzilla安装,亲自安装成功,解决发邮件问题.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Bugzilla安装与配置1.安装依赖yum install mysqlyum install mysql-develyum install perl2.解压bugzillatar xzf bugzilla-3.6.3.tar.gz利用checksetup.pl脚本检查所需perl模块是否齐全 cd bugzilla-3.6.3./checksetup.pl -check-modules /usr/bin/perl install-module.pl -all如果在安装中出现YAML version is too low 的错误,解决办法如下:vi ./bugzilla-3.6.3/lib/CPAN.pm,在第59行之后加入 “use YAML;”再执行安装。3.创建mysql数据库/etc/init.d/mysqld start/usr/bin/mysqladmin -u root password 123456mysql uroot pcreate database bugs;4.修改bugzilla配置文件 Vi ./bugzilla-3.6.3/localconfig设置如下参数:$db_driver = mysql;$db_host = localhost;$db_name = bugs;$db_user = ;$db_pass = *;5.执行安装,并设置管理员的登录邮箱、密码、用户名./checksetup.plEnter the e-mail address of the administrator: Enter the real name of the administrator: renliangEnter a password for the administrator account:Please retype the password to verify: is now set up as an administrator.Creating initial dummy product TestProduct.Now that you have installed Bugzilla, you should visit the Parameterspage (linked in the footer of the Administrator account) to ensure itis set up as you wish - this includes setting the urlbase option tothe correct URL.6.http server服务器的配置1.mv ./bugzilla-3.6.3 /var/www/html/bugs2.httpd.conf配置文件,添加如下内容AddHandler cgi-script .cgiOptions +Indexes +ExecCGIDirectoryIndex index.cgiAllowOverride Limit改完之后重启Server7.邮件设置AdministrationParametersemail,进行如下设置:7.关于邮件发不出的定位方法:1、The new value for smtp_username is invalid: SMTP Authentication is not available. Run checksetup.pl for more details.这是我在Bugzilla中Create New Account的时候发验证邮件时产生的,这个的原因是Perl有个模块没有安装,安装下就可以了sudo perl install-module.pl Authen:SASL自己先可以通过$ ./checksetup.pl check-modules查看下已经安装了哪些模块只要安装好,上述的这个问题就解决了2、提示邮件成功发送,但是实际邮件没有发送出去,因为我填的邮箱没有收到邮件在这里我原先是开启了use_mailer_queue这个功能于是我选择使用Test模式(Parameters - Email - mail_delivery_method - SMTP)再发了一次,mailer.testfile木有邮件网 络上有人和我是一样的问题,发不出去邮件,我参看这里/ever_love/blog/item /62473a9772800846d0135e2c.html的方法,把use_mailer_queue关闭(Parameters - Email - use_mailer_queue - Off),再试着发送一次,果真mailer.testfile当中有邮件了这样就基本定位到问题use_mailer_queue没有正常工作于是又把use_mailer_queue开启执行下面的命令$ $BUGZILLA_HOME/jobqueue.pl checkConfiguration looks okayjobqueue.pl running pid 53179 jobs in the queue.看起来似乎正常,但是提示9 jobs in the queue,并且这个数目一直没有减少,这说明邮件几乎都被堵塞在这里了,而并没有发出去于是又Debug发现$ $BUGZILLA_HOME/jobqueue.pl -f -d restart(实际中我执行了该指令后邮件就发出来了)Killing 9657Starting upTheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobs几乎神了,这里又说没有错误,那到底是哪里出问题了呢?目前无解,求解ING。UPDATE 后来经过分析解决了此问题虽然debug jobqueue出来的信息开头几个没有发现什么异常,但是经过很多个“TheSchwartz:work_once found no jobs”之后出来一些错误信息,如下:TheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobs.TheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobsTheSchwartz:work_once got job of class Bugzilla:Job:MailerWorking on Bugzilla:Job:Mailer Use of uninitialized value $hostname in concatenation (.) or string at Bugzilla/Mailer.pm line 153.job failed. considering retry. is max_retries of 725 = failures of 5?job failed: There was an error sending mail from bugzilla_admin :Cant call method “address” on an undefined value atlib/Email/Send/SMTP.pm line 25.TheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobsTheSchwartz:work_once got job of class Bugzilla:Job:MailerWorking on Bugzilla:Job:Mailer Use of uninitialized value $hostname in concatenation (.) or string at Bugzilla/Mailer.pm line 153.job failed. considering retry. is max_retries of 725 = failures of 5?job failed: There was an error sending mail from bugzilla_admin :Cant call method “address” on an undefined valueat lib/Email/Send/SMTP.pm line 25.TheSchwartz:work_once found no jobsTheSchwartz:work_once found no jobs是我省略掉了很多这样相同的状态看起来这个jobqueue当中的任务不是立即就执行了的,它可能是经过某种算法才执行的否则不应该出现第一个就是“TheSchwartz:work_once found no jobs”,到后面才有任务执行的并且进一步发现这些任务队列都是放在数据库当中的一张表(ts_job)中的,任务成功一个就把它从这张表中删除不过此时问题还没有解决,认真看下错误,并且看了指出的错误地方的源代码,觉得应该是mailfrom填错了,可能我这里填的不完整又打开SMTP的调试开关(Parameters - Email - smtp_debug - On),这样能看到更多的详细信息,基本觉得问题就在这了于是我填写了标准的邮件格式“”之后再试,邮件还不没有发出去,jobqueue的的数量又增加了一个,看来可能前面的这些包含错误信息的队列已经将后面的阻塞了,于是我试着将ts_job表当中的数据删除truncate table ts_job; / 反正我这里是直接truncate掉了的,我不知道这里delete和truncate有没有区别再次注册了一遍,看到后台输出通知邮件发送成功的信息,如下:TheSchwartz:work_once found no jobsTheSchwartz:work_once got job of class Bugzilla:Job:MailerWorking on Bugzilla:Job:Mailer Net:SMTP Net:SMTP(2.31)Net:SMTP Net:Cmd(2.29)Net:SMTP Exporter(5.63)Net:SMTP IO:Socket:INET(1.31)Net:SMTP IO:Socket(1.31)Net:SMTP IO:Handle(1.28)Net:SMTP=GLOB(0xb79ce68) EHLO localhost.localdomainNet:SMTP=GLOB(0xb79ce68) 250-Net:SMTP=GLOB(0xb79ce68) 250-PIPELININGNet:SMTP=GLOB(0xb79ce68) 250-SIZE 52428800Net:SMTP=GLOB(0xb79ce68) 250-AUTH LOGIN PLAINNet:SMTP=GLOB(0xb79ce68) 250-AUTH=LOGINNet:SMTP=GLOB(0xb79ce68) AUTH LOGINNet:SMTP=GLOB(0xb79ce68) MAIL FROM:Net:SMTP=GLOB(0xb79ce68) RCPT TO:Net:SMTP=GLOB(0xb79ce68) DATANet:SMTP=GLOB(0xb79ce68) From: Net:SMTP=GLOB(0xb79ce68) To: Net:SMTP=GLOB(0xb79ce68) Subject: Bugzilla: confirm account creationNet:SMTP=GLOB(0xb79ce68) X-Bugzilla-Type: adminNet:SMTP=GLOB(0xb79ce68) X-Bugzilla-URL:Net:SMTP=GLOB(0xb79ce68) Auto-Submitted: auto-generatedNet:SMTP=GLOB(0xb79ce68) Content-Type: text/plain; charset=”UTF-8Net:SMTP=GLOB(0xb79ce68) MIME-Version: 1.0Net:SMTP=GLOB(0xb79ce68) Date: Tue, 05 Apr 2011 16:05:23 +0800Net:SMTP=GLOB(0xb79ce68)Net:SMTP=GLOB(0xb79ce68) Bugzilla has received a request to create a user accountNet:SMTP=GLOB(0xb79ce68) using your email address ().Net:SMTP=GLOB(0xb79ce68)Net:SMTP=GLOB(0xb79ce68) To continue creating an account using this email address, visit theNet:SMTP=GLOB(0xb79ce68) following li

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论