alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

admin/controllers/wizard.py fails to check return status from gluon.admin.app_create() #166

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From greenber...@gmail.com on January 26, 2011 22:42:38

See line 485 of admin/controllers/wizard.py where the call to app_create does not check for a return value. In my case, there is a failure in app_create, and the wizard continues on, then fails on line 489 with an "error 2, no such file or directory, /opt/web-apps/web2py/applications/admin/../xxx/wizard.metadata" where xxx is the requested site name. What steps will reproduce the problem? 1. One must force app_create to fail. I don't know why it's failing in my case yet. That's not the subject of this bug.

  1. Once you are sure that app_create will return False, fire off a wizard and try to save the site What is the expected output? What do you see instead? I would expect some sort of error message when app_create returns false. (I'd really like to know why it failed, since there are three or four return statements in app_create.

What I get instead is a traceback and an error: IOError: [Errno 2] No such file or directory: '/opt/web-apps/web2py/ applications/admin/../xxx/wizard.metadata' What version of the product are you using? On what operating system? Version 1.91.6 (2011-01-03 17:55:14) Centos 5.4. Please provide any additional information below. This was installed according to the recipe at http://web2pyslices.com/main/slices/take_slice/98 .

After discovering that app_create was failing, I checked permissions. The entire web2py tree is owned by apache. The server is running as apache (ps aux). The WSGI is set to run as apache. SELinux is disabled.

Original issue: http://code.google.com/p/web2py/issues/detail?id=168

alfonsodg commented 10 years ago

From massimo....@gmail.com on January 28, 2011 07:02:33

thank you

Status: Fixed