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

Endless activation #2015

Open
mak163 opened this issue Dec 1, 2024 · 2 comments
Open

Endless activation #2015

mak163 opened this issue Dec 1, 2024 · 2 comments

Comments

@mak163
Copy link

mak163 commented Dec 1, 2024

I have installed NextCloudPi in the LXC Proxmox container. After installation, when I go to the page https://nextcloudpi.local/activate / the system suggests saving passwords and activating NextCloudPi . When I press "Activate", the message "NextCloudPi not yet initialized, trying again in a few seconds ..." is displayed and the circle turns endlessly.

@cblt2l
Copy link

cblt2l commented Dec 27, 2024

I ran into the same issue trying to install as an LXC on Proxmox. I set it up with 1 cpu core, 1GiB ram and set it to run as a privileged container.

running journalctl -ef in the running container, I could see the following lines repeating endlessly.

Dec 27 17:42:45 nextcloud sudo[4164]:     root : PWD=/ ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ config:system:get overwrite.cli.url
Dec 27 17:42:45 nextcloud sudo[4164]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Dec 27 17:42:45 nextcloud sudo[4164]: pam_unix(sudo:session): session closed for user www-data
Dec 27 17:42:48 nextcloud sudo[4168]:     root : PWD=/ ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ config:system:get overwrite.cli.url
Dec 27 17:42:48 nextcloud sudo[4168]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Dec 27 17:42:48 nextcloud sudo[4168]: pam_unix(sudo:session): session closed for user www-data
Dec 27 17:42:49 nextcloud sudo[4172]: www-data : PWD=/var/www/ncp-web ; USER=root ; COMMAND=/home/www/ncp-launcher.sh nc-admin
Dec 27 17:42:49 nextcloud sudo[4172]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=33)
Dec 27 17:42:49 nextcloud sudo[4191]:     root : PWD=/var/www/ncp-web ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ status
Dec 27 17:42:49 nextcloud sudo[4191]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
Dec 27 17:42:49 nextcloud sudo[4191]: pam_unix(sudo:session): session closed for user www-data
Dec 27 17:42:49 nextcloud sudo[4218]:     root : PWD=/var/www/ncp-web ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ user:resetpassword --password-from-env ncp
Dec 27 17:42:49 nextcloud sudo[4218]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)

@Futty87
Copy link

Futty87 commented Jan 16, 2025

Hello!
same problem here, in my case the database is probably not running...

Proxmox LXC with "NextcloudPI_LXC_x86_v1.55.3.tar.gz", 2GB Ram / 2 cpu cores / 2 GB Swap, 8GB diskspace.
"apt-get update && apt-get upgrade" does not help.
I just changed the default ports to 82 / 2443 / 4443 and set a new IP address in "/etc/systemd/network/eth0.network"

systemctl status mysql
× mariadb.service - MariaDB 10.11.6 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Thu 2025-01-16 19:11:57 UTC; 1h 41min ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 337 (code=exited, status=1/FAILURE)
     Status: "MariaDB server is down"
        CPU: 129ms

Jan 16 19:11:57 nextcloud systemd[1]: Starting mariadb.service - MariaDB 10.11.6 database server...
Jan 16 19:11:57 nextcloud mariadbd[337]: 2025-01-16 19:11:57 0 [Warning] Can't create test file '/var/lib/mysql/nextcloud.lower-test' (Errcode: 13 "Permission denied")
Jan 16 19:11:57 nextcloud mariadbd[337]: 2025-01-16 19:11:57 0 [Note] Starting MariaDB 10.11.6-MariaDB-0+deb12u1 source revision  as process 337
Jan 16 19:11:57 nextcloud mariadbd[337]: 2025-01-16 19:11:57 0 [ERROR] mariadbd: Can't create/write to file './ddl_recovery.log' (Errcode: 13 "Permission denied")
Jan 16 19:11:57 nextcloud mariadbd[337]: 2025-01-16 19:11:57 0 [ERROR] DDL_LOG: Failed to create ddl log file: ./ddl_recovery.log
Jan 16 19:11:57 nextcloud mariadbd[337]: 2025-01-16 19:11:57 0 [ERROR] Aborting
Jan 16 19:11:57 nextcloud systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 19:11:57 nextcloud systemd[1]: mariadb.service: Failed with result 'exit-code'.
Jan 16 19:11:57 nextcloud systemd[1]: Failed to start mariadb.service - MariaDB 10.11.6 database server.
cat /var/log/ncp.log
[ nc-admin ] (Thu Jan 16 21:08:37 UTC 2025)
Cannot load Zend OPcache - it was already loaded
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:233
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()
#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()
#6 /var/www/nextcloud/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr()
#7 /var/www/nextcloud/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig()
#8 /var/www/nextcloud/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues()
#9 /var/www/nextcloud/lib/private/App/AppManager.php(126): OC\AppConfig->getValues()
#10 /var/www/nextcloud/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues()
#11 /var/www/nextcloud/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps()
#12 /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()
#13 /var/www/nextcloud/lib/base.php(657): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#14 /var/www/nextcloud/lib/base.php(1132): OC::init()
#15 /var/www/nextcloud/console.php(28): require_once('...')
#16 /var/www/nextcloud/occ(11): require_once('...')
#17 {main}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants