March 22, 2022, 4:08am
Hardware: core i7 with gigabyte motherboard installed ESXi 6.7.0 update2
**YunoHost version: 126.96.36.199 (stable)
**I have access to my server: through the web admin | direct access via keyboard/screen via ESXi web panel | and through Putty.
I have been installed nextCloud from Yunohost server more than two months ago and it’s working perfectly, suddenly I’m facing this error since yesterday and can’t find any way to solve this error or can’t understand the issue. I couldn’t find much online that actually worked so I was hoping somebody here to help me to solve this issue.
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
**Remote Address**: --.--.--.--(my public ip)
**Request ID**: CW7mBsJVRPL*******
I’ve attached my issue’s screenshot below:
March 22, 2022, 4:52pm
You can search the reasons in the error log: /home/yunohost.app/nextcloud/data/nextcloud.log
tail -n3 /home/yunohost.app/nextcloud/data/nextcloud.log
You can directly check that your system is not full:
I suggest you to go in Webadmin > Diagnosis too. It could be helpful.
March 25, 2022, 3:53am
I backed up my server just a few days ago, through this error when I restored this backup.
Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory. Cannot create “data” directory This can usually be fixed by giving the webserver write access to the root directory. See Installation wizard — Nextcloud latest Administration Manual latest documentation
March 25, 2022, 8:21am
With which method did you do the backup/restore ?
March 25, 2022, 11:50am
I was used WinSCP for backup and restore.
March 25, 2022, 12:08pm
So that’s why you have the issue. You need to set the good permission on your files:
Whith this command you can identify unix permissions issues:
namei -l /home/yunohost.app/nextcloud/data/
And you can use the command chmod and chown to fix the permission. The error message seems to says that you have no write permission on data folder, so you can try something like:
chown -R nextcloud:nextcloud /home/yunohost.app/nextcloud
chmod -R u+w /home/yunohost.app/nextcloud/
Next time you should backup and restore with a tool that conserve those permissions like
cp -a or
Note: with yunohost it’s sometimes possible to reapply permissions for an app thanks to the upgrade command:
yunohost app upgrade --force nextcloud
But this last command could also failed, it depends exactly of the way you restored things, sometimes the script could failed cause we don’t imagine things could be like you restore it manually.
March 25, 2022, 12:45pm
now I’m facing this error again:
Logs and logs
Screenshot can’t help understand what’s happening, you have to provide logs.
Nextcloud and nginx logs
March 25, 2022, 1:15pm
I agree with
@jarod5001 , and please explain what you have tried precisely, because at this step i can’t know if you applied my commands and what was the result of each command…
In the webadmin go to services > nginx
Look for the log named by the domain name of your nextcloud installation followed by ‘error’
Copy the last lines here.
We’ll start with it
March 27, 2022, 3:40am
Could you please help me to find nextcloud and Nginx error log file location? I’m used WinSCP to handle all files in yunohost.
March 27, 2022, 6:27am
Could you please help me to find nextcloud and Nginx error log file location?
March 29, 2022, 5:39pm
Here is how you can get the log for nextcloud
April 7, 2022, 9:48am
Everything is fine now!! thanks
April 22, 2022, 9:48am
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.