Skip to content
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

N'autorise pas la connexion. #71

Closed
nicolas5501 opened this issue Sep 12, 2019 · 4 comments
Closed

N'autorise pas la connexion. #71

nicolas5501 opened this issue Sep 12, 2019 · 4 comments

Comments

@nicolas5501
Copy link

Hello, can you help me ?

Script run but Web don't work.
i put config file and the error whitch i see.

I get all puty log install if you need it.

Thanks.

% cat nextcloud-config

JAIL_IP="192.168.1.72"
DEFAULT_GW_IP="192.168.1.254"
POOL_PATH="/mnt/Vol_1"
TIME_ZONE="Europe/Paris"
HOST_NAME="cloud.nd30.fr"
STANDALONE_CERT=1
CERT_EMAIL="admin@nd30.fr"
JAIL_NAME="Cloud"

I see this error near finish

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /usr/local/www/nextcloud/lib/private/Console/Application.php:166
Stack trace:
#0 /usr/local/www/nextcloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /usr/local/www/nextcloud/occ(11): require_once('/usr/local/www/...')
#2 {main}
Your data directory is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.

@danb35
Copy link
Owner

danb35 commented Sep 14, 2019

What happens if you chmod 770 /mnt/Vol_1/files and then re-run the script?

@nicolas5501
Copy link
Author

nicolas5501 commented Sep 14, 2019

Thx for reply.
"CHMOD Operation not permitted"
https://www.system-linux.eu/index.php?post/2016/04/25/Gestion-des-ACL-Linux

I don't know when and how i change something to loose this ability.

freenas% ls -l
total 27
drwxrwxr-x+ 5 88 88 17 Sep 14 07:31 db
drwxrwxr-x+ 3 www www 7 Sep 13 07:42 files
drwxr-xr-x 9 root wheel 10 Sep 13 07:31 iocage
drwxrwxr-x+ 4 root moi 4 Sep 13 07:36 portsnap
drwxrwxr-x+ 2 root moi 4 Sep 12 12:43 Share

@danb35
Copy link
Owner

danb35 commented Oct 3, 2019

The output you show of ls indicates that you're using Windows permissions on the files directory/dataset, which is going to cause the problem you're seeing (you have that setting on the db and portsnap datasets as well, which isn't ideal, but isn't likely to cause a problem). You should use the FreeNAS GUI to set that dataset to Unix permissions.

@Ornias1993
Copy link
Contributor

@nicolas5501 Also, your link is about Linux. FreeNAS and this script are not Linux Based.

Anyhow, what @danb35 says would most certainly be the cause of this.
Considering you didn't respond anymore I guess this is solved and could be closed.

@danb35 danb35 closed this as completed Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants