-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Installation fails - clean ubuntu install #2624
Comments
Hi, please try Ubuntu 22.04. Thanks! |
I'm seeing similar. it looks like something is really confused in |
Sorry I mis-typed and I am using 22.04. |
Just did a clean install of the VM and this time with only one 4TB disk. Still the same error. Creating possible missing Directories |
same issue, also with 22.04. Installing Nextcloud, it might take a while... |
Hmm, okay... It worked the last 10 times I did it today with the latest master. I'll have another look. |
It only happened for me with two things true at the same time:
|
Ok, we'll have a look. Sorry for the waiting time, been working 70 hours this week. |
Hello First time to comment and i am eager to have the nextcloud up and running again. in the check_command there is written sudo -u www-data if you change to root, the installation continues but after that it just only spams like this: LIke i said in the beggining, like the product and was using and will still use it so hoping that the problem is not big and we can install again very soon :) |
forgot to ask in yesterday comment. is there any possibility to download not the newest Nextcloud but like previous version like v28. because the problem i'm seeing it started with the newest nextcloud update, and until fix i could use previous versions until it is okay with the newer v29. |
Update took for my head to see and find the --not-latest flag in the nextcloud_install_production.sh, after trying to use this flag the installation was normal without the error and it installed 28.0.5 Nextcloud without the problems. |
where did you add the flag in nextcloud_install_production.sh? |
After a successful install, were you able to update to 29.x just fine? |
vjatsjeslav - when you are writing sudo bash nextcloud_install_production.sh need to only then add so it will be sudo bash nextcloud_install_production.sh --not-latest you see in the scrip file that it checks for that flag xKEVKx - didn't tried but will now go install in my prod server and try that again. because now tested in VM to see that i can have nextcloud runing up. but now will test normally in my prod server with domain and etc. and can come back to you about that. |
so I ran |
not related to last message to xKEVKx, but i came back to 28.0.5 version until further and it seems okay only warning about the maintenance windows and imagick and the log for now shows no warnings also or error so my opinion something has changed with the updater version 29 from nextcloud when they seems also updated the hub version also. That it began to check more or different now and maybe thats why we get error when installing and error after that or etc. Don't know what more from my side i can help to test more. But if i can help with something let me know. But i'm not linux or script guy so for me won't be easy to understand or to diagnose more of that hehe :-) |
Thanks for the debugging on this, will have a look when time allows. Probably something changed in Nextcloud 29. We don't recommend going for the latest instantly, but to wait for the next minor, so 29.0.1 in this case. Regarding the change in NC 29, maybe @szaimen knows more? |
There are some bug reports open in server... |
I got the same error ENV:
|
Same issue for me when I installed with
But I have a feeling it's because I created the ncadmin user as part of the install, at which point the script restarted the process on its own, probably not with the flag...just a theory. |
Yes that was it, the flag does not persist if the user running the script is not the same as when the command was initially run. Thank God for VM snapshots for testing! |
Hi guys, just released a new OS version, so now it works on Ubuntu 24.04! Added the --not-latest flag per default, and will have a closer look at the real issue. Please test the latest script! |
Just tested, working in current state! |
Now we are able to install NC 29, so please run it and be happy. :) |
Steps To Reproduce
Installation fails once Nextcloud installation begins:
Fresh and fully updated ubuntu server install.
sudo wget https://raw.githubusercontent.com/nextcloud/vm/master/nextcloud_install_production.sh
sudo bash nextcloud_install_production.sh
Let is run until errors out.
Expected Result
Full installation on ubuntu server.
Actual Result
Installing Nextcloud, it might take a while...
Console has to be executed with the user that owns the data directory
Current user id: 33
Owner id of the data directory: 0
Try adding 'sudo -u #0' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 0' to the docker command (without the single quotes)
{"reqId":"tm9PPIaCj3duEaDJjbe7","level":3,"time":"2024-04-24T22:32:46+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/var/www/nextcloud/config/config.php): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Config.php#225","userAgent":"--","version":"","data":{"app":"PHP"}}
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 maintenance:install --data-dir=/mnt/ncdata --database=pgsql --database-name=nextcloud_db --database-user=nextcloud_db_user --database-pass=byQOvZvcrdwZXZOaBnnX3jPBqeFGl --admin-user=ncadmin --admin-pass=nextcloud failed
Checking connection...
Home/SME Server not detected. No worries, just testing the function.
postgresql is installed, it must be a clean server.
kevin@cloud:~$
Screenshots, Videos, or Pastebins
No response
Additional Context
No response
Build Version
28
Environment
By using the scripts
Environment Details
Promox
Ubuntu 22.04 Server (clean install and fully updated)
The text was updated successfully, but these errors were encountered: