After Updating to Latest Version of Ubuntu I get Segmentation fault (core dumped)

466 views
Skip to first unread message

John D Smith

unread,
Aug 4, 2016, 4:33:31 AM8/4/16
to weewx-user
After updating my Ubuntu ....  weewx does not run ....

Result of Sensor check



root@****:~# PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/owfs.py --sensors
Segmentation fault (core dumped)


And Log reads ... after weewx start ... 

root@****:~# tail -f /var/log/syslog
Aug  4 20:20:19 dzone systemd[2114]: Reached target Basic System.
Aug  4 20:20:19 dzone systemd[2114]: Reached target Default.
Aug  4 20:20:19 dzone systemd[2114]: Startup finished in 114ms.
Aug  4 20:20:19 dzone systemd[1]: Started User Manager for UID 0.
Aug  4 20:20:25 dzone OWFS[2206]: DEFAULT: owlib.c:(208) Cannot open USB bus master
Aug  4 20:20:25 dzone kernel: [   71.742581] usb 1-2: usbfs: interface 0 claimed by usbfs while 'python' sets config #1
Aug  4 20:20:25 dzone kernel: [   71.743631] python[2206]: segfault at 0 ip b7110039 sp bff0c2f0 error 6 in libusb-1.0.so.0.1.0[b710c000+19000]
Aug  4 20:20:52 dzone systemd[1]: Starting Stop ureadahead data collection...
Aug  4 20:20:52 dzone systemd[1]: Started Stop ureadahead data collection.
Aug  4 20:20:52 dzone systemd[1]: Stopped Read required files in advance.


owlib.c appears to not be compatible ..... I have entered a rules file in udev ... cat  below

root@****:~# cat /etc/udev/rules.d/90*.rules
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", GROUP="ow", MODE="0664"

A bit of a puzzle what obvious thing have I missed .... in the owfs startup ... 

John S



John D Smith

unread,
Aug 4, 2016, 4:53:28 AM8/4/16
to weewx-user
And weewx status is .....

Executing /etc/init.d/weewx status ..
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; bad; vendor preset: enabled)
   Active: active (exited) since Thu 2016-08-04 20:44:18 NZST; 1min 59s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1681 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
   Memory: 0B
      CPU: 0

Aug 04 20:44:18 dzone weewx[2046]: engine: Loading station type OWFS (user.owfs)
Aug 04 20:44:18 dzone weewx[1681]:    ...done.
Aug 04 20:44:18 dzone systemd[1]: Started LSB: weewx weather system.
Aug 04 20:44:18 dzone weewx[2046]: owfs: driver version is 0.18
Aug 04 20:44:18 dzone weewx[2046]: owfs: interface is u
Aug 04 20:44:18 dzone weewx[2046]: owfs: sensor map is {'outTemp': '/uncached/28.FF001C2E0400/temperature', 'outHumidity': '/uncached/26.B35DB6000000/humidity', 'inTemp': '/uncached/26.0930A7000000/temperature', 'leafWet': '/uncached/30.7B2E62120000/current', 'barometer': '/uncached/26.0930A7000000/B1-R1-A/pressure', 'radiation': '/uncached/26.3142B6000000/S3-R1-A/current', 'rain': '/uncached/1D.F7130D000000'}
Aug 04 20:44:18 dzone weewx[2046]: owfs: sensor type map is {'rain': 'rainwise_bucket'}
Aug 04 20:44:18 dzone weewx[2046]: owfs: polling interval is 10
Aug 04 20:44:18 dzone weewx[2046]: owfs: sensor unit system is metric
Aug 04 20:44:18 dzone OWFS[2046]: DEFAULT: owlib.c:(208) Cannot open USB bus master

John D Smith

unread,
Aug 4, 2016, 8:11:59 PM8/4/16
to weewx-user
And this is showing in the syslog ....

Aug  5 11:31:35 dzone OWFS[322]: DEFAULT: owlib.c:(208) Cannot open USB bus master
Aug  5 11:31:35 dzone kernel: [53284.385467] python[322]: segfault at 0 ip b7036039 sp bfa131f0 error 6 in libusb-1.0.so.0.1.0[b7032000+19000]



mwall

unread,
Aug 4, 2016, 8:50:43 PM8/4/16
to weewx-user

what did you update from, and what did you update to?

did you compile the one-wire libraries, or install pre-built binaries from some package?

you might have to recompile the ow libraries

m

John Smith

unread,
Aug 4, 2016, 9:10:39 PM8/4/16
to weewx...@googlegroups.com

To latest version 16.04 I did a " do-release-upgrade " I am running a server, not graphical linux.

And Ubuntu is up to date ...

root@dzone:/# do-release-upgrade
Checking for a new Ubuntu release
No new release found


if I do apt-get install owfs it reports latest version,

root@dzone:/# apt-get install owfs
Reading package lists... Done
Building dependency tree      
Reading state information... Done
owfs is already the newest version (3.1p1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.


apt-get install weewx does not make sense however ....

root@dzone:/# apt-get install weewx
Reading package lists... Done
Building dependency tree      
Reading state information... Done
weewx is already the newest version (2.6.4-1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Because I was previously running 3.5.0 .... as per the web pages that were uploaded before the unbuntu upgrade ...

What I imagine I will do is re-install v3.5.0 weewx and use the backed up copy of my weewx.conf .... and suck it and see .... not sure why linux chose to downgrade weewx or sees an older version ... however I did have a very full boot partition, and was a bit cramped for room, which is why I chose to tidy up the os in the first place. Perhaps somewhere along the way it lost its way ... which I seriously doubt, as all appears to be very stable at the moment ... owhttp reports the attached 1 wire devices ... so it appears to be a python thing ... or a lack of permission to use the usb resource .... although I have tried that with udev .. rules.

A bit of a mystery. Getting a bit peeved at the 1 wire setup anyway .... looking very hard at a pi 3 or a dual arduino setup in the future .... after all it is a hobby :-)


John S

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/NUue5XTXzGI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages