Hi community,
After being a NCP user for several years and solving any issue with info from several forums I would appreciate support on an issue I’m not able to solve myself.
- Installation method:
- NCP image v1.55.3
I changed the datadir to /media/USBdrive/ncdata/data using the webinterface.
However all data is still being synced to the SD card.
System info:
OS | Armbian-unofficial 24.8.2 Bookworm \l . 6.6.45-current-bcm2711 (aarch64) |
---|---|
automount | yes |
USB devices | sda |
datadir | /media/USBdrive/ncdata/data |
data in SD | yes |
data filesystem | ext2/ext3 |
data disk usage | 12G/14G |
rootfs usage | 12G/14G |
swapfile | /var/swap |
dbdir | /media/USBdrive/ncdatabase |
Nextcloud check | ok |
Nextcloud version | 30.0.13.1 |
HTTPD service | up |
PHP service | up |
MariaDB service | up |
Redis service | up |
HPB service | up |
Postfix service | up |
Internet check | ok |
Public IPv4 | xx.xxx.xxx.x |
Public IPv6 | not found |
Port 80 | open |
Port 443 | open |
IP | 192.168.0.59 |
Gateway | 192.168.0.1 |
Interface | end0 |
Nextcloud log:
{"reqId":"hzhCF4RY9vw3Bt9jjhFe","level":3,"time":"2025-08-12T05:09:43+00:00","re moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa ge":"Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","versi on":"30.0.13.1","exception":{"Exception":"RedisException","Message":"Redis serve r /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nex tcloud/lib/private/Memcache/Redis.php","line":60,"function":"get","class":"Redis ","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":132,"funct ion":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class" :"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerCon tainer.php","line":88,"function":"class_exists"},{"file":"/var/www/nextcloud/lib /private/ServerContainer.php","line":170,"function":"getAppContainer","class":"O C\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerC ontainer.php","line":135,"function":"getAppContainerForService","class":"OC\\Ser verContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/ Utility/SimpleContainer.php","line":42,"function":"query","class":"OC\\ServerCon tainer","type":"->"},{"file":"/var/www/nextcloud/lib/public/Server.php","line":3 9,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":" ->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":189 ,"function":"get","class":"OCP\\Server","type":"::"},{"file":"/var/www/nextcloud /lib/private/Console/Application.php","line":95,"function":"loadCommandsFromInfo Xml","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud /console.php","line":81,"function":"loadCommands","class":"OC\\Console\\Applicat ion","type":"->"},{"file":"/var/www/nextcloud/occ","line":33,"args":["/var/www/n extcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/li b/private/Memcache/Redis.php","Line":60,"message":"Redis server /var/run/redis/r edis.sock:0 went away","exception":{},"CustomMessage":"Redis server /var/run/red is/redis.sock:0 went away"}}
Nextcloud config.php:
<?php
$CONFIG = array (
'passwordsalt' => 'MLwdfKidJxyh71MWIVJAkvPFR.....',
'secret' => 'AOnNM7fK4jHw0Lyp3OOT9zGk1Yv345Jkj+fCt5OSlV.....',
'trusted_domains' =>
array (
0 => 'localhost',
7 => 'nextcloudpi',
5 => 'nextcloudpi.local',
8 => 'nextcloudpi.lan',
3 => 'xxx.ddns.net',
14 => 'nextcloudpi',
11 => 'xx.xxx.xxx.x',
1 => '192.168.0.59',
2 => 'xxxx.ddns.net',
20 => '192.168.0.59',
),
'datadirectory' => '/media/USBdrive/ncdata/data',
'dbtype' => 'mysql',
'version' => '30.0.13.1',
'overwrite.cli.url' => 'https://xxx.ddns.net/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'EoPrr6TvgNDOzFPy4/C0ZuGlCGBAJFfysj.............',
'installed' => true,
'instanceid' => 'ocut2g9g78ea',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'aqxBjzGfqjnIP21bRZ8zx76nVjgX8HoRn...........',
),
'tempdirectory' => '/media/USBdrive/ncdata/data/tmp',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'info',
'mail_domain' => '',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/media/USBdrive/ncdata/data/nextcloud.log',
'trusted_proxies' =>
array (
11 => '127.0.0.1',
12 => '::1',
14 => 'xx.xxx.xxx.x',
),
'loglevel' => '2',
'log_type' => 'file',
'mail_sendmailmode' => 'smtp',
'mail_smtphost' => 'mail.xxxx.nl',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => 'xxx.xx',
'mail_smtppassword' => '',
'mail_smtpsecure' => 'ssl',
);