mobinmob / void-66-services

66 service frontends for voidlinux
Other
29 stars 11 forks source link

Cant start scandir@ service #156

Closed ajhfsdh closed 2 years ago

ajhfsdh commented 2 years ago

Whenever i try to enable the scandir@ service, for user services, it seems to fail at the setenv@ service with the following error: execl-toc: fatal: unable to create dir: @PATH_ENVIRONMENT@: Permission denied s6-rc: warning: unable to start service setenv@<username>: command exited 111 66-start: fatal: unable to start services selection I am pretty sure this is an error on my part, but I have used Obarun in the past and never saw this issue, so I am unsure how to solve it. I have tried deleting all trees, and rebuilding them, and tried 66-update, but nothing seems to solve this issue.

mobinmob commented 2 years ago

Please provide the exact command you use and the full output. Thanks :)

❯ sudo 66-enable scandir@mobinmob
66-enable: info: launch script configure of module: scandir@mobinmob
scandir@mobinmob: info: set live directory to: /run/66/
scandir@mobinmob: info: enable service: setenv@mobinmob
scandir@mobinmob: info: enable logger options
scandir@mobinmob: info: enable notification
scandir@mobinmob: info: set verbosity level to: 3
scandir@mobinmob: info: successfully configured
66-enable: info: Enabled successfully: setenv@mobinmob
66-enable: info: Enabled successfully: svscan@mobinmob
66-enable: info: Enabled successfully: scandir@mobinmob
ajhfsdh commented 2 years ago

doas (<username>@<hostname>) password:
66-tree: info: Created successfully tree: user
66-tree: info: Enabled successfully tree: user
~ > doas 66-enable -t user scandir@<username>
66-enable: info: Enabled successfully: setenv@<username>
66-enable: info: Enabled successfully: svscan@<username>
66-enable: info: Enabled successfully: scandir@<username>
~ > doas 66-start -t user scandir@<username>
66-start: info: Initialized successfully: setenv@<username>  
66-start: info: Initialized successfully: svscan@<username>-log  
66-start: info: Initialized successfully: svscan@<username>
66-start: info: Initialized successfully: scandir@<username>
execl-toc: fatal: unable to create dir: @PATH_ENVIRONMENT@: Permission denied  
s6-rc: warning: unable to start service setenv@<username>: command exited 111  
66-start: fatal: unable to start services selection 
mobinmob commented 2 years ago

Thank you for the output. Have you installed the scandir-66serv package from my repo? If you followed the documentation to create your trees and enable basic services, you will have 3 trees: boot, default and runit. This is the setup I run and recommend. I choose the specific setup because it is simple, clean and tries to follow the voidlinux policy, having a single "runlevel" named default for the services. If you have that setup, you can enable and run the scandir@ service for you username in the current tree, the default tree.

ajhfsdh commented 2 years ago

I had installed everything like the documentation suggested. I ended up trying to reinstall Void with the install rather than through chroot, and this fixed the issue. I most likely messed something up in the chroot install, just not sure what.

mobinmob commented 2 years ago

I had installed everything like the documentation suggested. I ended up trying to reinstall Void with the install rather than through chroot, and this fixed the issue. I most likely messed something up in the chroot install, just not sure what.

Thank you for reporting back with a success :) Ι will have a much more streamlined process for user services soon - I hope... See here for some information.