jrabbit / pyborg-1up

:robot: A modern overhaul of an old favorite irc bot for multiple platforms
https://pyborg.readthedocs.io/en/latest/
GNU General Public License v3.0
33 stars 12 forks source link

unit services failed upon start #81

Closed itz63c closed 5 years ago

itz63c commented 5 years ago

stree@ubuntu:/lib/systemd$ systemctl start pyborg_http & systemctl start pyborg_discord [1] 3897 A dependency job for pyborg_discord.service failed. See 'journalctl -xe' for details. [1]+ Done systemctl start pyborg_http stree@ubuntu:/lib/systemd$ journalctl -xe -- Support: http://www.ubuntu.com/support -- -- Unit pyborg_http.service has failed. -- -- The result is RESULT. Feb 27 14:30:25 ubuntu polkitd(authority=local)[786]: Operator of unix-session:2 successfully authent Feb 27 14:30:25 ubuntu systemd[1]: pyborg_http.service: Start request repeated too quickly. Feb 27 14:30:25 ubuntu systemd[1]: pyborg_http.service: Failed with result 'exit-code'. Feb 27 14:30:25 ubuntu systemd[1]: Failed to start Pyborg multiplexing server. -- Subject: Unit pyborg_http.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- Unit pyborg_http.service has failed. -- -- The result is RESULT. Feb 27 14:30:25 ubuntu systemd[1]: Dependency failed for Pyborg Discord Client. -- Subject: Unit pyborg_discord.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- Unit pyborg_discord.service has failed. -- -- The result is RESULT. Feb 27 14:30:25 ubuntu systemd[1]: pyborg_discord.service: Job pyborg_discord.service/start failed wi Feb 27 14:30:25 ubuntu polkitd(authority=local)[786]: Unregistered Authentication Agent for unix-proc lines 1723-1748/1748 (END)

jrabbit commented 5 years ago

Hm Can you upload your .service files and tell me where you've installed the app at?

itz63c commented 5 years ago

https://gist.github.com/itz63c/d6e0767243b97f8cddb8a857ddfa5f5b as for the install... to be quite fair it might not even be installed correctly, i just git cloned it and set it up through docker just chilling in /home/pyborg-1up because it kept failing to install via pip install pyborg

error for pip install pyborg: https://pastebin.com/7FpHUC7s

jrabbit commented 5 years ago

Ok the install is failing because it wants to build cryptography which needs openssl headers (openssl-dev likely)

Those unit files look right. Did you run pipenv sync to set up the venvs for the pyborg user?

jrabbit commented 5 years ago

Also the docker stuff is either/or with the systemd units

itz63c commented 5 years ago

i think ive determined all sorts of shit is fucked, i nuked it all, starting fresh. you said the docker is either or with the systemd stuff? which do you recommend, sorry if i seem like a nuisance

jrabbit commented 5 years ago

The docker setup should be a little harder to break probably. Systemd is very finicky

jrabbit commented 5 years ago

Any further issues?