activating API key results in error




4 years ago
4 years ago


(Reporter: florijn.peter, Unassigned)





4 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805

Steps to reproduce:

I tried to activate a API key ( Preferences).

When I submit Bugzilla gives this error. 

Actual results:

An unexpected error occurred. This could be a temporary problem, or some code is behaving incorrectly. If this problem persists, please email this page to [removed].com with details of what you were doing at the time this message appeared.

URL: http://localhost/bugzilla/
There was an error sending mail from 'bugzilla-daemon' to '': no sender


 at Bugzilla/ line 181.
	Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/ line 222
	Bugzilla::Mailer::send_staged_mail(...) called at Bugzilla/ line 1223
	Bugzilla::DB::bz_commit_transaction(...) called at Bugzilla/ line 540
	Bugzilla::Object::update(...) called at Bugzilla/ line 220
	Bugzilla::User::update(...) called at Bugzilla/Auth/ line 123
	Bugzilla::Auth::Verify::create_or_update_user(...) called at Bugzilla/Auth/Verify/ line 71
	Bugzilla::Auth::Verify::Stack::create_or_update_user(...) called at Bugzilla/ line 67
	Bugzilla::Auth::login(...) called at line 311
	Bugzilla::login(...) called at /Library/WebServer/Documents/bugzilla/index.cgi line 21

Expected results:

API key should have been mailed.


4 years ago
Component: Bugzilla-General → Installation & Upgrading
> There was an error sending mail from 'bugzilla-daemon' to '': no sender

this is a configuration issue with regards to your MTA.
some MTAs require a full-formed email address as the sender; you need to updates your 'mailfrom' parameter.
Last Resolved: 4 years ago
Resolution: --- → INVALID

Comment 2

4 years ago
@glob: I assumed this, but I can't even correct this because this error persist when I try to login.

when I run I get :

Removing existing compiled templates...
Precompiling templates...done.
Fixing file permissions...
There was an error sending mail from 'bugzilla-daemon' to
'': no sender
odd; checksetup doesn't generate emails.  have you installed any bugzilla extensions, such as testopia?
if so, try running checksetup with those extensions disabled (create an empty "disabled" file in their directory).

note: if you can't successfully run checksetup, bugzilla may not be working.

Comment 4

4 years ago
Yes I have Testopia installed. Disabled this with empty disabled file.

Results are the same:
There was an error sending mail from 'bugzilla-daemon' to
'': no sender

Looks there is a mail stuck somewhere in a queue ?

Can I try to set mailfrom in params.json ?

Comment 5

4 years ago
1. scratch my database (my test environment)
2. added smtp settings to data/params.json
3. run again
4. login to bugzilla succeeded again
5. created API key (succesful, without errors)

I did not receive a confirmation mail, but this is probably due to incorrect smtp settings.
You need to log in before you can comment on or make changes to this bug.