Author Topic: EIB segmentation fault  (Read 14506 times)

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB segmentation fault
« Reply #15 on: January 19, 2016, 11:09:42 am »
You apt database looks a bit screwed.

This is my list of installed packages re EIB and pth.

Code: [Select]
http://paste.ubuntu.com/14574533/
http://paste.ubuntu.com/14574534/

This is where I got my pthsem lib from:

Code: [Select]
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?

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #16 on: January 19, 2016, 02:54:19 pm »
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.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #17 on: January 20, 2016, 07:46:43 pm »
In the inital setup, i've installed eibd manually to get it running.
But I believe now that that was a mistake.  :-[

Code: [Select]
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?
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB segmentation fault
« Reply #18 on: January 20, 2016, 08:04:18 pm »
Sounds like a plan.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #19 on: January 21, 2016, 11:58:59 am »
Somewhere I'm missing a step I think.
When I run apt-get upgrade, he's telling me that eib service isn't known?

Code: [Select]
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)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB segmentation fault
« Reply #20 on: January 21, 2016, 12:24:41 pm »
/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.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #21 on: January 21, 2016, 02:57:19 pm »
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?
Quote
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!!!
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #22 on: January 21, 2016, 03:18:42 pm »
hmm, guess i've got other issues that eib now... :$

When I try to add a device:
Code: [Select]
ERROR: Error creating device. Be sure LinuxMCE is running.
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #23 on: January 21, 2016, 03:52:40 pm »
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.

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #24 on: January 21, 2016, 04:16:30 pm »
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.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #25 on: January 21, 2016, 05:17:55 pm »
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.
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #26 on: January 22, 2016, 12:08:54 am »
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.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB segmentation fault
« Reply #27 on: January 22, 2016, 10:26:36 am »
Is it save to say that the system didn't start as a 1404 system but got upgraded from a different version?