olad config on Linux

177 views
Skip to first unread message

Grant Patterson

unread,
Jun 21, 2022, 4:59:44 PM6/21/22
to open-l...@googlegroups.com
Hi all, I have my rgb-to-rgbwau mapper running well on my Mac. Now I'm trying to port to Linux. I'm on a fresh Ubuntu 22.04 install. I got olad installed (needed to install some newer-version packages as the ones listed on the install page weren't available via apt) and I can run the web interface.

Now I'm trying to point olad to my custom config directory. I modified /etc/init.d/olad and changed --config-dir in DAEMON_ARGS, and I think that sort of works, because that shows up in systemctl status olad output as well as the listed "Config Location" for plugin info listed in the web interface:

Screen Shot 2022-06-21 at 1.39.22 PM.png

But, the plugin settings don't actually appear. I'm looking at that file and there's stuff in there. I also have universes configured in ola-universe.conf and none appear.

Now I see these in syslog:

Jun 21 13:38:29 flowbuntu olad[2969]:  * Starting OLA daemon olad
Jun 21 13:38:29 flowbuntu olad[2969]:    ...done.
Jun 21 13:38:29 flowbuntu systemd[1]: Started LSB: OLA daemon.
Jun 21 13:38:29 flowbuntu olad: olad/Olad.cpp:98: OLA Daemon version 0.10.8
Jun 21 13:38:29 flowbuntu olad: olad/OlaDaemon.cpp:204: Couldn't mkdir /home/grant/projects/trees/rgbwau/ola-conf
Jun 21 13:38:29 flowbuntu olad: olad/OlaDaemon.cpp:121: Using configs in /home/grant/projects/trees/rgbwau/ola-conf
Jun 21 13:38:29 flowbuntu olad: common/thread/Thread.cpp:200: Thread pref-saver, policy SCHED_OTHER, priority 0
Jun 21 13:38:29 flowbuntu olad: olad/OlaServer.cpp:194: Server UID is 7a70:8307a8c0
Jun 21 13:38:29 flowbuntu olad: olad/plugin_api/Preferences.cpp:436: Missing /home/grant/projects/trees/rgbwau/ola-conf/ola-server.conf: Permission denied - this isn't an error, we'll just use the defaults
Jun 21 13:38:29 flowbuntu olad: olad/OlaServer.cpp:206: Server instance name is OLA Server
Jun 21 13:38:29 flowbuntu olad: olad/plugin_api/Preferences.cpp:436: Missing /home/grant/projects/trees/rgbwau/ola-conf/ola-universe.conf: Permission denied - this isn't an error, we'll just use the defaults
Jun 21 13:38:29 flowbuntu olad: olad/plugin_api/Preferences.cpp:82: Could not open /home/grant/projects/trees/rgbwau/ola-conf/ola-server.conf: Permission denied
Jun 21 13:38:29 flowbuntu olad: olad/plugin_api/Preferences.cpp:436: Missing /home/grant/projects/trees/rgbwau/ola-conf/ola-port.conf: Permission denied - this isn't an error, we'll just use the defaults

which suggest permissions issues, but I'm not sure what they would be:

ls -l /home/grant/projects/trees/rgbwau/ola-conf/
total 84
-rwxrwxrwx 1 grant grant  194 Jun 20 16:05 ola-artnet.conf
-rwxrwxrwx 1 grant grant  200 Jun 20 16:05 ola-dummy.conf
-rwxrwxrwx 1 grant grant  192 Jun 20 16:05 ola-e131.conf
-rwxrwxrwx 1 grant grant   39 Jun 20 16:05 ola-espnet.conf
-rwxrwxrwx 1 grant grant   88 Jun 20 16:05 ola-gpio.conf
-rwxrwxrwx 1 grant grant   37 Jun 20 16:05 ola-karate.conf
-rwxrwxrwx 1 grant grant   31 Jun 20 16:05 ola-kinet.conf
-rwxrwxrwx 1 grant grant   25 Jun 20 16:05 ola-milinst.conf
-rwxrwxrwx 1 grant grant   35 Jun 20 16:05 ola-opendmx.conf
-rwxrwxrwx 1 grant grant   70 Jun 20 16:05 ola-openpixelcontrol.conf
-rwxrwxrwx 1 grant grant  471 Jun 20 16:05 ola-osc.conf
-rwxrwxrwx 1 grant grant   70 Jun 20 16:05 ola-pathport.conf
-rwxrwxrwx 1 grant grant 1809 Jun 20 16:05 ola-port.conf
-rwxrwxrwx 1 grant grant   25 Jun 20 16:05 ola-renard.conf
-rwxrwxrwx 1 grant grant   40 Jun 20 16:05 ola-sandnet.conf
-rwxrwxrwx 1 grant grant   27 Jun 21 13:46 ola-server.conf
-rwxrwxrwx 1 grant grant   40 Jun 20 16:05 ola-shownet.conf
-rwxrwxrwx 1 grant grant   37 Jun 20 16:05 ola-stageprofi.conf
-rwxrwxrwx 1 grant grant   75 Jun 20 16:05 ola-universe.conf
-rwxrwxrwx 1 grant grant   39 Jun 20 16:05 ola-usbdmx.conf
-rwxrwxrwx 1 grant grant  172 Jun 20 16:05 ola-usbserial.conf

I see that olad runs as the olad user, but if all users/groups have rwx access, what else could be the problem?


Thanks,

grant

Peter Newman

unread,
Jun 22, 2022, 9:07:18 AM6/22/22
to open-lighting
What does ls -al /home/grant/projects/trees/rgbwau/ola-conf/ show, i.e. what's the permissions of the folder the config files are in, rather than the files themselves?

Grant Patterson

unread,
Jun 22, 2022, 2:38:47 PM6/22/22
to open-lighting
Oh sorry, I should read everything you wrote instead of telling you to read everything I wrote. ;-)

ls -al /home/grant/projects/trees/rgbwau/
total 36
drwxrwxr-x 4 grant grant 4096 Jun 20 16:05 .
drwxrwxr-x 5 grant grant 4096 Jun 21 15:03 ..
...
drwxrwxr-x 2 grant grant 4096 Jun 21 13:46 ola-conf


Could that be the issue, that olad can't write to the directory? I'll try changing that...

Grant Patterson

unread,
Jun 22, 2022, 2:52:07 PM6/22/22
to open-lighting
ola-conf dir is now drwxrwxrwx, still having all the same errors. I tried it with a trailing slash in the init.d which seems to produce a double-slash, so not ideal though I think Linux handles that, and also without the trailing slash. Still getting the permission denied.

Peter Newman

unread,
Jun 22, 2022, 4:51:01 PM6/22/22
to open-lighting
Try  changing at least the level above, and see these errors:
Jun 21 13:38:29 flowbuntu olad: olad/OlaDaemon.cpp:204: Couldn't mkdir /home/grant/projects/trees/rgbwau/ola-conf
Jun 21 13:38:29 flowbuntu olad: olad/OlaDaemon.cpp:121: Using configs in /home/grant/projects/trees/rgbwau/ola-conf

I can reproduce with wonky permissions on the parent dir as it tries to create the folder:
Reply all
Reply to author
Forward
0 new messages