-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access files through WebDav #5655
Comments
@isasmendiagus You do not provide a WebDAV path to the client, so it cannot work. |
The webdav paths are available under To find them out, you need to either know the spaceID beforehand or do an authenticated (OpenIDConnect) request against |
This is incredibly helpful, thank you! It would be even better to have the webDAV URLs provided in the OCIS web interface. |
Hello @micbar , thank you for your help! |
Hello @micbar, I hope you're doing well. I'm having some trouble using oidc-gen. I'm not able to obtain the token or add the configuration. Have you been able to connect to ocis using it? Here's the command I'm running and the error message I'm getting:
Error: Could not get token endpoint from the configuration endpoint. This could be because of a network issue. But it's more likely that your issuer is not correct. I'm using the client-id of the desktop application. If you have any insights or suggestions on how to resolve this, please let me know. Thank you for your help. Best regards, |
can you check with curl what |
i have found the webDavUrl from https://localhost:9200/graph/v1.0/me/drives?$top=0&$skip=0, but i still couldn't access it through webdav. it prints unknown error when i access it by webdav client and 401 by web browser |
@Princelo What did my proposed |
|
the issuer in your oidc-gen is also set to |
A bit late to the party but initially I could access my ocis webdav shares just fine using "davs://domain/remote.php/webdav" in gnome files or the usual "https://domain/remote.php/webdav" elsewhere.
And here's the result on gnome files: And using CX file explorer on Android: |
i guess u have got something wrong. the path "remote.php" belongs to ownCloud php version, not the OCIS which is developed in golang |
the proxy service in oCIS is clever enough to accept the webdav URLs with or without |
I'm happy you got it working :) |
Finally got webdav working as well thanks to the .env entries supplied by Ke1i. I have to say I am testing ocis after running php owncloud for many years, I thought it might be time to move to ocis seeing we are at v4. So far I have spent 2 days try to get the nginx proxy stuff working and one day getting webdav working. It is just so hard finding the correct options for what I consider a pretty simple environment. OCIS running on ubuntu 22.04, no docker, NGINX running on a separate server that already has certificates from letsencrypt for *.example.no-ip.org. Challenges still remaining are onlyoffice integration hopefully without getting into the bowels of ocis and what do I do about external storage. Frustrating but appreciative of the developmentss and direction forward. |
Two days huh? That's painful! |
While testing v4.0.1 binary on baremetal, I found something interesting:
Below is the environment file I'm using.
|
My env file is the same as yours except I have to set PROXY_TLS=true for everything to work with nginx.
|
I've just tried it again to be sure, for me the address |
You are right I tried it again in cx explorer on android and davs://my_url/remote.php/webdav does connect OK. I wonder if the webdav service on ocis has a bit of history from php owncloud. |
Yeah I think they kept it working in OCIS for backward compatibility. |
I am currently working on webDAV docs. |
Now I am confused. Does the statement |
These endpoints are perfectly suited for your purpose. Currently they are part of the product. If we remove them in the future, they will get a deprecation notice. So currently nothing to worry about it. Different SemanticsoCIS uses spaces for everything. Even the "personal" area in ocis is a space. It can be also accessed via The In oCIS, all received shares are deliberately moved outside of the "Personal Space". They can be accessed via the legacy endpoint The personal space without the mounted |
That is sad to hear. What is your usecase? |
Please check out our deployment examples in the ocis repo. We are trying to keep them very simple. The largest one is NOTE: oCIS itself is only a part of the solution. To get that Full Feature Set, you need to run a service mesh (LDAP, tika, traefik, wopiserver, onlyoffice, an OpenIDConnect provider and more). |
Thanks for the information. My usecase is that I am running a private family cloud about 8 users and 4T of cloud storage plus some external mounts. I have been using owncloud for about 10 years and migrate the setup about every couple of years. The current setup is a raspberry pi4 running ubuntu server 22.04 and owncloud 10.7 with the datastore on a NAS. Everything is behind a NGINX reverse proxy that supports a number of other services. I stayed with owncloud when nextcloud forked off because owncloud worked for me. It is now time for me to look at the next iteration of my cloud service, that is why I am playing with OCIS. The impression I have so far indicates that owncloud's future strategy is more towards the enterprise and not towards small users, like myself. is way beyond what I need to get involved in or my time and skill base can handle. I think my next test with be to do a snap install of Nextcloud and follow the instructions to integration onlyoffice (https://ubuntu.com/tutorials/how-to-integrate-onlyoffice-with-nextcloud-on-ubuntu#1-overview). Everything else about nextcloud eg webdav federation, backup etc. etc looks pretty similar to what I am doing now but with a support strategy for the future unlike owncloud 10. |
Like @gewinh, I use OCIS as a private family cloud with less than three (3) users. I don't need something like LDAP or an OpenIDConnect provider for my usecase. The OCIS binary just works for what I need and it shouldn't be overly complicated to get OCIS up and running for simple self-hosters like myself. |
I don't think so, honestly. Please do not compare two different things. NC and oc10Both solutions are based on the LAMP (Linux, Apache, MySQL, PHP) stack. The LAMP stack itself is huge and you can configure thousands of config values and find many ways to shoot yourself in the process. NC and oc10 need a lot more resources (CPU, memory) than ocis and are slower in performance. oCISoCIS needs no LAMP stack and no database. That is IMO a big relief and really sensational. It brings its on webserver, its own LDAP and a small OpenIDConnect provider in one binary. The setup is quite simple, provide a handful of ENV variables and you are ready to go. So this is very easy and handy for small deployments. Challenges in both worldsReverse proxy and SSL has always been a challenge and will always be. If you want to setup OnlyOffice with both of them, you will have a lot of struggle. E.g OnlyOffice needs PostgreSQL, RabbitMQ, Redis as a dependency. The "simple way" to setup onlyoffice is to use the all in one docker image. To setup full text search in oC10 or NC, you need an ElasticSearch Server or Cluster. You surely want to avoid to install and maintain that beast. oCIS has a built-in search backend based on bleve search. If you just add apache tika for content indexing, you will get Full Text search with very low effort. ExamplesWe are really trying to make things very accessible. Use the ocis_wopi example.
I have been product owner of oc10 for some years, now for oCIS and i know Nextcloud. There seems to be a strong opinion in the oc10 or NC world that bare metal installations are "easier". As I have been part of both worlds intensively, I can just say, it is the opposite. Bare metal installations have just so many issues with networking, ports, Hostnames, configuration and package management. The only thing which is admittedly a little bit more complicated with containers is persistance. But you will very quickly understand the concept of persistent volumes. I hope you can value my opinion. |
It is missing in the docs example. |
Yes, very simple: Lookups by ID are much faster. |
Baremetal NC was never easy unless done via Snap route. Apache, php, redis, using a 'proper' database, imagemagick, optimizations, hardening etc. What I love about OCIS is the fact that I can get things running in less than ten (10) minutes with just a single binary. All I need to do is to create the ocis user, create some directories and copy over sample environment and systemd unit files. And I can't stress enough about this one other thing, OCIS is way faster :)
Good to know, it should be documented so folks wouldn't need to keep guessing if it's officially supported or not. it's a lot cleaner and easier to remember IMHO. I hope it'll be supported in the long run going forward.
Maybe for machines, I'm just a simple self-hoster. But what do I know ¯_(ツ)_/¯ |
Great discussion. Thanks for all the input, not sure this is the right place for this type of discussion but it seems to be working. Getting back to webdav. As a test I have used rclone/webdav to copy shares from owncloud 10 to OCIS (15000 folders and files) this went OK and the data appeared in the Personal area of the appropriate user. So I don't understand the above info. Next problem is when I examine the data area on the disk I think the data is in my_datadisk_mount_point/storage/users/spaces With owncloud10 I have a nightly backup job that backs up the database and the data area I have a restore script that I have used to rebuild owncloud10 and the database and data, so I feel comfortable about not having a disaster. As per the docs if you run the init command on an existing setup, the data get screwed, certainly true from my experience. As files aren't stored as normal filenames is there a recommended backup process for OCIS or would rclone be the best? |
The other way around. The shares folder is inside the personal space. |
Yes. Only run it once to secure your installation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
Additional InfoCyper Duck and Mountain Duck are now supporting OIDC. Example has been added to our deployment examples. |
Describe the bug
Although I can access to the web interface, cannot access files through WebDav.
Tested with Nautilus on Ubuntu 22.04 and cadaver CLI
I have also tried to access through Nautilus without success
Steps to reproduce
apt install cadaver
Expected behavior
As an end user I expect to be able to access my files through WebDav.
I would like to mount a directory with davfs2 and work as if the remote files were local.
I can see here this is easily done with classic OwnCloud. Is that possible as well for Ocis?
Setup
ocis.env
The text was updated successfully, but these errors were encountered: