-
Notifications
You must be signed in to change notification settings - Fork 164
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
Can't access Nextcloud files "The files could not be saved" #13
Comments
Hello @stemeinke, please send us a screenshot of the address settings of ONLYOFFICE integration app in your Nextcloud. Click also on the 'Save' button on the page with address settings and check if there is an error. |
@stemeinke, please specify if your Nextcloud instance is using HTTPS protocol also. We can see that the Document Server is on HTTPS and you are entering Nextcloud via HTTP. Error 301 can mean the failure to redirect to HTTPS. |
Yes the Nextcloud instance is also encrypted via HTTPS. Actually the are using the same reverse proxy and just the handling is different because of the different subdomains. |
Absolutely the same issue after an upgrade to 5.2.2 from rpm. The service itself is up and running, but when I try to save the settings in NC admin panel the following error occurs:
|
@stemeinke, @osscombat, please try to check if JWT token match each other in Nextcloud and Document Server. Since version 5.2 of the Document Server JWT token should be changed in local,json file and not in default.json file. Check also the accessibility of the servers to each other. Use wget command to do it: |
Thanks for the hints, wget accessibility checks are fine. I used a JWT token in the old default.json, how to properly setup the local.json file for 5.2.2, as I don't see it in /etc/onlyoffice/documentserver folder?
|
@osscombat, local.json file is placed in the same folder /etc/onlyoffice/documentserver/. Please make sure that you are using the latest version of the Document Server. Send us a screenshot of the output of the command |
Is the local.json just a copy of the recent default.json?
|
@osscombat, if I understand it right, you cannot find local.json in this folder? No, this is a new file which contains some connection and, for example, JWT settings. This was made to keep default.json unchangeable. |
yes, only default.json was installed, how can I generate the correct local.json file? |
@osscombat, this file should be generated automatically. Please specify also how you installed the Document Server. Did you execute documentserver-configure.sh script after the update? Please follow this link to find an instruction in the 'Configuring Document Server' section. |
Thanks, I've got local.json after the documentserver-configure.sh, but still no connection. I used this guide step by step for my installation: |
@osscombat, try to add the following section to Nextcloud config.php:
Where under **** are your JWT secret and header from local.json. |
I finally fixed this with setting the secret and token values in local.json. The only problem left is that /var/log/onlyoffice/documentserver/spellchecker/out.log is getting filled with messages:
|
@osscombat, ok, I'm glad that the issue has been resolved. Please specify in which log you see this warn message. |
/var/log/onlyoffice/documentserver/spellchecker/out.log |
@osscombat, could you please send us this log and also specify the exact version of your OS. |
The log consists of just this one message, only the worker ID and time is different, there are 4 lines per second, so the CPU load is high:
CentOS Linux release 7.5.1804 (Core) 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
and the /var/log/onlyoffice/documentserver/spellchecker/err.log contains:
|
@osscombat, please check the version of Node.js. If it is 6.14.4, please update it to the version 8.12.0. |
Yes, I had v6.14, v.8.12 has resolved the errors, thanks a lot! |
Okay I have checked with wget but it seems normal to me
and this is the output on the nextcloud server:
|
@stemeinke, have you tried to add the section below to config.php of Nextcloud?
Where under **** are your JWT secret and header from local.json. |
sorry but can you tell me where I can find the local.json? |
@stemeinke , it should be generated by the documentserver-configure.sh script into /etc/onlyoffice/documentserver/ path. |
@osscombat I'm runnig the docker image of onlyoffice so I think there is no script that could create the file outside the container and I'm not sure but I don't think I can get these information out of it. |
Please enter https protocol in the field |
I can confirm the problem. My instances run on: Both SSL connections are terminated on a docker swarm running a nginx reverse proxy, then in the swarm internally forwarded from nginx to workers using
{
"services": {
"CoAuthoring": {
"sql": {
"dbHost": "localhost",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"redis": {
"host": "localhost"
},
"token": {
"enable": {
"request": {
"inbox": false,
"outbox": false
},
"browser": false
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "secret"
},
"outbox": {
"string": "secret"
},
"session": {
"string": "secret"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
}
} The configuration used to work for a long time (at least until 12/2018), now (01/2019) no more. |
Hi, I have the exact same issue as @mwaeckerlin , nextcloud and onlyoffice running in docker swarm, used to work but now doesn't, and I have the same local.json file. |
Hi, I had the same issue. Check your Server address for internal requests from the Document Editing Service in the Advanced server settings of Onlyoffice. The value changed to http and should be https. Fill in your nextcloud https address and it should work again. |
Doesn't work for me unfortunately |
There are no «internal requests». OnlyOffice is configured to use the external HTTPS-URL. |
I am running OnlyOffice and Nextcloud in a Docker Swarm cluster and get the same error while trying to edit a document. I tried what @Edzilla2000 shared but I still get the same problem. I don't use any secret, and via the overlay network they can ping each other using container names I put in the advanced parameters. They listen on port 80 but we can access it via our Traefik with HTTPS. I see that the previous screen is not quite the same, is the fix different for the current version ? Let me know if you need some more information |
Ubuntu 18.04 |
Hello, i have the same issue with the External Storage - we use SMB/CIFS, and the documents don't open. Anyone a idea how to fix this issue? |
I have been redirected from the onlyoffice docker team to this. Does someone of you know a solution for this? (old Issue)
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When I click on a file in nextcloud the error above appears.
The error says that the file could not be saved (like these issue)
Logs
When I do the docker logs container-id these error is shown after I try to open a file.
What is the expected behavior?
Editing a file in OnlyOffice
DocumentServer Docker tag:
5.2.0
Nextcloud version:
14.0.1
Host Operating System:
Ubuntu 18.04 LTS
Let me know if you need some more information
The text was updated successfully, but these errors were encountered: