Support intro
Dear community Members,
I was able to migrate my NextcloudPi Instance to a Proxmox LXC Docker installation behind NGINX. Migration was done based on the user-data (/data) and the mariadb database. I did not touched the nextcloud installation files of my docker installation.
I had some serious challenges (for my skillset) with the migration process, e.g. i was not able to drop the old Database created with the docker deployment which was called nextcloud-db, therefore switching to “nextcloud” as the new (and old nextcloudpi) name of the database, and so and and so forth. however after 4-6 h of fiddeling around and following various topics inside this forum, the nextcloud installation is up and running again.
for example the permissions were not correctly set even with using rsyn -Aax etc.
chown -R www-data:www-data /mnt/.docker-data/volumes/nextcloud/nextcloud-data/data
find /mnt/.docker-data/volumes/nextcloud/nextcloud-data/data/ -type d -exec chmod 750 {} ;
find /mnt/.docker-data/volumes/nextcloud/nextcloud-data/data/ -type f -exec chmod 640 {} ;
sortet such stuff. 2FA was broken as well, occ was helpfull with deactivating the 2FA for the users so to login again, recreating 2FA credentials again etc.
i can login into my existing admin accound, i was able to reconnect my client pc and android app as well as sync is up and running again.
however my log states a lot of errors were i dont know how to start or how to understand the problems of the existing mirgrated installation. Therefore I would ask for help of you experts.
here are the latest outputs of my log
Nextcloud version (eg, 20.0.5):
php occ status
- installed: true
- version: 28.0.4.1
- versionstring: 28.0.4
- edition:
- maintenance: false
- needsDbUpgrade: false
- productname: Nextcloud
- extendedSupport: false
Operating system and version (eg, Ubuntu 20.04): Debian 12 as Proxmox LXC
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me
The issue you are facing: Log Errors after migration process.
Is this the first time you’ve seen this error? : Yex
The output of your Nextcloud log in Admin > Logging:
{"reqId":"I45J2LZeK70C6vhpmeLM","level":2,"time":"2024-04-09T10:10:08+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"error while discovering ocm provider","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"OCP\\Http\\Client\\LocalServerException","Message":"Host violates local access rules","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***","https://*** sensitive parameters replaced ***.duckdns.org/ocm-provider/",[true,10,[["Closure"]],10,[false],"And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/OCM/OCMDiscoveryService.php","line":86,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://*** sensitive parameters replaced ***.duckdns.org/ocm-provider/",[10,true,10]]},{"file":"/var/www/html/apps/files_sharing/lib/External/Storage.php","line":87,"function":"discover","class":"OC\\OCM\\OCMDiscoveryService","type":"->","args":["https://*** sensitive parameters replaced ***.duckdns.org"]},{"file":"/var/www/html/lib/private/Files/Mount/MountPoint.php","line":168,"function":"__construct","class":"OCA\\Files_Sharing\\External\\Storage","type":"->","args":[["https://*** sensitive parameters replaced ***.duckdns.org/","eaXfvPZjqC1oUn6","","/*** sensitive parameters replaced ***/files/*** sensitive parameters replaced ***","*** sensitive parameters replaced ***","And 5 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/Files/Mount/MountPoint.php","line":193,"function":"createStorage","class":"OC\\Files\\Mount\\MountPoint","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Mount/MountPoint.php","line":294,"function":"getStorage","class":"OC\\Files\\Mount\\MountPoint","type":"->","args":[]},{"file":"/var/www/html/lib/private/Files/Config/UserMountCache.php","line":83,"function":"getStorageRootId","class":"OC\\Files\\Mount\\MountPoint","type":"->","args":[]},{"file":"/var/www/html/lib/private/Files/SetupManager.php","line":297,"function":"registerMounts","class":"OC\\Files\\Config\\UserMountCache","type":"->","args":["*** sensitive parameters replaced ***",[["OC\\Files\\Mount\\HomeMountPoint"],["OCA\\Files_Sharing\\External\\Mount"],["OCA\\Files_Sharing\\SharedMount"],["OCA\\Files_Sharing\\SharedMount"]],["OC\\Files\\Mount\\CacheMountProvider","OCA\\Files_Sharing\\MountProvider","OCA\\Files_Sharing\\External\\MountProvider"]]},{"file":"/var/www/html/lib/private/Files/SetupManager.php","line":221,"function":"afterUserFullySetup","class":"OC\\Files\\SetupManager","type":"->","args":["*** sensitive parameters replaced ***",[]]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":110,"function":"setupForUser","class":"OC\\Files\\SetupManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":90,"function":"setupFS","class":"OC_Util","type":"::","args":["*** sensitive parameters replaced ***]},{"file":"/var/www/html/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":75,"function":"setupFS","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Manager.php","line":656,"function":"OCA\\Files_Trashbin\\BackgroundJob\\{closure}","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":73,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":81,"function":"run","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"],["OC\\Log"]]}],"File":"/var/www/html/lib/private/Http/Client/DnsPinMiddleware.php","Line":150,"message":"error while discovering ocm provider","exception":[],"remote":"https://*** sensitive parameters replaced ***.duckdns.org","CustomMessage":"error while discovering ocm provider"},"id":"66151422754bb"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'upgrade.disable-web' => true,
'instanceid' => 'oct7o6303nul',
'passwordsalt' => '*** sensitive parameters replaced ***',
'secret' => '*** sensitive parameters replaced ***',
'trusted_domains' =>
array (
0 => 'nextcloud.local',
1 => '*** sensitive parameters replaced ***.*** sensitive parameters replaced ***.duckdns.org',
2 => '*** sensitive parameters replaced ***.duckdns.org',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '28.0.4.1',
'overwrite.cli.url' => 'http://nextcloud.local',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
0 => 'webstack-nginx-1',
),
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '*** sensitive parameters replaced ***',
'dbpassword' => '*** sensitive parameters replaced ***',
'installed' => true,
'maintenance_window_start' => 1,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '*** sensitive parameters replaced ***',
'mail_domain' => '*** sensitive parameters replaced ***',
'mail_smtphost' => '*** sensitive parameters replaced ***',
'mail_smtpport' => '*** sensitive parameters replaced ***',
'mail_smtpauth' => 1,
'default_phone_region' => 'DE',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'password' => '*** sensitive parameters replaced ***!',
'port' => 6379,
),
'mail_smtpname' => '*** sensitive parameters replaced ***',
'mail_smtppassword' => '*** sensitive parameters replaced ***',
'maintenance' => false,
'data-fingerprint' => '*** sensitive parameters replaced ***',
'loglevel' => 2,
'app_install_overwrite' =>
array (
0 => 'unsplash',
),
'trashbin_retention_obligation' => 'auto, 30',
);
The output of your Apache/nginx/system log in /var/log/____
:
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
...
php occ setupchecks
dav:
✓ DAV system address book: No outstanding DAV system address book sync.
system:
⚠ Errors in the log: 6738 errors in the logs since April 2, 2024
ℹ Brute-force Throttle: Your remote address could not be determined.
✓ Cron errors: The last cron job ran without errors.
✓ Cron last run: Last background job execution ran 3 minutes ago.
✓ File locking
✓ Maintenance window start: Maintenance window to execute heavy background jobs is between 1:00 UTC and 7:00 UTC
✓ Memcache: Configured
✓ PHP modules
✓ Architecture: 64-bit
notifications:
✓ Push notifications - Fair use policy
security:
✓ App directories owner: App directories have the correct owner "www-data"
✓ Old user imported certificates
✓ Code integrity: No altered files
ℹ Forwarded for headers: Your remote address could not be determined.
✓ Old server-side-encryption: Disabled
✓ PHP version: You are currently running PHP 8.2.17.
✓ Random generator: Secure
database:
✓ Database missing columns: None
✓ Database missing indices: None
✓ Database missing primary keys: None
✓ Database pending bigint migrations: None
✓ Database version: 11.3.2-MariaDB-1:11.3.2+maria~ubu2204
✓ Database transaction isolation level: Read committed
config:
✓ Default phone region: DE
✓ Email test: Email test was successfully sent
✓ Overwrite cli URL: The "overwrite.cli.url" option in your config.php is set to "http://nextcloud.local" which is a correct URL. Suggested URL is "https://localhost".
✓ Configuration file access rights: Nextcloud configuration file is writable
network:
✓ Internet connectivity
✓ JavaScript modules support
php:
✓ PHP default charset: UTF-8
✓ Freetype: Supported
✓ PHP getenv
✓ PHP memory limit: 512 MB
✗ PHP opcache: The PHP OPcache module is not properly configured. OPcache is not working as it should, opcache_get_status() returns false, please check configuration.
The maximum number of OPcache keys is nearly exceeded. To assure that all scripts can be kept in the cache, it is recommended to apply "opcache.max_accelerated_files" to your PHP configuration with a value higher than "10000".
The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply "opcache.memory_consumption" to your PHP configuration with a value higher than "128".
The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply "opcache.interned_strings_buffer" to your PHP configuration with a value higher than "32"..
✓ PHP "output_buffering" option: Disabled
✓ PHP Imagick module
any help would be highly welcome!
thank you community!