LowPowerLab Forum

Software support => Pi Gateway => Topic started by: Lensdigital on December 17, 2015, 10:25:15 AM

Title: Upstart not starting automatically [fixed]
Post by: Lensdigital on December 17, 2015, 10:25:15 AM
I have a question. On my RPi gateway doesn't seem to start after reboot. It seems like "upstart" is not working even tho I installed it. Has anyone seen these issues? I can manually start script with "sudo start gateway" but it just doesn't run at startup. Nothing in the gateway.sys.log after reboot...
Title: Re: Upstart not starting automatically
Post by: Felix on December 17, 2015, 10:29:12 AM
Not really sure, it should work if you have wheezy and followed the install steps or use my image.
Title: Re: Upstart not starting automatically
Post by: syrinxtech on December 30, 2015, 10:32:17 AM
I'm also having the same problem.  I can manually start the gateway using the "sudo start gateway" and everything runs OK.  If I just boot up the gateway doesn't start.  I have checked the gateway.conf file about 50 times and the permissions are correct.

Not sure what else to try.
Title: Re: Upstart not starting automatically
Post by: Felix on December 30, 2015, 12:02:46 PM
Quote from: syrinxtech on December 30, 2015, 10:32:17 AM
I'm also having the same problem.  I can manually start the gateway using the "sudo start gateway" and everything runs OK.  If I just boot up the gateway doesn't start.  I have checked the gateway.conf file about 50 times and the permissions are correct.

Not sure what else to try.
I take that you manually installed everything rather than using the sample image.
What linux distribution are you using?
Title: Re: Upstart not starting automatically
Post by: syrinxtech on December 30, 2015, 12:26:54 PM
Quote from: Felix on December 30, 2015, 12:02:46 PM
Quote from: syrinxtech on December 30, 2015, 10:32:17 AM
I'm also having the same problem.  I can manually start the gateway using the "sudo start gateway" and everything runs OK.  If I just boot up the gateway doesn't start.  I have checked the gateway.conf file about 50 times and the permissions are correct.

Not sure what else to try.
I take that you manually installed everything rather than using the sample image.
What linux distribution are you using?

Correct, Raspbian Wheezy 2015-05-05
Title: Re: Upstart not starting automatically
Post by: Felix on December 30, 2015, 02:00:06 PM
My apologies, I realize I failed to update the upstart .conf script in the guide.
The differences are minor but the effects are major, namely:

start on startup
stop on shutdown


needs to be updated to:

start on runlevel [2345]
stop on runlevel [016]


The problem was that the script was attempting to start the app too early in the boot sequence, when certain resources were not available.
So please revisit the app setup page (https://lowpowerlab.com/gateway/#sourcecode) and update the whole script since there are other minor changes.
Please confirm it now works.
Title: Re: Upstart not starting automatically
Post by: syrinxtech on December 30, 2015, 02:13:24 PM
Quote from: Felix on December 30, 2015, 02:00:06 PM
My apologies, I realize I failed to update the upstart .conf script in the guide.
The differences are minor but the effects are major, namely:

start on startup
stop on shutdown


needs to be updated to:

start on runlevel [2345]
stop on runlevel [016]


The problem was that the script was attempting to start the app too early in the boot sequence, when certain resources were not available.
So please revisit the app setup page (https://lowpowerlab.com/gateway/#sourcecode) and update the whole script since there are other minor changes.
Please confirm it now works.

Worked like a charm....thanks again for the quick response.
Title: Re: Upstart not starting automatically [fixed]
Post by: Lensdigital on January 12, 2016, 11:14:50 AM
Awesome!!! Works for me too :)  Thanks a lot Felix!