Error in register or login

15 views
Skip to first unread message

Sarthak Mehrish

unread,
Jan 9, 2015, 2:34:12 PM1/9/15
to sahan...@googlegroups.com
Hey

I have just deployed sahana on my local machine and have followed all the steps documented in wiki. Also have used the data IFRC as mentioned.

But when i am trying to login or register i am facing an error for which i have pasted the log below - 

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Traceback (most recent call last):
File "/home/sarthakmeh/Documents/Git/web2py/gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "/home/sarthakmeh/Documents/Git/web2py/applications/eden/controllers/default.py", line 1255, in <module>
File "/home/sarthakmeh/Documents/Git/web2py/gluon/globals.py", line 393, in <lambda>
self._caller = lambda f: f()
File "/home/sarthakmeh/Documents/Git/web2py/applications/eden/controllers/default.py", line 505, in user
form = auth()
File "/home/sarthakmeh/Documents/Git/web2py/gluon/tools.py", line 1438, in __call__
return getattr(self, args[0])()
File "applications/eden/modules/s3/s3aaa.py", line 756, in login
self.log_event(log % self.user)
File "/home/sarthakmeh/Documents/Git/web2py/gluon/tools.py", line 2021, in log_event
description=str(description % vars),
KeyError: 'id'
Any suggestion will be helpful.

Thanks

graeme

unread,
Jan 9, 2015, 2:54:13 PM1/9/15
to sahan...@googlegroups.com
Could you provide the wiki address. There are several wiki pages that describe how to set up eden depending upon your system. How did you get the code, was it from github? Did you get any message during the prepopulate process?

--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/bbb2069f-e5de-4566-af3e-cf9592dec856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sarthak Mehrish

unread,
Jan 9, 2015, 3:04:43 PM1/9/15
to sahan...@googlegroups.com
I used this http://eden.sahanafoundation.org/wiki/InstallationGuidelines/Developer/PostPython to set up the eden on my machine. And yes i first forked the repo of eden and then clone it on my machine. 


I got this when i run eden from terminal.
Please be patient whilst the database is populated
Pre-populate task completed in 0.60 mins
Pre-populate task completed in 0.97 mins

But also i am getting many validation errors few of which i have copied below - 

WARNING: Unable to find table org_region import job skipped
/home/sarthakmeh/Documents/Git/web2py/applications/eden/modules/templates/IFRC/deploy_job_title.csv - hrm_job_title: Validation error


/home/sarthakmeh/Documents/Git/web2py/applications/eden/modules/templates/IFRC/Train/project_organisation.csv - project_organisation: Validation error

I am using Ubuntu 13.10,

Dominic König

unread,
Jan 9, 2015, 3:09:31 PM1/9/15
to sahan...@googlegroups.com
The "validation errors" during database pre-population can safely be ignored.

The error during login has been fixed this morning - try upgrading your
installation to the latest trunk version of Eden.

Regards,
Dominic

fredagen den 9 januari 2015 12.04.42 skrev Sarthak Mehrish:
> I used
> this
> http://eden.sahanafoundation.org/wiki/InstallationGuidelines/Developer/Post
> >> <http://127.0.0.1:8000/admin/default/edit/eden/controllers/default.py>
> >> , line 1255, in <module> File
> >> "/home/sarthakmeh/Documents/Git/web2py/gluon/globals.py", line 393, in
> >> <lambda>>>
> >> self._caller = lambda f: f()
> >>
> >> File
> >> "/home/sarthakmeh/Documents/Git/web2py/applications/eden/controllers/d
> >> efault.py"
> >> <http://127.0.0.1:8000/admin/default/edit/eden/controllers/default.py>
> >> , line 505, in user>>
> >> form = auth()
> >>
> >> File "/home/sarthakmeh/Documents/Git/web2py/gluon/tools.py", line 1438,
> >> in __call__>>
> >> return getattr(self, args[0])()
> >>
> >> File "applications/eden/modules/s3/s3aaa.py", line 756, in login
> >>
> >> self.log_event(log % self.user)
> >>
> >> File "/home/sarthakmeh/Documents/Git/web2py/gluon/tools.py", line 2021,
> >> in log_event>>
> >> description=str(description % vars),
> >>
> >> KeyError: 'id'
> >>
> >> Any suggestion will be helpful.
> >>
> >> Thanks
> >>
> >> You received this message because you are subscribed to the Google Groups
> >> "Sahana-Eden" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to sahana-eden...@googlegroups.com <javascript:>.
> >> To post to this group, send email to sahan...@googlegroups.com
> >> <javascript:>.
> >> To view this discussion on the web visit
> >> https://groups.google.com/d/msgid/sahana-eden/bbb2069f-e5de-4566-af3e-cf9
> >> 592dec856%40googlegroups.com
> >> <https://groups.google.com/d/msgid/sahana-eden/bbb2069f-e5de-4566-af3e-c
> >> f9592dec856%40googlegroups.com?utm_medium=email&utm_source=footer> .
signature.asc

Dominic König

unread,
Jan 9, 2015, 3:19:08 PM1/9/15
to sahan...@googlegroups.com
fredagen den 9 januari 2015 11.34.11 skrev Sarthak Mehrish:
> File "/home/sarthakmeh/Documents/Git/web2py/gluon/tools.py", line 2021, in
> log_event description=str(description % vars),
> KeyError: 'id'
>
> Any suggestion will be helpful.
This was as bug in the login function, which was around for years but never
had any impact due to another bug in web2py.

Now that web2py bug has been fixed, and it took almost a day before I could fix
the Eden bug too - and unfortunately your install fell right into that delay.

You can just upgrade to current trunk and it will be fine again.

Dominic
signature.asc

Sarthak Mehrish

unread,
Jan 9, 2015, 3:38:04 PM1/9/15
to sahan...@googlegroups.com
Thanks Dominic . After pulling the changes everything works fine.
Reply all
Reply to author
Forward
0 new messages