problem in Eden register and login, help!

176 views
Skip to first unread message

weixin

unread,
Apr 7, 2013, 10:05:24 PM4/7/13
to sahan...@googlegroups.com
Hi,
     I am so interested in eden project and I hope to do something for eden in GSOC 2013. I have finished installation on Ubuntu 12.04.1, and I think I have configured well according to tutorials and guidelines. But I have trouble in register. When I finished the blanks and press the button "register", It went to  an error page, showing the errors"

Error ticket for "eden"

127.0.0.1.2013-04-08.09-19-05.3b2cef2b-6011-415b-9b43-b91e0767522e

<type 'exceptions.Exception'> Server address not specified

web2py™Version 2.4.6-stable+timestamp.2013.04.06.12.11.51
PythonPython 2.7.3: /usr/bin/python (prefix: /usr)
"
I don't know this is a bug of the current project, or my mistake in configuration. In fact, I remembered that I had registered Eden successfully about four days ago, though some login bugs existed. But tomorrow after a "git pull" to now I can't. So hope someone can figure out my mistakes and help me!
 
Best Regards!
weixin

Pat Tressel

unread,
Apr 8, 2013, 7:51:04 AM4/8/13
to sahan...@googlegroups.com
Hi, Weixin!

(Have I got your name right?)

 I am so interested in eden project and I hope to do something for eden in GSOC 2013.

Great!!
 
I have finished installation on Ubuntu 12.04.1, and I think I have configured well according to tutorials and guidelines. But I have trouble in register. When I finished the blanks and press the button "register", It went to  an error page, showing the errors"

Error ticket for "eden"

127.0.0.1.2013-04-08.09-19-05.3b2cef2b-6011-415b-9b43-b91e0767522e

<type 'exceptions.Exception'> Server address not specified

web2py™Version 2.4.6-stable+timestamp.2013.04.06.12.11.51
PythonPython 2.7.3: /usr/bin/python (prefix: /usr)
"
I don't know this is a bug of the current project, or my mistake in configuration. In fact, I remembered that I had registered Eden successfully about four days ago, though some login bugs existed.

 
Can you open the ticket page?  What was right before the error message "<type 'exceptions.Exception'> Server address not specified"?  There should be a stack trace showing where the error happened.

I think I can guess what that is, though...  If you look in web2py/gluon/tools.py, you'll find that "Server address not specified" message, and it is coming from the email send method.  It means there was no email server specified, so it couldn't send email asking you to verify your email.  ;-)

Ubuntu should be able to send email on its own, so you shouldn't need to have an email server.  Look at the lines about email in your models/000_config.py file:

https://github.com/flavour/eden/blob/master/private/templates/000_config.py#L79

For Linux, un-comment these two lines:

settings.mail.server = "127.0.0.1:25"
settings.mail.tls = True

And it's good to have a real email account for the sender, so replace sah...@example.org -- for my local copy of Eden, I just put in my address.

settings.mail.sender = "'Sahana' <sah...@example.org>"


But tomorrow after a "git pull" to now I can't. So hope someone can figure out my mistakes and help me!

Some times, with a code change, there is a big enough change in the database schema that Web2py can't "migrate" the old database to the new schema, and it is not worth making the changes to the database by hand, when it's just test data.  So sometimes developers just delete their database and start with a fresh one after updating their code.  ;-)  So if changing the email configuration doesn't fix the problem, then also try deleting your database.

-- Pat

weixin

unread,
Apr 8, 2013, 9:54:55 AM4/8/13
to sahan...@googlegroups.com
Hi,Pat
        Thanks for your advices sincerely. I have got the answer by reinstalling Eden. The error came from the variable "deployment_settings.auth.hmac_key" in the file "000_config.py". It was my fault that I got a wrong copy of 000_config.py from another PC which covered the original one produced after my first registeration, and I didn't realize the seriousness of the problem. One PC, one hmac_key value! :)

在 2013年4月8日星期一UTC+8下午7时51分04秒,Pat Tressel写道:

Pat Tressel

unread,
Apr 9, 2013, 7:48:45 AM4/9/13
to sahan...@googlegroups.com

Hi, Weixin!

        Thanks for your advices sincerely. I have got the answer by reinstalling Eden. The error came from the variable "deployment_settings.auth.hmac_key" in the file "000_config.py". It was my fault that I got a wrong copy of 000_config.py from another PC which covered the original one produced after my first registeration, and I didn't realize the seriousness of the problem. One PC, one hmac_key value! :)

Aha!!

Great to hear you diagnosed the problem, and that it's working now!

-- Pat
Reply all
Reply to author
Forward
0 new messages