Re: [weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-11 Thread Thomas Keffer
It's not really an 'Upstart' script that's provided by weewx. It's a SysV 'init' script. Upstart scripts have a different structure (lots of "pre-start" clauses) and live in a different place (/etc/init instead of /etc/init.d). -tk On Fri, Nov 11, 2016 at 6:59 AM, Daniel Jönsson <

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-11 Thread Daniel Jönsson
Today I updated some packages on the server. Some of them was systemd updates. And after that I get different errors when trying to start weewx with systemd.And it differs from time to time. I tried three times now to start and all three times I got a different error. Still there is no problem

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
It looks like I have two libusb 0.1.12-28 and 1.0.20-1. pyusb is 1.0.0~b2-2 And yes. Locale is sv_SE.UTF-8 It has been working flawless on this machine for more than a year. This error started when I did a upgrade from Ubuntu 14.04 to 16.04. -- You received this message because you are

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread mwall
On Tuesday, November 8, 2016 at 6:33:08 AM UTC-5, Daniel Jönsson wrote: > > Last week I upgraded my Ubuntu on my server from 14.04 to 16.04. And after > the upgrade I can't start weewx on boot any more. > daniel, what versions of libusb and pyusb are on your system? dpkg -l | grep usb also,

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
The log above is when trying to start the demon with the Upstart script (through systemd). If I start a terminal and switch to root and then try start the demon with the exact same exec then it works, and I get this in my log: Nov 8 16:32:49 server weewx[9408]: engine: Initializing weewx

[weewx-user] Re: Can't start weewx automatically in Ubuntu 16.04

2016-11-08 Thread Daniel Jönsson
OK. Here is the result: Nov 8 16:23:17 server systemd[1]: Started weewx weather system. Nov 8 16:23:17 server weewx[8224]: engine: Initializing weewx version 3.6.1 Nov 8 16:23:17 server weewx[8224]: engine: Using Python 2.7.12 (default, Jul 1 2016, 15:12:24) #012[GCC 5.4.0 20160609] Nov 8