I look at the journal:

 sudo[1519]: pam_unix(sudo:session): session closed for user root
 web2py[1597]: Starting Web Framework: web2pychown: invalid user: `web2py'
 web2py[1597]: start-stop-daemon: user 'web2py' not found
 web2py[1597]: failed!
 systemd[1]: web2py.service: control process exited, code=exited status=2
 systemd[1]: Unit web2py.service entered failed state.

Any idea what's going on?

On Sunday, 1 February 2015 16:12:04 UTC-5, Aydin S wrote:
>
> Hi, I finally got to know that web2py is best to be used in the startup 
> using system level configuration not as cron. I gave up running it from 
> crontab because it didn't work.
> I read 
> http://web2py.com/books/default/chapter/29/13#One-step-production-deployment 
> and implemented what is said in three steps as follows:
> "On Ubuntu, or other Debian-based Linux distribution, edit "
> web2py.ubuntu.sh" and replace the "/usr/lib/web2py" path with the path of 
> your web2py installation, then type the following shell commands to move 
> the file into the proper folder, register it as a startup service, and 
> start it:
>
> sudo cp scripts/web2py.ubuntu.sh /etc/init.d/web2py
> sudo update-rc.d web2py defaults
> sudo /etc/init.d/web2py start
>
> I did change the path in the web2py.ubuntu.sh in line DAEMON_DIR=/path/$NAME; 
> I did not touch other things in this file. 
>
> Then I ran sudo cp scripts/web2py.ubuntu.sh /etc/init.d/web2py and it 
> worked since it moved the file to the right place. 
>
> Then I ran sudo update-rc.d web2py defaults and got the following:
>
> update-rc.d: using dependency based boot sequencing update-rc.d: warning: 
> default stop runlevel arguments (0 1 6) do not match web2py Default-Stop 
> values (S 0 1 6) insserv: script web2py is not an executable regular 
> file, skipped!
>
> I gave executable access to web2py in /etc/init.d directory and this time 
> I did not get the message insserv: script web2py is not an executable 
> regular file, skipped!.
>
> finally, when I ran sudo /etc/init.d/web2py start, I got the following 
> error:
>
> [....] Starting web2py (via systemctl): web2py.serviceJob failed. See 
> system journal and 'systemctl status' for details.
>  failed!
>
> Any help is appreciated. 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to