×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI drivers crash on a fresh install

  • Posts: 4
  • Thank you received: 0
Hey folks,
I am new to this community but have been using INDI for a while now with astroberry. This weekend I decided to rebuild everything because I found out nou's script(gitea.nouspiro.space/nou/astro-soft-build) that made everything sound pretty easy and I liked the idea of being independent from astroberry.
Everything looked fantastic during building and installing and Kstars started up exactly like it should but when I added my gear to Ekos(or even just used simulators) and started everything up, all the indi drivers crashed and at some point after retrying over and over again Kstars crashed too.

I am using a Raspberry Pi4 8GB, instead of an SD-Card I use a 128GB SSD connected via USB. That setup works perfectly fine, the Pi is set to accept an USB drives as the OS volume.

Here is what I do to reproduce the issue:
1. take the latest Raspberry Pi OS with Desktop 64bit Image and write it to the USB drive
2. start up the Pi and perform the initial setup(user, password, locale, network, hostname, ssh, vnc, updates, no additional software
3. git clone gitea.nouspiro.space/nou/astro-soft-build.git and cd into the directory
4. run ./install-dependencies.sh and afterwards /build-soft-stable.sh

As already said, the script did exactly what I expected it to do, I didn't notice any errors but when I start KStars and try to get started with Ekos all the drivers crash. I tried to get some details from the logs but found them not very helpful.
This is from the logs when I try to get only my guiding camera to work:
[2023-05-29T12:18:34.771 CEST DEBG ][           org.kde.kstars.ekos] - Resetting Ekos Manager...
[2023-05-29T12:18:34.842 CEST INFO ][           org.kde.kstars.ekos] - "Starting INDI services..."
[2023-05-29T12:18:34.845 CEST DEBG ][           org.kde.kstars.indi] - INDI: Starting local drivers...
[2023-05-29T12:18:34.846 CEST DEBG ][           org.kde.kstars.indi] - Starting INDI Server:  ("-v", "-p", "7624", "-m", "1024", "-r", "0", "-f", "/tmp/indififoc3edcdc5") -f "/tmp/indififoc3edcdc5"
[2023-05-29T12:18:34.865 CEST DEBG ][           org.kde.kstars.indi] - INDI: INDI Server started locally on port  7624
[2023-05-29T12:18:34.866 CEST DEBG ][           org.kde.kstars.indi] - Starting INDI Driver "indi_asi_single_ccd"
[2023-05-29T12:18:34.866 CEST DEBG ][           org.kde.kstars.indi] - INDI Server Started?  true
[2023-05-29T12:18:34.868 CEST DEBG ][ org.kde.kstars.ekos.scheduler] - Scheduler Ekos status is 1
[2023-05-29T12:18:34.869 CEST DEBG ][           org.kde.kstars.indi] - Adding managed driver "ZWO Camera"
[2023-05-29T12:18:34.870 CEST DEBG ][           org.kde.kstars.indi] - INDIListener: Adding a new client manager to INDI listener..
[2023-05-29T12:18:34.871 CEST DEBG ][           org.kde.kstars.indi] - INDI: Connecting to local INDI server on port  7624  ...
[2023-05-29T12:18:34.872 CEST DEBG ][           org.kde.kstars.indi] - INDI server connected.
[2023-05-29T12:18:34.873 CEST INFO ][           org.kde.kstars.ekos] - "INDI services started on port 7,624."
[2023-05-29T12:18:34.899 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: startup: /usr/bin/indiserver -v -p 7624 -m 1024 -r 0 -f /tmp/indififoc3edcdc5"
[2023-05-29T12:18:34.899 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: listening to port 7624 on fd 5"
[2023-05-29T12:18:34.899 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Local server: listening on local domain at: @/tmp/indiserver"
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: FIFO: start indi_asi_single_ccd -n \"ZWO Camera 1\""
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: With name: ZWO Camera 1"
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: FIFO: Starting driver indi_asi_single_ccd"
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Driver indi_asi_single_ccd: pid=1891 rfd=9 wfd=9 efd=10"
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Client 8: new arrival from 127.0.0.1:33790 - welcome!"
[2023-05-29T12:18:34.900 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Driver indi_asi_single_ccd: indi_asi_single_ccd: error while loading shared libraries: libXISF.so.0: cannot open shared object file: No such file or directory"
[2023-05-29T12:18:34.901 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Driver indi_asi_single_ccd: read: Connection reset by peer"
[2023-05-29T12:18:34.901 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:34: Driver indi_asi_single_ccd: Terminated after #0 restarts."
[2023-05-29T12:18:34.901 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2023-05-29T12:18:34.903 CEST CRIT ][           org.kde.kstars.indi] - INDI driver  "indi_asi_single_ccd"  crashed!
[2023-05-29T12:18:40.575 CEST DEBG ][           org.kde.kstars.indi] - Removing managed driver "ZWO Camera"
[2023-05-29T12:18:40.576 CEST DEBG ][           org.kde.kstars.indi] - Stopping INDI Driver  "indi_asi_single_ccd"
[2023-05-29T12:18:40.588 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:40: FIFO: stop indi_asi_single_ccd -n \"ZWO Camera 1\""
[2023-05-29T12:18:40.589 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-05-29T10:18:40: With name: ZWO Camera 1"
[2023-05-29T12:18:40.589 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  ""

Is something wrong with libXISF? That part of the script worked perfectly fine as far as I can tell.

I already did a full reinstall(OS and script)twice but got the same results.
It's absolutely possible that I am doing something wrong. With astroberry I used things a little bit different, I always operated the Indiserver with the sidepanel and then connected Ekos to that server but it should work with just Kstars/Ekos, right?
Also could it be the 64bit Version of Raspberry Pi OS?

Any help would be appreciated!

Kind regards
10 months 3 weeks ago #93141

Please Log in or Create an account to join the conversation.

  • Posts: 320
  • Thank you received: 42
Might just be missing a prerequisite.
I am not running a Raspberry Pi but on an Odroid:
sudo apt list libXISF

Listing... Done
libxisf/jammy,now 0.2.4~202305202331~ubuntu22.04.1 arm64 [installed,automatic]

If it is not installed try installing:
sudo apt install libXISF
The following user(s) said Thank You: feuertaenzer
10 months 3 weeks ago #93150

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
Thanks! It looks indeed like libXISF is just missing.
sudo apt list libXISF doesn't return anything which I think makes sense because I bypassed apt by making and installing manually.
It shoud have been build and installed by the script, as it's not part of the usual repos of Raspberry Pi OS. Also I can't install it via apt because it's not in my repos.

But it looks like the the libraries are there at /usr/local/lib/aarch64-linux-gnu/ which I think is an odd location but that's where they were put during script processing.
I guess that's not the location KStars/Ekos expects or maybe some linking is missing.

Maaayyyybe I just have to switch to Ubuntu to make everything easier but I kind of like Raspberry Pi OS.
10 months 3 weeks ago #93153

Please Log in or Create an account to join the conversation.

  • Posts: 320
  • Thank you received: 42
.xisf is a PixInsight file format, support for this was recently added or is in progress. The Raspberry Pi OS should be fine so hold off until someone familiar with the update sees your thread. I have a RPI3B which I think is running the RPi OS and an older version of nou's script, will see if it still boots comparison,
No the RPi3B was running Raspbian Bullseye 32 bit.
Last edit: 10 months 3 weeks ago by wotalota. Reason: info
10 months 3 weeks ago #93160

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
Quick update on this, I tried again from scratch with latest after I've seen some changes in nou's libXISF project but building fails. Unfortunately I can't submit an issue to the project so I just hope that it will be seen here lol
10 months 3 weeks ago #93181

Please Log in or Create an account to join the conversation.

  • Posts: 320
  • Thank you received: 42
I have a build in progress now. Raspberry Pi official OS, 32 bit. RPi3 1GB so it will take some time. The script took care of building and installing libXISF.so which I had not caught onto previously. It was installed into
/usr/local/lib/arm-linux-gnueabihf/ along with other libraries.

root@rpi3:/home/tg# ls -ltr /usr/local/lib/arm-linux-gnueabihf/
total 1996
-rw-r--r-- 1 root root 1074728 Jun 25 2022 libstellarsolver.so.2.3
lrwxrwxrwx 1 root root 23 Jun 25 2022 libstellarsolver.so.2 -> libstellarsolver.so.2.3
lrwxrwxrwx 1 root root 21 Jun 25 2022 libstellarsolver.so -> libstellarsolver.so.2
drwxr-xr-x 2 root root 4096 Jun 25 2022 pkgconfig
drwxr-xr-x 3 root root 4096 Jun 25 2022 cmake
-rw-r--r-- 1 root root 954404 May 30 16:06 libXISF.so.0.2.1
lrwxrwxrwx 1 root root 16 May 30 16:06 libXISF.so.0 -> libXISF.so.0.2.1
lrwxrwxrwx 1 root root 12 May 30 16:06 libXISF.so -> libXISF.so.0

The other stuff in there is old from when I last used the build script. Will see when it completes if the directory is included in the search list.

The build failed when it got to KStars:

[ 12%] Generating Options.h, Options.cpp
Too many signals to create unique bit masks
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/build.make:275: kstars/Options.h] Error 1
make[2]: *** Deleting file 'kstars/Options.h'
make[1]: *** [CMakeFiles/Makefile2:1511: kstars/CMakeFiles/KStarsLib.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
KStars compilation failed
tg@rpi3:~/astro-soft-build $
The following user(s) said Thank You: feuertaenzer
Last edit: 10 months 3 weeks ago by wotalota.
10 months 3 weeks ago #93182

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
Thank you for putting so much time into this.
I did some more tests with simulators and I think that libXISF isn't the primary issue. The simulators immediately crash and the logfiles don't mention libXISF.


Buuuut the error I stumbled upon with the latest build has been fixed by now so I was able to build the lastest version tonight. I didn't have much time to tinker around with it yet but simulators are working without crashes so far.
In this very moment I attached my guiding cam to the Pi and the driver works as well.

It's not 100% wanted but it seems to be a working setup. I hope that I get to test my usual workflow this weekend to see if it's stable enough for me and if so, I'll keep this build.
10 months 3 weeks ago #93205

Please Log in or Create an account to join the conversation.

  • Posts: 320
  • Thank you received: 42
That would be good. I installed the Raspberry PI OS 64 bits on a RPi4. Then the build succeeded after a couple of non fatal errors.

Just now ran Ekos with simulators for mount and camera which duplicated the problem you were having listing libXISF.so. I picked up the build 4 hours ago, so perhaps I just missed the fix if there was one.
10 months 3 weeks ago #93210

Please Log in or Create an account to join the conversation.

  • Posts: 358
  • Thank you received: 114
If you were using latest script it could fail yesterday as I had error in cmake file that was preventing build in some cases. It should work now. Also next time you can try to star indiserver manually to get better error output for example run "indiserver indi_simulator_ccd"
10 months 3 weeks ago #93213

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 11
I was building with the script from here and got the same error:
git clone https://gitea.nouspiro.space/nou/astro-soft-build.git

As an intermediate fix, you can try symlinking manually which seems to work. I'm not versed enough in the lib management on the Pi, so I don't know how to fix the lib path for user items:
pi@astro:/usr/lib $ sudo ln -s /usr/local/lib/arm-linux-gnueabihf/libXISF.so.0 .
pi@astro:/usr/lib $ indiserver indi_simulator_ccd
2023-06-10T10:03:01: startup: indiserver indi_simulator_ccd
^C
10 months 2 weeks ago #93375

Please Log in or Create an account to join the conversation.

  • Posts: 969
  • Thank you received: 94
Hi everyone
I've been caught out wit
h the library path before when switiing between installations. Nou's scripts on the one hand and self built or ppa installs on the other

@NOU: Thanks for your excellent scripts.
Quetsion: why do some programs install at /usr/local and others at /usr?
On my Ubuntu 22.04
stellarsolver and xisf are at /usr/local whist all other stuff is under /usr

Cheers,
Steve
Last edit: 10 months 2 weeks ago by alacant.
10 months 2 weeks ago #93376

Please Log in or Create an account to join the conversation.

  • Posts: 358
  • Thank you received: 114
Well compiled stuff should go /usr/local so it doesn't conflict with package manager files that are in /usr. IIRC INDI or Kstars have problems if they are not installed in /usr/
This issue that it can't find some library can be solved by running "sudo ldconfig" which I added to my script recently.
The following user(s) said Thank You: alacant
10 months 2 weeks ago #93377

Please Log in or Create an account to join the conversation.

Time to create page: 1.157 seconds