Truenas Cobia postgres migration to Electric Eel

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version _(e.g., 29.
    Nextcloud 30.03
  • Operating system and version (e.g., Ubuntu 24.04):
    Truenas Electric Eel 24.10.0.2
  • Web server and version (e.g, Apache 2.4.25):
    Truenas latest version
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    Using Cloudflare
  • PHP version (e.g, 8.3):
    Truenas latest version
  • Is this the first time you’ve seen this error? (Yes / No):
    trying to migrate database
  • When did this problem seem to first start?
    • replace me
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    Truenas
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    Cloudflare

Summary of the issue you are facing:

Migrating from Truenas Cobia Nextcloud version 28 and have a backup of the database from HeavyScripts. Trying to figure out how import the database into the new Truenas Electric Eel Nextcloud instance. I am sure there is a way to do it but it is clear I am missing something. When trying to connect PGAdmin It says it cannot connect to the server. I have tried using the postgres and the 5432 port. I have also looked at the postgres container and found the Ip address of 172.16.2.3 and also a few different accounts that might have access like ix-nextcloudscuba-postgres-1 from
“Gateway”: “172.16.2.1”,
“IPAddress”: “172.16.2.3”,
“IPPrefixLen”: 24,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“DNSNames”: [
“ix-nextcloudscuba-postgres-1”,
“postgres”,
“288e745ac0f4”
displayed by using the command
sudo docker inspect 288e745ac0f48b87a00810450aab363f5414f51f66a1a984a72a369091f6e641

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

No logs yet.

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE
<?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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'password' => 'passwordchanged',
    'port' => 6379,
  ),
  'overwritehost' => 'my.domain.com',
  'overwriteprotocol' => 'https',
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '192.168.0.0/16',
    2 => '172.16.0.0/12',
    3 => '10.0.0.0/8',
    4 => '192.168.1.0/16',
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => 'YbVSVsndsfD7zNLmIbrB11jDuaTvlo',
  'secret' => 'lynzl02Ril9/VSkhCj+M+c1RxxnUe3ECvyrQZVARoYC7hmwU',
 'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '127.0.0.1',
    2 => 'localhost',
    3 => 'nextcloud',
    4 => 'my.domain.comt:30028',
    5 => 'my.domain.com',
    6 => '192.168.1.161:30028',
    7 => '192.168.1.161',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '30.0.3.2',
  'overwrite.cli.url' => 'https://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'H0q7jP4zt9WlYwfzuRyvWVdl07qmh3',
  'installed' => true,
  'instanceid' => 'oc37yl99cyhp',
  'loglevel' => 3,
);


#### Apps

The output of `occ app:list` (if possible).

### Tips for increasing the likelihood of a response

* Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
* If screenshots are useful, feel free to include them. 
  - If possible, also include key error output in text form so it can be searched for.
* Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.