Not even sure where to start - some services failing to run on 3.0.64

    • Offizieller Beitrag

    The sysvinit script that I made for the plugin starts a separate service per user. I didn't think there was a systemd script included in the syncthing package. I guess I will have to look at that but it may not start a separate service for each user like the plugin is designed for.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • It does, since Syncthing is designed to be per-user sync like Dropbox is. The service it uses is syncthing@.service, and the username running the process goes after the @.


    What I can't figure out is why none of the sysvinit wrapped services appear to be working. I'm also more than slightly surprised that Samba doesn't have a native systemd service file, though I wouldn't be shocked to find that that's Debian being a bit lagged.

    • Offizieller Beitrag

    It does, since Syncthing is designed to be per-user sync like Dropbox is. The service it uses is syncthing@.service, and the username running the process goes after the @.

    If you want to try my latest change to using the systemd unit file instead of my init script, you can download the package here.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • If you want to try my latest change to using the systemd unit file instead of my init script, you can download the package here.

    Okay, first thing's first: It works just fine for me. Uninstalled Syncthing and plugin, manually deleted the config files after backing them up for the users I was using, manually reinstalled syncthing then did a purge of it (just in case), then reinstalled via OMV WebUI and went in.


    First I created a dummy one with a different user on different ports from the default. Applied no problem, Syncthing GUI came up right away. Deleted that dummy user, set one up for my original user on the default ports, and for a minute or so I was getting connection refused. Then the UI with mapped folders, Username/Password prompt, and changed theme just like it was before testing popped up. Clearly there's somewhere other than ~/.config/syncthing/ that the user configs are saved.


    On a momentary whim, however, I went back to the port that I used for the dummy user, and it was still up and running. Given how heavy scans and syncs can be, that could be bad.


    Other than that, seems to be working just fine.

    • Offizieller Beitrag

    On a momentary whim, however, I went back to the port that I used for the dummy user, and it was still up and running. Given how heavy scans and syncs can be, that could be bad.

    Thanks for pointing that out. Deleted users are disabled now. If you want to try the latest package, it is available in the same place.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks for pointing that out. Deleted users are disabled now. If you want to try the latest package, it is available in the same place.

    Yep, that took care of it. I note that when I deleted the test user, the regular user's web UI became unavailable for about 30 seconds to a minute. I mention it more as a head's up for when someone says "OMG I DELETED $OLDUSER AND YOU DELETED $CURRENTUSER TOO!!!!11!!eleven1!". :)


    Any ideas as to what could be causing pretty much every SysV-controlled script to be blowing up? I've compared scripts between the two boxes and I come up with nothing really different.

    • Offizieller Beitrag

    I mention it more as a head's up for when someone says "OMG I DELETED $OLDUSER AND YOU DELETED $CURRENTUSER TOO!!!!11!!eleven1!

    I guess it is restarting every user's instance. I can fix that.


    Any ideas as to what could be causing pretty much every SysV-controlled script to be blowing up? I've compared scripts between the two boxes and I come up with nothing really different.

    Maybe try reinstalling systemd-sysv and sysvinit-utils?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    New version in same location. Never restarts all the users. Got rid of the service status on the service overview since it can only represent one user's status. You will never see the apply bar anymore. Everything happens right away. This keeps all users from being restarted and it lets the user restart their service if they change settings.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • New version in same location.

    Gotcha, will give it a spin shortly.


    Random thought, I was able to bring my CPU utilization WAAAAAY down - like, average of 15% to about 0.1% - by installing syncthing-inotify along with it. Only problem is, it pretty well chews through the inotify queue and you have to modify /etc/sysctl.conf to increase it. Not exactly a good idea for a plugin, but if you've got a weaker system using Syncthing, might make a huge difference.



    Maybe try reinstalling systemd-sysv and sysvinit-utils?

    Might as well. I'd tried apt-get install --reinstall samba to see if I could get it to rebuild the sysv script-generated unit, but that didn't impact. Might as well do the same thing with those.

    • Offizieller Beitrag

    Random thought, I was able to bring my CPU utilization WAAAAAY down - like, average of 15% to about 0.1% - by installing syncthing-inotify along with it. Only problem is, it pretty well chews through the inotify queue and you have to modify /etc/sysctl.conf to increase it. Not exactly a good idea for a plugin, but if you've got a weaker system using Syncthing, might make a huge difference.

    I worked on adding that at one time but never finished. The minidlna plugin actually increases max user watches. So, that isn't a problem.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    I just looked at inotify and it would be easy to add with how the plugin works. I will just add a inotify checkbox in the settings since it needs to be enabled per user.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Added the inotify option to the plugin and the updated version is in the same place.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Just need to figure out where to set the max user watches.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Just need to figure out where to set the max user watches.

    It's in /etc/sysctl.conf, needs to have fs.inotify.max_user_watches=204800 to make the change permanent, but to change it for the running system, /proc/sys/fs/inotify/max_user_watches is what needs to be set to 204800. Syncthing's github page tells you to use the command sudo sh -c 'echo 204800 > /proc/sys/fs/inotify/max_user_watches' to set it, and it needs to be done prior to starting inotify.


    Haven't had a chance to test yet, I rebooted the remote NAS earlier for something else and it never came back online. When/if I can get a hard reboot and make sure there's power to it, I'll update and test.


    Thanks!

  • Alright, got it rebooted, not sure what exactly happened but the system was running, it just didn't have a network connection somehow. networking.service fails to run, which I'm beginning to think may be the root of the problem altogether. Note that network-online.target is fine, and I'm (now) able to access remotely over SSH and the web UI, but networking.service is down. Here's the status output:



    Now, that was the result of me trying to enable IPv6 via the web UI, but I just issued a systemctl start networking.service and the only thing that changed was the timestamps. On the other hand, that might be something from sysvinit and this is an effect of the issue, not a cause.


    On the plugin updates for Syncthing, uploaded the new one, I've got the enable switch for inotify now, and it works if I create with it (and doesn't if I don't), shuts off if I disable, comes up when I enable, and all around works as I'd expect it to.

    • Offizieller Beitrag

    Latest package in same location has the inotify stuff in it. I think it should be close to ready.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hello,
    I had the same problem until yesterday, on a clean install of openmediavault with the latest ISO from December 2016. Services like samba wouldn't start when using systemd or the init.d script. The binary itself could be run without any problems.
    I noticed that there are two start-stop-daemons: /sbin/start-stop-daemon and /sbin/start-stop-daemon.REAL
    I fixed the problem by moving /sbin/start-stop-daemon.REAL to /sbin/start-stop-daemon. Now everything works fine.

    • Offizieller Beitrag

    I don't have two start-stop-daemon files on any of my systems. No idea what creates it but it would interesting to know.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!