Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1
  • 2

TOPIC: indi-web -v --> not starting [SOLVED]

indi-web -v --> not starting 8 months 3 weeks ago #21991

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
oh, man, and that was not enough. It was just getting to the good stuff: for group "..., 8192

Not that what we need is in there, but maybe 2048 :) I think that is just spitting out the actual python being loaded though.

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI
Last Edit: by xsnrg.

indi-web -v --> not starting 8 months 3 weeks ago #21996

I went back to python 2.7, ran the strace with 4098, anything higher is not producing more interesting output.
families[drv.family].append(drv.label)\n            else:\n                families[drv.family] = [drv.label]\n        return families\n", 4096) = 2426
write(2, "    ", 4    )                     = 4
write(2, "family = group.attrib['group']\n", 31family = group.attrib['group']
) = 31
close(3)                                = 0
write(2, "KeyError", 8KeyError)                 = 8
write(2, ": ", 2: )                       = 2
write(2, "'group'", 7'group')                  = 7
write(2, "\n", 1
)                       = 1
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0xb6e8e261}, {0xc68dd, [], SA_RESTORER, 0xb6e8e261}, 8) = 0
close(9)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++
root@heidenrod-obs:/#

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #22004

  • xsnrg
  • xsnrg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 229
  • Karma: 2
  • Thank you received: 45
To the source code then. From your first couple of traces, driver.py seems to be a place to look. This and a key error usually means something is missing on the other side of a key pair. My thoughts then go like this;

Do you have any indi drivers installed on this machine yet? There is a line in driver.py that looks like this:

# Default INDI data directory
INDI_DATA_DIR = "/usr/share/indi/"

If you have no INDI drivers installed, it might not be able to make a list to present in the application? This actually would be a bug from a coding perspective, as it should handle it better and tell you that nothing was found.

def __init__(self, path=INDI_DATA_DIR):
30: self.parse_drivers()

So this class indeed looks to be doing that. It just goes on to assume that something was found.

38: for fname in self.files:
tree = ET.parse(fname) NOTE: ET=xml.etree.ElementTree, and xml parser
root = tree.getroot()

for group in root:
family = group.attrib

This stuff would all be null as well if there are no drivers, or if the path to the drivers was somewhere other than what was expected.

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

indi-web -v --> not starting 8 months 3 weeks ago #22013

It is installed on my observatory server with all the drivers.

root@heidenrod-obs:~# cd /usr/share/indi/
root@heidenrod-obs:/usr/share/indi# ll
total 208
drwxr-xr-x 2 root root 4096 Dec 28 22:51 ./
drwxr-xr-x 102 root root 4096 Dec 24 12:04 ../
-rw-r--r-- 1 root root 2147 Dec 27 10:10 cosmos_sk.xml
-rw-r--r-- 1 root root 1799 Dec 27 10:10 digital_inputs_sk.xml
-rw-r--r-- 1 root root 14968 Dec 28 10:10 drivers.xml
-rw-r--r-- 1 root root 3020 Dec 27 10:10 focuser_sk.xml
-rw-r--r-- 1 root root 12103 Dec 27 10:30 indi_aagcloudwatcher_sk.xml
-rw-r--r-- 1 root root 281 Dec 27 11:08 indi_aagcloudwatcher.xml
-rw-r--r-- 1 root root 2995 Dec 28 10:28 indi_align_sk.xml

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting 8 months 3 weeks ago #22014

Maybe you have a malformed XML file in /usr/share/indi.

You could add a new line to driver.py in order to see what xml file is being processed, like this:
for group in root:
    print(fname)
    family = group.attrib['group']
    ...
The following user(s) said Thank You: Gonzothegreat

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

indi-web -v --> not starting 8 months 3 weeks ago #22018

juanmb wrote: Maybe you have a malformed XML file in /usr/share/indi.

You could add a new line to driver.py in order to see what xml file is being processed, like this:

for group in root:
    print(fname)
    family = group.attrib['group']
    ...




SOLVED, thanks for the tip with 'print', I had to put it in "for fname in self.files:".
With this, I was able to see which xml file wasn't good.
It's my rain sensor driver and the roof driver xml files which are not correct.
for fname in self.files:
            tree = ET.parse(fname)
            print(fname)
            root = tree.getroot()

            for group in root:
                family = group.attrib['group']

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+

indi-web -v --> not starting [SOLVED] 8 months 3 weeks ago #22019

The customer driver xml file didn't have what's in bold and that was stopping indi-web to start.

root@heidenrod-obs:/usr/share/indi# more odroid_indi_roof.xml
<!--?xml version="1.0" encoding="UTF-8"?-->
<driversList>

<devGroup group="Domes">
<device label="Odroid Roof">
<driver name="Aldi Roof">odroid_indi_roof</driver>
<version>1.0</version>
</device>
</devGroup>
</driversList>

root@heidenrod-obs:/usr/share/indi#

The following user(s) said Thank You: juanmb

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

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / Atik titan / Atik 314L+
  • Page:
  • 1
  • 2
Time to create page: 0.144 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica