WebDAV

    • Offizieller Beitrag

    Does it work if you run: sudo systemctl restart nginx

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

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


    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!

  • Tried windows and NextCloud. Am I configuring it correctly?

    I don't use it but maybe you need to put http: on it

    • Offizieller Beitrag

    Am I configuring it correctly?

    No idea. I don't use whatever app that is. I always test in a browser. http or https is determined by the OMV web interface. If you access OMV via http, then webdav will be http. Same for https. Do you have OMV on a non-standard port?

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

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


    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!

  • No idea. I don't use whatever app that is. I always test in a browser. http or https is determined by the OMV web interface. If you access OMV via http, then webdav will be http. Same for https. Do you have OMV on a non-standard port?

    Its a standard install. No Port.

    weirdly, I tried what you suggested in the browser.. Got a response once I authenticated..

    So, its something to do with the way I am configuring NextCloud (And Windows)

    Just tried Windows again. still no go.

    But, NextCloud just jumped into life:

    I have permission issues now as I cant seem to add or modify, but its 90% more progress!!

    The permission issue has always been my nemesis tbh. Could you possibly advise on how to set the correct permissions? I suspect nextcloud uses a user www-data and www-data as a group.

  • I installed nextcloud,


    I suspect nextcloud uses a user www-data and www-data as a group.


    It depends on HOW you installed it.

    If on docker, it will run with the UID setted on the YML.


    If installed on the system, then you need to figure out by asking on Nextcloud forum/github.

  • Thanks Both for your extremely constructive and helpful advice.

    NextCLoud is running in a standard Proxmox VM (LXC poses quite a few challenges, and I didn't want to go down that rathole!)


    Take care, enjoy the weekend :)

    • Neu
    • Offizieller Beitrag

    I have installed the plugin. I have set up a shared folder and enabled the webdav-users group.

    For the connection to work I restarted the server (windows style, sorry :) ), before that it didn't work. I guess the plugin should restart the nginx service after enabling the shared folder. The response before restarting was this:

    Code
    Failed to connect: The server returned the error code 405 (MethodNotAllowed), indicating that the server does not support WebDAV connections 

    I'm not sure about this, I did a few things at once, but I think I also needed a reboot after adding a user to the webdav-users group for the connection to work. The response prior to this reboot was not a connection issue like the previous one, it had something to do with permissions. After the new reboot the connection was established.

    Now I can read the folder but I can't write. Is this the expected behavior or is it some other permissions issue? Should you be able to write to that shared folder?

    • Neu
    • Offizieller Beitrag

    For the connection to work I restarted the server (windows style, sorry :) ), before that it didn't work. I guess the plugin should restart the nginx service after enabling the shared folder.

    It is supposed to restart nginx. I will have to look at it again.

    I'm not sure about this, I did a few things at once, but I think I also needed a reboot after adding a user to the webdav-users group for the connection to work. The response prior to this reboot was not a connection issue like the previous one, it had something to do with permissions. After the new reboot the connection was established.

    I would curious if restarting nginx instead of a reboot fixed this.


    Now I can read the folder but I can't write. Is this the expected behavior or is it some other permissions issue? Should you be able to write to that shared folder?

    That is likely a permissions issue.

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

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


    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!

    • Neu
    • Offizieller Beitrag

    I would curious if restarting nginx instead of a reboot fixed this.

    ok, I'll try it and let you know.

    That is likely a permissions issue.

    Any idea what to do?

    The user is in the users and webdav-users groups. The user has write permissions on that shared folder and the webdav-users group does as well. I can't think of anything else to try.

    OMV limits the use of the GUI to the admin user. Could that have something to do with it since webdav is using the same nginx as the OMV GUI?

    • Neu
    • Offizieller Beitrag

    I would curious if restarting nginx instead of a reboot fixed this.

    Yes, Restarting the service works but I still have read-only permissions for no apparent reason.


    _________________________________________________________________________


    new vm and webdav plugin installed. The GUI is on port 80 with http.


    Shared folder created -> "backup"


    User peter created.

    - peter can write to the backup folder.

    - peter belongs to the users and webdav-users groups.


    The webdav-users group can write to the backup shared folder.


    I enable the webdav service from the GUI by configuring the backup shared folder and the default webdav-users group.


    I try to create a connection from a container on another IP on the local network and get this error:

    Failed to connect: The server returned the error code 405 (MethodNotAllowed), indicating that the server does not support WebDAV connections


    I check the status of the nginx service and it is correct. I restart the service.


    systemctl restart nginx


    The service is still active and without errors:


    After restarting the nginx service the connection is established at http://192.168.10.118/webdav Message:

    The connection worked!


    I force the creation of a folder from the container. This is Duplicati. I'm just trying to connect to http://192.168.10.118/webdav/test. Duplicati informs me that this folder does not exist and asks me if I want to create it. This works for me with a webdav folder on a remote Nextcloud instance. I answer yes. Duplicati should create that folder but I get this error:


    Failed to connect: The remote server returned an error: (403) Forbidden.


    If I can help with anything else, tell me.

Jetzt mitmachen!

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