Problem starting miniDLNA Plugin

  • after a reboot, miniDLNA has problems starting.


    systemctl status minidlna.service shows:



    indicating, that is has problems accessing any of the paths.


    When I started it manually (after looking into it) with systemctl start minidlna.service, it had no problems at all.


    Again output of systemctl status minidlna.service



    Any ideas what I could do?

    TerraMaster T6-423

    Qnap TS-853A

    Qnap TS-451+

    Qnap TS-259 Pro+

    • Official Post

    Any ideas what I could do?

    It looks like minidlna is starting before your storage is mounted.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

  • That seems to solve the topic.


    Nevertheless, I didn't really like the idea of just putting some arbitrary timer in the startup process.

    So I did some further reading on that topic (including the basics of systemd) and I wonder it putting a dependency on multi-user.target would solve that topic.


    Has anybody already tied this?

    Is there anything obvius that I am missing?

    TerraMaster T6-423

    Qnap TS-853A

    Qnap TS-451+

    Qnap TS-259 Pro+

    • Official Post

    Having a dependency on multi-user.target isn't uncommon. There would be little risk with minidlna. I would just try it.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

  • Adding that dependency also solves that issue (at least for me).

    Tested with one reboot and one real shut down, waiting some time and bringing the system back up.

    TerraMaster T6-423

    Qnap TS-853A

    Qnap TS-451+

    Qnap TS-259 Pro+

  • well im my case I copied a file into this directory: /etc/systemd/system/minidlna.service.d

    Filename is: override.conf


    Content of that file is:

    Code
    [Unit]
    After=multi-user.target
    
    #[Service]
    #ExecStartPre=/bin/sleep 30
    #StartLimitIntervalSec=300s

    TerraMaster T6-423

    Qnap TS-853A

    Qnap TS-451+

    Qnap TS-259 Pro+

    • Official Post

    well im my case I copied a file into this directory: /etc/systemd/system/minidlna.service.d

    Filename is: override.conf

    sudo systemctl edit minidlna will automatically create the directory and open the file for editing.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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 looks like minidlna is starting before your storage is mounted.

    would it be possible to add this to the wiki?

    • Official Post

    would it be possible to add this to the wiki?

    What wiki? I don't even recommend people use the minidlna plugin. It only exists because I use it as a reference plugin when porting plugins to the next version of OMV. So, I don't really want to spend to spend the time to write a wiki about it.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!