Bugzilla 缺少超级用户信息

Bugzilla 缺少超级用户信息

我在系统上设置了 Bugzilla 服务器,但意外丢失了登录信息。我对此进行了研究,但目前没有任何效果。我尝试过以下方法:

我尝试使用 MySQL 界面添加更多管理用户。从命令行运行“mysql”,并使用以下命令:

mysql> use bugs;<br />
mysql>  update profiles set groupset=0x7ffffffffffffff where login_name = "admin";<br />

我收到一条错误消息:

ERROR 1054 (42S22): Unknown column 'groupset' in 'field list'

我还找到了我用于注册管理员的电子邮件,但我无法恢复我的密码:

mysql> select login_name from profiles where userid=1; 
+-------------------+
| login_name        |
+-------------------+
| [email protected] |
+-------------------+
1 row in set (0.00 sec)

每当我尝试删除超级用户时都会收到以下信息:

mysql> delete from  profiles where userid=1; 
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`bugzilla`.`components`, CONSTRAINT `fk_components_initialowner_profiles_userid` FOREIGN KEY (`initialowner`) REFERENCES `profiles` (`userid`) ON UPDATE CASCADE)
mysql> update profiles set groupset=0x7ffffffffffffff where login_name = "(user's login name)";

我使用以下方式更改了密码

sudo checksetup.pl [email protected]

尝试登录到本地主机 Bugzilla 用户 ID:[电子邮件保护] 密码:(我的密码)

我收到以下内部错误:

Bugzilla has suffered an internal error. Please save this page and send it to [email protected] with details of what you were doing at the time this message appeared.

There was an error sending mail from 'bugzilla-daemon' to '[email protected]': Couldn't find 'sendmail' executable in your PATH and $Email::Send::Sendmail::SENDMAIL is not set
Traceback:

 at Bugzilla/Mailer.pm line 190
    Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/Token.pm line 307
    Bugzilla::Token::Cancel(...) called at Bugzilla/Token.pm line 323
    Bugzilla::Token::DeletePasswordTokens(...) called at Bugzilla/Auth/Verify/DB.pm line 85
    Bugzilla::Auth::Verify::DB::check_credentials(...) called at Bugzilla/Auth/Verify/Stack.pm line 62
    Bugzilla::Auth::Verify::Stack::check_credentials(...) called at Bugzilla/Auth.pm line 72
    Bugzilla::Auth::login(...) called at Bugzilla.pm line 345
    Bugzilla::login(...) called at /var/www/bugzilla/index.cgi line 40

有没有办法更改用户名?

目前还没有效果。我该如何登录 Bugzilla?谢谢

答案1

sudo checksetup.pl [email protected]

是您因忘记密码而无法登录问题的正确解决方案。

但是,您遇到了另一个问题。您的电子邮件配置设置不正确。(在这种情况下,Bugzilla 不应该抛出错误;您可能希望针对此问题提交错误报告。)

要暂时解决这个问题,请编辑文件

data/params

并将“mail_delivery_method”设置为“Test”。这应该可以防止它寻找 sendmail。

格夫

相关内容