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.
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.
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.
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