update crashes my instance

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
sufr3ak
Posts: 10
Joined: Sat Jun 28, 2014 12:28 am

update crashes my instance

Post by sufr3ak » Thu May 24, 2018 4:23 pm

I, as normal, checked Mylar and it said I was 4 commits behind. I hit update, and now it won't start.

I'm running on Ubunutu Server and frankly, have no idea what to do.

Code: Select all

USERNAME@SERVER:~$ sudo service mylar restart
[sudo] password for USERNAME:
Job for mylar.service failed because the control process exited with error code.                    See "systemctl status mylar.service" and "journalctl -xe" for details.
USERNAME@SERVER:~$ systemctl status mylar.service
● mylar.service - LSB: starts instance of mylar
   Loaded: loaded (/etc/init.d/mylar; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-05-24 12:14:18 EDT; 17s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 27424 ExecStop=/etc/init.d/mylar stop (code=exited, status=0/SUCCESS)
  Process: 27430 ExecStart=/etc/init.d/mylar start (code=exited, status=1/FAILUR

May 24 12:14:18 SERVER mylar[27430]:     from mylar import sabnzbd, nzbget, proc
May 24 12:14:18 SERVER mylar[27430]:   File "/opt/Mylar/mylar/sabnzbd.py", line
May 24 12:14:18 SERVER mylar[27430]:     return found
May 24 12:14:18 SERVER mylar[27430]:                ^
May 24 12:14:18 SERVER mylar[27430]: IndentationError: unindent does not match a
May 24 12:14:18 SERVER mylar[27430]:    ...fail!
May 24 12:14:18 SERVER systemd[1]: mylar.service: Control process exited, code=e
May 24 12:14:18 SERVER systemd[1]: Failed to start LSB: starts instance of mylar
May 24 12:14:18 SERVER systemd[1]: mylar.service: Unit entered failed state.
May 24 12:14:18 SERVER systemd[1]: mylar.service: Failed with result 'exit-code'
lines 1-17/17 (END)...skipping...
● mylar.service - LSB: starts instance of mylar
   Loaded: loaded (/etc/init.d/mylar; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-05-24 12:14:18 EDT; 17s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 27424 ExecStop=/etc/init.d/mylar stop (code=exited, status=0/SUCCESS)
  Process: 27430 ExecStart=/etc/init.d/mylar start (code=exited, status=1/FAILURE)

May 24 12:14:18 SERVER mylar[27430]:     from mylar import sabnzbd, nzbget, process
May 24 12:14:18 SERVER mylar[27430]:   File "/opt/Mylar/mylar/sabnzbd.py", line 144
May 24 12:14:18 SERVER mylar[27430]:     return found
May 24 12:14:18 SERVER mylar[27430]:                ^
May 24 12:14:18 SERVER mylar[27430]: IndentationError: unindent does not match any outer indentatio
May 24 12:14:18 SERVER mylar[27430]:    ...fail!
May 24 12:14:18 SERVER systemd[1]: mylar.service: Control process exited, code=exited status=1
May 24 12:14:18 SERVER systemd[1]: Failed to start LSB: starts instance of mylar.
May 24 12:14:18 SERVER systemd[1]: mylar.service: Unit entered failed state.
May 24 12:14:18 SERVER systemd[1]: mylar.service: Failed with result 'exit-code'

User avatar
evilhero
Site Admin
Posts: 2263
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: update crashes my instance

Post by evilhero » Thu May 24, 2018 4:26 pm

Has been fixed (like a minute ago) in commit #f303585.

Was due to invalid spacing, which was a mistake on my part.

sufr3ak
Posts: 10
Joined: Sat Jun 28, 2014 12:28 am

Re: update crashes my instance

Post by sufr3ak » Thu May 24, 2018 4:38 pm

Do I just reinstall on top of current install? I was using the built in updater, not git

User avatar
evilhero
Site Admin
Posts: 2263
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: update crashes my instance

Post by evilhero » Thu May 24, 2018 4:44 pm

You should be able to just reinstall on top of things, but if you wanted to be safe - back up your mylar.db, config.ini and cache folder before doing so (just in case). It shouldn't overwrite any of those files if you're just doing the install overtop of the existing one, but better safe than sorry usually.

sufr3ak
Posts: 10
Joined: Sat Jun 28, 2014 12:28 am

Re: update crashes my instance

Post by sufr3ak » Thu May 24, 2018 5:48 pm

git pull did it. Thanks!

Post Reply