OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#50143] Improve Troubleshooting section for admins of the Nextcloud integration
Wieland Lindenthal29a86aa6fca5
diff --git a/docs/system-admin-guide/integrations/nextcloud/README.md b/docs/system-admin-guide/integrations/nextcloud/README.mdindex 0266f4ff82e..ba4de683c8e 100644--- a/docs/system-admin-guide/integrations/nextcloud/README.md+++ b/docs/system-admin-guide/integrations/nextcloud/README.md@@ -243,14 +243,13 @@ On Nextcloud inside the _OpenProject Integration_ App, when setting up an OpenPrIf you are facing any of the aforementioned errors while trying to set up the `Project folders` feature for the first time, or you don't care about the `OpenProject` user/group/folder data then the easiest solution is to remove any of the created `OpenProject` user/group/folder entities. Please follow the following steps:-- Disable the _OpenProject Integration_ App+- Disable the _OpenProject Integration_ App (Note: You need to disable the _OpenProject Integration_ App because user/group `OpenProject` is protected by the app, and it won't allow you to delete the user/group named `OpenProject`. Disabling and enabling the app is safe. No app data will be deleted.)- Remove user `OpenProject`- Remove group `OpenProject`-- Inside the _Group folders_ App (*Administration settings → Administration → Group folders*), remove group folder `OpenProject`+- Inside the _Group folders_ App (*Administration settings → Administration → Group folders*), remove group folder `OpenProject` (**Caution: that will delete all files in that folder. Make sure to make a copy if you want to keep these files!**)- Enable the _OpenProject Integration_ App- Set up the project folders again-> Note: You need to disable the _OpenProject Integration_ App because user/group `OpenProject` is protected by the app, and it won't allow you to delete the user/group named `OpenProject`. Disabling and enabling the app is safe. No app data will be deleted.If you do care about the `OpenProject` user/group/folder data then the conditions that bring the project folder setup to error state, and its possible solutions are as listed below:@@ -269,14 +268,12 @@ If you do care about the `OpenProject` user/group/folder data then the conditionIf you face an error while trying to delete or disable user/group "OpenProject" then that's because user/group is protected by the _OpenProject Integration_ App. If you really need to delete the user or group follow these steps:-1. Disable the _OpenProject Integration_ App+1. Disable the _OpenProject Integration_ App (Note: Disabling and enabling the app is safe. No app data will be deleted.)2. Remove user `OpenProject`3. Remove group `OpenProject`-4. Inside the _Group folders_ App (*Administration settings → Administration → Group folders*), remove group folder `OpenProject`+4. Inside the _Group folders_ App (*Administration settings → Administration → Group folders*), remove group folder `OpenProject` (**Caution: that will delete all files in that folder. Make sure to make a copy if you want to keep these files!**)5. Enable the _OpenProject Integration_ App-> Note: Disabling and enabling the app is safe. No app data will be deleted.-### Setting up Nextcloud in OpenProject#### Error message "Host can not be connected to"@@ -320,6 +317,24 @@ The integration OpenProject with Nextcloud makes use of authorized HTTP requestsIf not, first verify that the app **OpenProject Integration** is installed. If that is the case please check the [instructions for setting up pretty URLs in Nextcloud](https://docs.nextcloud.com/server/22/admin_manual/installation/source_installation.html#pretty-urls). This usually also resolves the issue of stripped `Authorization` headers.+#### Project folders are not created or you do not have access++You have setup the *Project folder* in both environments, Nextcloud and OpenProject but you cannot see any folder `OpenProject` in the root directory of **Files** app in Nextcloud.++1. Check that OpenProject's background worker are running. These workers create these folders and set the correct access permissions per user. For verification you have two options:+ 1. If you have root access to the OpenProject server where your worker should be running then check if there actually worker processes present:+ `ps aux | grep job`+ The result should show lines containing `bundle exec rake jobs:work`+ 2. If you don't have root access to the OpenProject server then you can check the following URL in your browser: `https://<your-openproject-server>/health_checks/all` (please insert the domain name of your OpenProject server). If your background workers are running, you should see a line like that `delayed_jobs_never_ran: PASSED All previous jobs have completed within the past 5 minutes`+2. Ensure that your project is setup correctly:+ 1. In your browser go to a project for which you want to have the **Project folders** feature to be working.+ 2. In the project's settings, check that+ 1. The **File storages** module is enabled+ 2. That the correct storage is enabled on that project and that **Project folders** setting is set to "New folder with automatically managed permissions"+3. Ensure that your user is full set up: OpenProject needs to know your Nextcloud user ID so that it can give your Nextcloud account the correct assess right to the project folder. That ID is obtained when you log into Nextcloud from within OpenProject: Go to a work package in that project, open the **Files** tab and ensure that you are logged-in into the Nextcloud storage. If you are not logged in, you should see a button to log-in. Click that button and follow the instructions on the screen.+4. If your OpenProject account is not an admin user, you need to make sure that your user is a member of the project and that your role has at least the permission to `Read files`. To check that the permissions for your role are correctly set-up you need to have an admin account. In the section **File storages** at least the permission to `Read files` needs to be checked.+5. If you changed anything in the three steps above, please wait up-to 30 seconds. If the background workers are working fine then you should see the project folder.+## Getting supportIf you run into any new issues or you cannot solve your integration please use our [Support Installation & Updates forum](https://community.openproject.org/projects/openproject/forums/9) or if you have an Enterprise subscription, please contact us at Enterprise Support.