1st run failed

Bug #739250 reported by Yoichi Nakatsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahana-Eden
Fix Released
Low
Unassigned

Bug Description

Release Version:
Sahana Eden 0.5.4

Source of Download:
http://launchpad.net/sahana-eden/trunk/0.5.4/+download/web2py.app.eden-0.5.4.w2p

Operating System:
ubuntu 10.04
Firefox 3.6.15

Database Environment:
Database: mysql-server 5.1.41
Web Server: apache2 2.2.14
libapache2-mod-wsgi 2.8-2
Python 2.6.5-1
Web2Py 1.94.4

Steps:
1) create the empty Sahana database
2) access https://web2py.5thbear.jp/admin/ and Upload & install web2py.app.eden-0.5.4.w2p
3) edit models/000_config.py
4) access http://web2py.5thbear.jp/eden/

Result:
Internal error
Ticket issued

Traceback (most recent call last):
  File "/home/web2py/gluon/restricted.py", line 188, in restricted
    exec ccode in environment
  File "/home/web2py/applications/eden/models/zzz_1st_run.py", line 142, in <module>
    cluster_shelter = db(db.org_cluster.abrv == "Shelter").select(db.org_cluster.id, limitby=(0, 1)).first().id
AttributeError: 'NoneType' object has no attribute 'id'

Revision history for this message
Fran Boon (flavour) wrote :

I am unable to reproduce this.
I downloaded the .w2p file fresh, imported it & ran it - both with default sqlite & by switching to MySQL with a fresh MySQL db & all works smoothly here.
MySQL 5.1.51 on Windows 7
Web2Py r3122

I couldn't reach the test site you quote to verify there.
However I don't believe that this is an issue at all.

What changes did you make to 000_config?
Perhaps you disabled a module which didn't have a catch in 1st_run?
- I seem to remember fixing a bug in this area within the last month, so suspect that is the issue.

In general I would suggest running current Trunk as opposed to a snapshot

Changed in sahana-eden:
importance: Undecided → Low
status: New → Fix Released
status: Fix Released → Fix Committed
nursix (nursix.org)
Changed in sahana-eden:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.