Hi, wanting the new nextcloud 21 i went to updater and beta and received 20.0.8Rc1 so i updated. The bad and obviously dumb mistake i made was updating php8 first. I’ve tried everything including purging to rollback. Now i cant get nextcloud back up and running and again now have php8 installed and I’m just trying to install nextcloud 21 by command line since i cant get into my web updater.
I’ve tried the following to install nextcloud 21:
Turn off maintenance mode
@nextcloudpi:~ $ sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
This version of Nextcloud is not compatible with > PHP 7.4.
You are currently running 8.0.2.
Command updater:
from below
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.htm
Received the following with command
i@nextcloudpi:~ $ sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 20.0.8 RC1.
PHP Fatal error: Uncaught Error: Call to undefined function NC\Updater\curl_init() in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php:455
Stack trace:
#0phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php(119): NC\Updater\Updater->getUpdateServerResponse()
#1phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(147): NC\Updater\Updater->checkForUpdate()
#2phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute()
#3phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run()
#4phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\Application->doRunCommand()
#5phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(118): Symfony\Component\Console\Application->doRun()
#6phar:///var/www/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#7 /var/www/nextcloud/updater/updater.phar(10): require(’…’)
#8 {main}
thrown in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php on line 455
Here is my system
- raspberry pi 4 8gb overclocked 2.0GHz
- @nextcloudpi:~ $ php -v
PHP 8.0.2 (cli) (built: Feb 20 2021 05:34:43) ( NTS )
Copyright © The PHP Group
Zend Engine v4.0.2, Copyright © Zend Technologies
with Zend OPcache v8.0.2, Copyright ©, by Zend Technologies - php modules
@nextcloudpi:~ $ php -m
[PHP Modules]
calendar
Core
ctype
date
exif
FFI
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
**** Nextcloud System Info***
System Info
NextCloudPi version | v1.34.7 |
---|---|
NextCloudPi image | NextCloudPi_11-27-20 |
distribution | Debian GNU/Linux 10 \n \l |
automount | yes |
USB devices | sda sdb sdc |
datadir | /media/myCloudDrive/ncdata |
data in SD | no |
data filesystem | btrfs |
data disk usage | 12G/7.3T |
rootfs usage | 4.8G/29G |
swapfile | /var/swap |
dbdir | /var/lib/mysql |
Nextcloud check | error |
HTTPD service | up |
PHP service | up |
MariaDB service | up |
Redis service | up |
Postfix service | up |
internet check | ok |
port check 80 | open |
port check 443 | open |
IP | |
gateway | |
interface | eth0 |
certificates | |
NAT loopback | no |
uptime | 54min |
version 20.0.8.0
Updating question:
I would like to know if there is any way to just update and/or upgrade to NC 21 with a command line or lines and if so what are they? I have been researching and trying different methods for a day now and cant find a solution. Any help wound be greatly appreciated! Thank you!
Sorry I don’t have any other logs as I can’t grab them
**|UPDATE2021-02-24T23:16:00Z___________________
Well after reading my own post i noticed missing modules. lol
So I installed this command:
sudo apt install -y php8.0-curl php8.0-gd php8.0-mbstring php8.0-xml php8.0-zip
new module list:
@nextcloudpi:~ $ php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Updating Now:
That worked for the update to perform but as of now it is only installing the below
@nextcloudpi:~ $ sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 20.0.8 RC1.
Update to Nextcloud 20.0.8 available. (channel: “beta”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-20.0.8.zip
Open changelog
Steps that will be executed:
Check for expected files
Check for write permissions
Create backup
Downloading
Verify integrity
Extracting
Enable maintenance mode
Replace entry points
Delete old files
Move new files in place
Done
Start update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[] Check for expected files
[] Check for write permissions
[] Create backup
[] Downloading
[] Verify integrity
[] Extracting
[] Enable maintenance mode
[] Replace entry points
[] Delete old files
[] Move new files in place
[] Done
Update of code successful.
Should the “occ upgrade” command be executed? [Y/n] y
This version of Nextcloud is not compatible with > PHP 7.4.
You are currently running 8.0.2.
Keep maintenance mode active? [y/N] n
This version of Nextcloud is not compatible with > PHP 7.4.
You are currently running 8.0.2.
Maintenance mode is disabled
After Update:
I still cannot update to nextcloud 21 is there a way to force NC21 since after the update it stays on 20.0.0.8?
Thank you