-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Installer Broken #1004
Comments
You need to mount both drives correctly, or choose 1 drive during the initial setup if you used the scripts. |
I'd appreciate it if you didn't close the issue with a vague "You didn't do something right". If there are two steps to the instructions, the first of which completes successfully with no errors and the second is broken with the above errors, then there is an issue with the installer, not with how I mounted the drive. Nextcloud formatted the drive in the first process, and as you can see below, it is mounted for the second process (sdc). findmnt |
OK, I'll make an installation when have time just to test. But I'm 99.9% sure it's working since nothing changed since release and I do 10 installations each time. |
@thedanetidwell OK, so I just tested a fresh install on VMware ESXi 6.5, and I don't experience any of the issues you are describing. Which hypervisor are you running? How did you mount the disks? |
Tested today again and everything works. |
I am getting the exact same errors as @thedanetidwell. |-/mnt/ncdata ncdata zfs rw,noatime,xattr,noacl |
Sorry, output is a little different, but stops at the same point. Your data directory is not writable An unhandled exception has been thrown: |
I went in and used chown, chgrp, and chmod to set permissions of /var/www/nextcloud and /mnt/ncdata to match a working servers permissions and then re-ran the sudo -u sudo bash /var/scripts/nextcloud-startup-script.sh Things have continued on as normal now. |
Permissions are set before Nextcloud is installed: https://github.com/nextcloud/vm/blob/master/nextcloud_install_production.sh#L370-L372 |
Is there a reason that line in the script wouldn't have applied permissions correctly or that after the reboot those permissions were change? Because after the reboot the permissions for all of those folders and files were all set to root for owner and group with www-data having not access until after I changed it manually and then re-ran the setup script. |
Maybe it's an Azure thing, I don't know actually. It works on a plain Ubuntu 18.04 machine on VMware. Making a new release right now, and so far 3 installations were OK. There are no bugs in the script, since it applies correctly, and permissions are correct. Try it for yourself and see. Fire up a plain Ubuntu Server 18.04, run the script and see the result. |
That is the process I have been following. I actually have to reload now again because the zfs disk didn't mount correctly, the data share filled up, and then when fixing the issue I accidentally deleted part of the content of /mnt/ncdata and I am not sure how to repair that. So reloading again, with a brand new 18.04lts with the script and will let you know how it goes. |
Ok, brand new server install. Before script reboot: After Script Reboot: Script fails after reboot stating: After closing prompt, this is what is in the terminal: Your data directory is not writable An unhandled exception has been thrown: Folder permissions: drwxr-xr-x 4 root root 4096 Mar 27 01:16 . |
I think that untimely what it is, zfs isn't auto mounting correctly therefor the .ocdata file is missing and the script is then failing thinking the version is incorrect. When I run sudo -u www-data php /var/www/nextcloud/occ -V after everything is fixed with zfs and the .ocdata file is present with the correct permissions it completes and returns the Nextcloud version. Before that the command fails with the error above. I hopefully will not be reloading, but hopefully this helps someone else. |
Yes, that seems about right. Still, very strange issue - that only seems to be on very certain servers, this time Azure. |
Steps to reproduce
Expected behaviour
The rest of the installation should complete
Actual behaviour
Fetching all the variables from lib.sh...
Testing if network is OK...
Checking connection...
Online!
Testing if network is OK...
Checking connection...
Online!
/dev/fd/63: line 789: [: : integer expression expected
/dev/fd/63: line 825: [: : integer expression expected
Your data directory is invalid
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/17/go.php?to=admin-dir_permissions.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
Stack trace:
#0 /var/www/nextcloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#2 {main}Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ -V failed
Server configuration
UNK
Server OS (Ubuntu server is default)
Scripted install from master
Network
No
Yes
Logs / Screenshots
Log file (/var/log/nextcloud/nextcloud.log)
Installation log (command output)
Screenshoots
The text was updated successfully, but these errors were encountered: