-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Files are not loading. Everything else works fine. #12521
Comments
I don't know if this will help, but I tried sudo -u www-data php occ files:sca in the nextcloud folder and got this: Ensure there is a file called ".ocdata" in the root of the data directory. Your data directory is not writable Permissions can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/14/go.php?to=admin-dir_permissions. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /var/www/vhosts/.net/cloud..net/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /var/www/vhosts/the-owl.net/cloud..net/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /var/www/vhosts/.net/cloud.net/nextcloud/occ(11): require_once('/var/www/vhosts...') |
Is it a typo in your configuration that you've written
I think it is worse to check if the error message is telling the truth by checking on the console if your web server user can access the configured data director:
|
The Config seems right. Just a typo here on GitHub.
I tried some new Stuff: I set the Owner/Group of the data folder to www-data and now If I set the permission to 777 and try to open the site I get the following error:
Which means, your Data folder can be read by other users. And If I set the permission to 0770, I get the error:
But I can't access the Nextcloud log, because I can't login now and I don't know which other server log there could be... So I think the problem is the data folder and Nextcloud not being able to access it. I think Nextcloud can't access the www-data user or has its own, which I'm not familiar with. |
Looks more like a configuration issue to me than a bug with nextcloud. Please use http://help.nextcloud.com/ for your question.
|
Yeah I'm using Plesk. This explains a lot. Can you send me the right user? Thanks so much. |
The right user depends on your configuration. Usually you setup a user when creating a website. Here some more details about permissions https://docs.plesk.com/en-US/onyx/administrator-guide/web-hosting/website-directory-structure/virtual-host-structure-linux.68806/ and here is an article howto fix wrong permissions https://support.plesk.com/hc/en-us/articles/213910345-How-to-restore-default-permissions-in-the-virtual-host-directory-on-Linux- |
Please use http://help.nextcloud.com/ for configuration issues. |
Steps to reproduce
Expected behaviour
I should be able to see all the files, that I uploaded/were generated by Nextcloud.
Actual behaviour
It's just loading. Everything else (settings, apps etc.) works fine.
Server configuration
Operating system: Debian 4.9.130-2
Web server: Apache 2.4.25 nginx/1.13.8
Database: MySQL
PHP version: PHP 7.2.12-1+0
20181112102304.11+stretch1.gbp55f215Nextcloud version: 14.03
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: I installed it on my Plesk server using this link: https://download.nextcloud.com/server/installer/setup-nextcloud.php
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Chrome 70.0.3538.102 /Brave 0.25.2
Operating system: Windows 10
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: