Juan Menendez replied to the topic 'Try as I might I cannot get Indiwebmanager setup' in the forum. 3 days ago

I would suggest you to install indi-web as root:

sudo pip install indiweb
and run it as "pi" user.

In Raspbian the indi-web script will be installed in /usr/local/bin/. The indiwebmanager-pi.service should work without modifications in that case.

If you use a different user, remember to change the line "User=pi" in the service file.

Read More...

Juan Menendez replied to the topic 'Try as I might I cannot get Indiwebmanager setup' in the forum. 1 week ago

OK, so the executable file is not in /usr/local/indi-web.
Did you install it with "sudo pip install indiweb"? If not, try to do so.

If it is installed in another location, you can find it with

which indi-web

In that case, you should change the line starting with "ExecStart" in the "indiwebmanager-pi.service" file. It should point to the correct location.

Read More...

Juan Menendez replied to the topic 'New version of INDI Web Manager' in the forum. 2 weeks ago

Yes, a "Save" button would be more clear.
Also, the web UI currently doesn't prevent you from creating two profiles with the same name, but the database will throw an ugly error ("UNIQUE constraint failed") if you try to do so.

Read More...

Juan Menendez replied to the topic 'Try as I might I cannot get Indiwebmanager setup' in the forum. 2 weeks ago

Could you try to execute the following command as "pi" user?

/usr/local/bin/indi-web -v

That is the line executed by the ".service" script.
Please paste the output here.

Read More...

Juan Menendez replied to the topic 'New version of INDI Web Manager' in the forum. 2 months ago

In general, web servers should run as non-root user for security reasons. But INDI web manager is intended as a "local" web server that should not be reachable from the Internet, so this security considerations might be non applicable here.
You might prefer to run indi-web as root, because it can be difficult to configure the permissions of your devices for non-root access.
In my case, I wrote some udev rules in order to make all my devices accessible as a non-privileged user.

Read More...

Juan Menendez replied to the topic 'New version of INDI Web Manager' in the forum. 2 months ago

I have tried it and yes, there is a problem when you run indi-web as root in Ubuntu.

By default in Ubuntu pip installs executable scripts and "entry points" in /usr/local/bin when you run it with "sudo". Different distros may install it in different locations.
It seems that even though the configuration path is passed to the drivers, indiserver still tries to store things in $HOME/.indi, so the "-c" flag is somewhat useless.
When a process runs under systemd with root user, it does not receive a HOME environment variable, and that is the cause of the crash.
You can fix it by specifying HOME (and creating $HOME/.indi) in the indiwebmanager.service file, like this:

[Unit]
Description=INDI Web Manager
After=multi-user.target

[Service]
Type=idle
Environment=HOME=/root
ExecStartPre=/bin/mkdir -p /root/.indi
ExecStart=/usr/local/bin/indi-web -v -c /root/.indi
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

If you want to run indi-web as "pi" user, the indiwebmanager.service could be something like this:
[Unit]
Description=INDI Web Manager
After=multi-user.target

[Service]
Type=idle
User=pi
ExecStart=/usr/local/bin/indi-web -v
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

I will update the code and send Jasem a pull request.

Read More...

Juan Menendez replied to the topic 'New version of INDI Web Manager' in the forum. 2 months ago

The indi-web command can be run as root or any other user.
By default the configuration directory is /home/USER/.indi. If you run it as root, you should select a different path with the "-c" flag. The root user does not usually have his home directory under /home.

In the example systemd service file I show how to run indi-web as root and store the configuration files under /usr/share/indi/config.

Read More...

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!