Hi all,
so i had nextcloud up and running, it's clean install, as well as a fresh install of omv7.
i setup up the schedule task (backup,update,prune) in the built in compose.
noticed today i can no longer get to nextclolud using my url https://nextcloud.myurl.com but i can still access nextcloud locally with the local ip.
it started with a 400 page error (The plain HTTP request was sent to HTTPS portnginx).
i checked the config.php and it seems fine.
<?php
$CONFIG = array (
'datadirectory' => '/data',
'instanceid' => 'octzhgjfjkhg',
'passwordsalt' => 'GWsA7GWHcE6B4kfghjkhgjvffM',
'secret' => 'Kk91BrfjhlgljhgvvklhyjugC3XM2zVJzB0d1E8MkF475',
'trusted_domains' =>
array (
0 => 'nextcloud.my.url',
1 => '192.168.1.100:1443',
),
'dbtype' => 'mysql',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://nextcloud.my.url',
'dbname' => 'maria_db_nc',
'dbhost' => 'mariadb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'admin-db',
'dbpassword' => 'pass',
'installed' => true,
'maintenance_window_start' => 1,
'trusted_proxies' =>
array (
0 => gethostbyname('swag'),
),
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\APCu',
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'me',
'mail_domain' => 'domain.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'my-email',
'mail_smtppassword' => 'pass',
'maintenance' => false,
);
Display More
I have these errors in nextcloud logs.
Nextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesNextcloud trustedProxies has malformed entriesPHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /app/www/public/lib/public/Server.php:39Stack trace:#0 /app/www/public/cron.php(234): OCP\Server::get()#1 {main} thrown in /app/www/public/lib/public/Server.php on line 39PHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /app/www/public/lib/public/Server.php:39Stack trace:#0 /app/www/public/cron.php(234): OCP\Server::get()#1 {main} thrown in /app/www/public/lib/public/Server.php on line 39PHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /app/www/public/lib/public/Server.php:39Stack trace:#0 /app/www/public/cron.php(234): OCP\Server::get()#1 {main} thrown in /app/www/public/lib/public/Server.php on line 39[migrations] started[migrations] 01-nginx-site-confs-default: skipped[migrations] 02-default-location: skipped[migrations] doneusermod: no changes
and also some erros in mariadb
An upgrade is required on your databases. ## ## Stop any services that are accessing databases ## in this container, and then run the command ## ## mariadb-upgrade -u root -p<PASSWORD>
just incase here is my yml for nextcloud
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
network_mode: swag_default
container_name: nextcloud
environment:
- PUID=1000
- PGID=100
- TZ=America/home
volumes:
- /srv/dev-disk-by-uuid-f59caf58-e5d6-4f09-8f5d-8ba1a07586e4/appdata/nextcloud_aio/config:/config
- /srv/dev-disk-by-uuid-450d3710-6549-4966-b3df-66699ac6cd94/nextcloud:/data
ports:
- 1443:443
restart: unless-stopped
mariadb:
image: lscr.io/linuxserver/mariadb:latest
network_mode: swag_default
container_name: mariadb
environment:
- PUID=1000
- PGID=100
- TZ=America/Toronto
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_USER=admin # This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here).#optional
- MYSQL_ROOT_PASSWORD=pass # Set this to root password for installation (minimum 4 characters).
- MYSQL_PASSWORD=pass # Set this to the password you want to use for you MYSQL_USER (minimum 4 characters).#optional
- MYSQL_DATABASE=maria_db_nc # Specify the name of a database to be created on image startup.#optional
volumes:
- /srv/dev-disk-by-uuid-f59caf58-e5d6-4f09-8f5d-8ba1a07586e4/appdata/nextcloud_maria-db/config:/config
ports:
- 3306:3306
restart: unless-stopped
Display More
any help is much appreciated.