LinuxMCE Forums
General => Users => Topic started by: brononius on December 14, 2015, 01:11:00 pm
-
Hey,
Just did some apt-get upgrades, rebooted my server, and my EIB won't start anymore. :-[
I'm getting a segmentation fault.
dcerouter_1044981:/# /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
Segmentation fault (core dumped)
Any idea what i'm doing wrong, or what can be done to troubleshoot this?
ps the IP is correct, my core is 192.168.111.1.
-
Forget to mention that some packages were skipped during upgrade. No idea if it's linked with it.
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic-lts-utopic linux-headers-generic-lts-utopic
linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
pluto-confirm-dependencies pluto-xine-player
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up lmce-datalogger-plugin (2.0.0.47.15121131752) ...
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"
Did not download optional dependencies: pear/Numbers_Roman, pear/Numbers_Words, use --alldeps to download automatically
pear/Image_Graph can optionally use package "pear/Numbers_Roman"
pear/Image_Graph can optionally use package "pear/Numbers_Words"
downloading Image_Canvas-0.3.3.tgz ...
Starting to download Image_Canvas-0.3.3.tgz (55,245 bytes)
.....done: 55,245 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Canvas-0.3.3.tgz"
Download of "pear/Image_Canvas" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Canvas"
downloading Image_Graph-0.8.0.tgz ...
Starting to download Image_Graph-0.8.0.tgz (370,682 bytes)
...done: 370,682 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Graph-0.8.0.tgz"
Download of "pear/Image_Graph" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Graph"
downloading Image_Color-1.0.4.tgz ...
Starting to download Image_Color-1.0.4.tgz (9,656 bytes)
...done: 9,656 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Color-1.0.4.tgz"
Download of "pear/Image_Color" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Color"
Download failed
install failed
dpkg: error processing package lmce-datalogger-plugin (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up lmce-diskless-tools (2.0.0.47.15121131752) ...
/var/lib/dpkg/info/lmce-diskless-tools.postinst: line 48: /usr/pluto/bin/UpdateDebCache.sh: No such file or directory
dpkg: error processing package lmce-diskless-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pluto-newmdinteractor:
pluto-newmdinteractor depends on lmce-diskless-tools (>= 2.0.0.47); however:
Package lmce-diskless-tools is not configured yet.
pluto-newmdinteractor depends on lmce-diskless-tools (<< 2.0.0.48); however:
Package lmce-diskless-tools is not configured yet.
dpkg: error processing package pluto-newmdinteractor (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
lmce-datalogger-plugin
lmce-diskless-tools
lmce-eib-eibd
pluto-newmdinteractor
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
Poewee, no idea what I'm doing, but with gdb, I'm getting an issue with /usr/lib/libpthsem.so.20?
dcerouter_1044981:/# gdb eibd
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from eibd...(no debugging symbols found)...done.
(gdb) run -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
Starting program: /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
Program received signal SIGSEGV, Segmentation fault.
0xb7fa9ab8 in ?? () from /usr/lib/libpthsem.so.20
-
Holy crap, someone besides posde is using eibd?
The upgrade problems are one issue, the eibd is another. You didn't mention (and this is *very* important) but I'm going to assume you're on 1404. We identified an issue with eibd server this weekend, we have no idea what is causing it at the moment. eibd is working perfectly in 1204 but not in any of the current 1404 builds. You can install the .deb from the 1204 repo or one from the mkoegler ppa for now.
J.
-
The upgrade failures are rather strange, they hint at two things. 1. it looks like you had internet errors during the upgrade, I'm really not sure 2. it looks like you're missing files from the installation, specifically from boot-scripts.
J.
-
Are there alternatives for eibd?
I don't know any other way how to contact the IP-router of my knx installation. :$
I'm trying to find out how I can install it directly from kroegler, but I'm always getting the info that i'm already on the latest version. :$
They're already at home complaining that some functions aren't working regarding the ligths and so (you only miss what you've got when it's not there)...
ps see my signature for the version... ;)
-
I know of no other way to connect to knx.
apt-get install <pkgname>=<pkgversion>
will install an old version of a pkg.
J.
-
Was this working on 1404 for you previously? If so, do you know the version number of the eibd-server pkg that was working? 0.0.4 or 0.0.5?
J.
-
Sorry, no clue... :$
-
Installing the deb package worked to downgrade:
wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/b/bcusdk/bcusdk_0.0.4_all.deb
dpkg -i bcusdk_0.0.4_all.deb
But gives me the same error:
dcerouter_1044981:/tmp# /usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
Segmentation fault (core dumped)
-
Try 0.0.5 from mkoegler, that is working for posde on 1404 i386.
J.
-
It was alread the 0.0.5 (what I did before):
https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/b/bcusdk/bcusdk_0.0.5_all.deb
dpkg -i bcusdk_0.0.5_all.deb
but after installing the libpthsem20 2.0.8, it started to start without error?
wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/p/pthsem/libpthsem20_2.0.8_i386.deb
dpkg -i libpthsem20_2.0.8_i386.deb
/usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
ps -ef | grep eibd
root 19594 1 0 14:50 ? 00:00:00 /usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
root 26480 1 0 14:22 ? 00:00:00 /usr/bin/SCREEN -d -m -S KNX_via_eibd99 /usr/pluto/bin/Spawn_Device.sh 99
So I guess it working now fine for me.
Thanks!!!
If I can test/do something to help, let me know!
-
My relevant sources.list entry
deb http://www.auto.tuwien.ac.at/~mkoegler/debian/ eib main
The relevant /etc/apt/preferences contents:
Package: *
Pin: origin "www.auto.tuwien.ac.at"
Pin-Priority: 1000
The relevant package install
apt-get install --reinstall eibd-client-sources eibd-clients eibd-server libeibclient-dev libeibclient0 lmce-eib-eibd
results in
dcerouter_112602:~# dpkg -l | grep eib
ii eibd-client-sources 0.0.5 all Sources of the eibd client programs
ii eibd-clients 0.0.5 i386 eibd clients
ii eibd-server 0.0.5 i386 eibd server
ii libeibclient-dev 0.0.5 i386 eibd client library
ii libeibclient0 0.0.5 i386 eibd client library
ii lmce-eib-eibd 2.0.0.47.15121131752 i386 <insert up to 60 chars description>
on *my* system I was able to keep the libpthsem from the LinuxMCE deb repo.
-
Glad things are working! I hope we can figure out what the issue is.
J.
-
Each time I perform an apt upgrade, i'm having the same issue. :-[
I can "solve" it with:
wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/p/pthsem/libpthsem20_2.0.8_i386.deb
dpkg -i libpthsem20_2.0.8_i386.deb
I've tried to follow the things that posde did, but I haven't got /etc/apt/preferences.
And when i run the apt reinstall, I'm getting the error
WARNING: The following packages cannot be authenticated!
eibd-client-sources eibd-clients eibd-server libeibclient-dev libeibclient0
Authentication warning overridden.
E: Internal Error, No file name for lmce-eib-eibd:i386
When i do the apt-get update command, i'm getting
W: Failed to fetch http://ppa.launchpad.net/mkoegler/bcusdk/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
ps I'm also getting other issues with the global apt-get upgrade. Not sure if it's related, but I mention it here, just in case... (forum-topic (http://forum.linuxmce.org/index.php?topic=14293.0))
-
You apt database looks a bit screwed.
This is my list of installed packages re EIB and pth.
http://paste.ubuntu.com/14574533/
http://paste.ubuntu.com/14574534/
This is where I got my pthsem lib from:
http://paste.ubuntu.com/14574542/
I used to have the stuff from mkoegler as well, but for quite some time now, we are building the libs ourselves.
Does the above help?
-
mkoegler does not have a repo for trusty, which is why the ppa presents a 404. The bcusdk packages are no longer actually maintained.
The /etc/apt/preferences file does not exist, it must be created if you wish to use it.
J.
-
In the inital setup, i've installed eibd manually to get it running.
But I believe now that that was a mistake. :-[
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Is it a good idea to remove all eibd things of kroegler.
And then use the plugin of lmce?
Any suggestion what the proper workflow is for this?
Simple remove eibd stuff by apt-get, and install lmce-eib-eibd by apt-get?
-
Sounds like a plan.
-
Somewhere I'm missing a step I think.
When I run apt-get upgrade, he's telling me that eib service isn't known?
apt-get install lmce-eib-eibd
Reading package lists... Done
Building dependency tree
Reading state information... Done
lmce-eib-eibd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
Warning: The home dir /var/run/eib you specified already exists.
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
/var/lib/dpkg/info/lmce-eib-eibd.postinst
Change line 50 from
service eibd restart
to
service eibd restart || :
apt-get -f install
and it should work again.
-
One step closer for a clean apt-get process.
One step further away for my home automation.
LinuxMCE doesn't play anymore with my lights. :$
I still can activate things with the 'groupswrite' command.
But not by theLinuxMCE GUI anymore.
I can see a lot of refused connection in /var/log/Launchmanager.log, guess it has to do with eib?
05 01/21/16 14:50:35.903 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:36.905 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:37.907 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:38.908 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:39.909 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:40.910 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
05 01/21/16 14:50:41.911 Connect() failed, Error Code 111 (Connection refused)) <0xb6629b40>
ps we don't say it enough, but thanks guys for your patience and help you give us each time!!!
-
hmm, guess i've got other issues that eib now... :$
When I try to add a device:
ERROR: Error creating device. Be sure LinuxMCE is running.
-
hmmm, seems that with the updates (eib, dist-upgrade...), something changed for /etc/pluto.conf?
I've changed the line PK_Device = 285 to PK_Device = 1.
1 was the original number from my backup of yesterday.
Following, I've restarted linuxmce, and he started to rebuild everything.
And for now, it seems to work.
-
Um. Now I'm curious. What did you do to cause pluto.conf to be re-written with PK_Device=285? It should set that based on the Core Device and nothing else.
J.
-
I've done a lot (except rebooting in timeto know when it started to fail)...
Main changes of last days:
apt-get upgrades
apt-get dist-upgrade
dpkg -i libpthsem20_2.0.8_i386.deb
apt-get remove bcudsk (and some reinstalls)
apt-get install linuxmce-eib-eibd
played around with the eggtimer
Tried the qorbiter (and removed it), this was device ID 284
But I never touched the /etc/pluto.conf file.
I had some mayor issues after the dist-upgrade (?), my second network card didn't came up after the reboot.
I'm using VMWare, and in /etc/network/interfaces, I had 2 times an eth1? With default ip 192.168.80.1 and my real ip 192.168.111.1. After removing the 80 with 111, ubuntu started to boot properly.
When I check the database, the ID285 is assigned to CORE, template 7, with the internal IP.
-
When I check the database, the ID285 is assigned to CORE, template 7, with the internal IP.
That is very, very wrong. Your core device should be #1. If it has added another then something went very wrong at some point. Best I can figure is that somehow portions of firstboot were re-run.
J.
-
Is it save to say that the system didn't start as a 1404 system but got upgraded from a different version?