I had Nextcloudpi up and running for a year straight with no issues thanks to the tremendous development effort here. Many thanks and kudos!
Unfortunately, I had to move my server to a new house, and it stopped working.
I updated the dynamic DNS and added the new IP to the trusted domains, but when I try to access the page, I get an error message at the login screen (using firefox, see below). It appears to have something to do with 3rd party libraries, but I have not been able to figure out a fix. Any help would be appreciated.
Interestingly, the desktop and android apps still work just fine!
Error at login screen:
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
Technical details
Remote Address: xx.xxx.xx.xx
Request ID: XydCm--KQuKrJ2iN9rWpKgAATRY
Output of sudo cat /media/USBdrive/nextcloud/data/nextcloud.log | tail
{"reqId":"XydCm--KQuKrJ2iN9rWpKgAATRY","level":3,"time":"2020-08-02T22:47:56+00:00","remoteAddr":"xx.xxx.xx.xx","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"include(/var/www/nextcloud/3rdparty/composer/../punic/punic/code/Exception/DataFileNotFound.php): failed to open stream: No such file or directory at /var/www/nextcloud/lib/composer/composer/ClassLoader.php#444","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","version":"18.0.7.1"}
{"reqId":"XydCm--KQuKrJ2iN9rWpKgAATRY","level":3,"time":"2020-08-02T22:47:56+00:00","remoteAddr":"xx.xxx.xx.xx","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"include(): Failed opening '/var/www/nextcloud/3rdparty/composer/../punic/punic/code/Exception/DataFileNotFound.php' for inclusion (include_path='/var/www/nextcloud/apps/news/vendor/pear/net_url2:/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps') at /var/www/nextcloud/lib/composer/composer/ClassLoader.php#444","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","version":"18.0.7.1"}
{"reqId":"XydCm--KQuKrJ2iN9rWpKgAATRY","level":3,"time":"2020-08-02T22:47:56+00:00","remoteAddr":"xx.xxx.xx.xx","user":"--","app":"index","method":"GET","url":"/index.php/login","message":{"Exception":"Error","Message":"Class 'Punic\\Exception\\DataFileNotFound' not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/punic/punic/code/Data.php","line":465,"function":"getGeneric","class":"Punic\\Data","type":"::","args":["parentLocales"]},{"file":"/var/www/nextcloud/3rdparty/punic/punic/code/Data.php","line":529,"function":"explodeLocale","class":"Punic\\Data","type":"::","args":["en"]},{"file":"/var/www/nextcloud/3rdparty/punic/punic/code/Data.php","line":503,"function":"getLocaleAlternatives","class":"Punic\\Data","type":"::","args":["en"]},{"file":"/var/www/nextcloud/3rdparty/punic/punic/code/Data.php","line":142,"function":"getLocaleFolder","class":"Punic\\Data","type":"::","args":["en"]},{"file":"/var/www/nextcloud/3rdparty/punic/punic/code/Calendar.php","line":743,"function":"get","class":"Punic\\Data","type":"::","args":["calendar","en"]},{"file":"/var/www/nextcloud/lib/private/L10N/L10N.php","line":175,"function":"getDateFormat","class":"Punic\\Calendar","type":"::","args":["short","en"]},{"file":"/var/www/nextcloud/lib/private/L10N/LazyL10N.php","line":61,"function":"l","class":"OC\\L10N\\L10N","type":"->","args":["jsdate",null,[]]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":186,"function":"l","class":"OC\\L10N\\LazyL10N","type":"->","args":["jsdate",null]},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":190,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/legacy/template.php","line":184,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest","core"]},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":167,"function":"fetchPage","class":"OC_Template","type":"->","args":[{"alt_login":[]}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":123,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"showLoginForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","showLoginForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.showLoginForm"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"core.login.showLoginForm"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"core.login.showLoginForm"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/punic/punic/code/Data.php","Line":194,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","version":"18.0.7.1"}
And the general output of sudo cat /var/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'passwordsalt' => 'xxxxx',
'secret' => 'xxxxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.104',
4 => 'mydomain.name.com',
5 => 'nextcloudpi.local',
7 => 'nextcloudpi',
8 => 'nextcloudpi.lan',
11 => 'xx.xxx.xx.xx old_IP',
20 => 'xx.xxx.xx.xx new_IP',
12 => 'mydomain.name.com',
),
'datadirectory' => '/media/USBdrive/nextcloud/data',
'overwrite.cli.url' => 'https://mydomain.name.com/',
'dbtype' => 'mysql',
'version' => '18.0.7.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxxx',
'dbpassword' => 'xxxxx',
'installed' => true,
'instanceid' => 'xxxxx',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'xxxxx',
),
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'xxxxx',
'mail_domain' => 'xxxxx.com',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/media/USBdrive/nextcloud/data/nextcloud.log',
'loglevel' => '2',
'log_type' => 'file',
'theme' => '',
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.xxxxx.com',
'mail_smtpport' => 'xxx',
'mail_smtpname' => 'xxxxx',
'mail_smtppassword' => 'xxxxx',
'jpeg_quality' => '60',
'data-fingerprint' => 'xxxxx',
);