Running version 25.6.1 and I am unable to use the File function. When I check the logs I see the error message:
Oct 12 08:29:34 mail service-discoverd[2101]: 2025-10-12T08:29:34.673-0400 [WARN] agent: Check is now critical: check=service:carbonio-storages-sidecar-proxy:1 Oct 12 08:29:34 mail service-discoverd[2101]: 2025-10-12T08:29:34.673-0400 [WARN] agent: Check TCP connection failed: check=service:carbonio-storages-sidecar-proxy:1 error="dial tcp 127.78.0.3:21013: connect: connection refused" Oct 12 08:29:34 mail service-discoverd[2101]: 2025-10-12T08:29:34.197-0400 [WARN] agent: Check is now critical: check=service:carbonio-mta-sidecar-proxy:1 Oct 12 08:29:34 mail service-discoverd[2101]: 2025-10-12T08:29:34.196-0400 [WARN] agent: Check TCP connection failed: check=service:carbonio-mta-sidecar-proxy:1 error="dial tcp 127.0.0.1:21010: connect: connection refused"
On running: root@mail:~# systemctl status carbonio-files* I see:
● carbonio-files.service - Carbonio Files daemon
Loaded: loaded (/lib/systemd/system/carbonio-files.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/carbonio-files.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Sun 2025-10-12 08:30:43 EDT; 9s ago
Process: 543374 ExecStart=/usr/bin/carbonio-files (code=exited, status=1/FAILURE)
Main PID: 543374 (code=exited, status=1/FAILURE)
CPU: 2.092s
Digging down further I run: root@mail:~# systemctl list-units carbonio*
UNIT LOAD ACTIVE SUB DESCRIPTION > carbonio-docs-connector.service loaded active running Carbonio doc> carbonio-docs-editor.service loaded active running Carbonio Doc> carbonio-files.service loaded activating auto-restart Carbonio Fil> carbonio-message-broker.service loaded active running Carbonio mes> carbonio-preview.service loaded active running Carbonio Pre> carbonio-prometheus-consul-exporter.service loaded active running Carbonio Pro> carbonio-prometheus-mysqld-exporter.service loaded active running Carbonio Pro> carbonio-prometheus-nginx-exporter.service loaded active running Carbonio Pro> carbonio-prometheus-node-exporter.service loaded active running Carbonio Pro> carbonio-prometheus-openldap-exporter.service loaded active running Carbonio Pro> carbonio-storages.service loaded active running Carbonio Sto> carbonio-user-management.service loaded active running Carbonio Use> carbonio.service loaded active exited LSB: Carboni>
Postgresql seems ok:
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Sat 2025-10-11 11:53:30 EDT; 20h ago
Process: 1413 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1413 (code=exited, status=0/SUCCESS)
CPU: 1ms
Oct 11 11:53:30 mail systemd[1]: Starting PostgreSQL RDBMS...
Oct 11 11:53:30 mail systemd[1]: Finished PostgreSQL RDBMS.
Although, if I try to update password on the carbonio-files.service: PGPASSWORD=$DB_ADM_PWD carbonio-files-db-bootstrap carbonio_adm 127.0.0.1:
Database: 127.0.0.1:5432 user carbonio_adm
Check postgres connection: psql: FATAL ERROR (exit code 2).
(see EXIT STATUS section in psql man documentation)
psql: error: connection to server at "127.0.0.1", port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
It fails. SO my ultimate question is: How do I fix this problem? I have scrolled though many posts but I can't seem to fix this myself. Any ideas? I want to solve this issue before I try any further version updates. So any advice will be gratefully received.
One more detail that might help: when I run: lsof -i -P -n | grep LISTEN:
postgres 1142 postgres 6u IPv4 21934 0t0 TCP 127.0.0.1:5435 (LISTEN)
I notice that the postgres port is not matching the one returned by the PGPASSWORD=$DB_ADM_PWD carbonio-files-db-bootstrap carbonio_adm 127.0.0.1 command in the previous post. Could that be the error?
Wow! The lack of support on this forum is pretty sad. Nothing? Crickets??
Could you please check what port your postgres is configured to listen:
grep ^port /etc/postgresql/16/main/postgresql.conf
and
sudo -u postgres psql -c "SHOW port;"
Postgres should listen to the default 5432 port.
@sharif Thanks for replying Sharif. I am using Postgresql 17 and the response I am getting is:
grep ^port /etc/postgresql/17/main/postgresql.conf port = 5435
sudo -u postgres psql -c "SHOW port;" port ------ 5435 (1 row)
Hi,
Ah. That is the cause of the issue.
I would recommend you not to use Postgresql 17 as only Postgresql 16 is tested and supported by Zextras. Also internal components are going to communicate with Postgresql on port 5432.
You can change the port from 5435 to 5432 and restart Postgresql service to check if that works.
But I would recommend you stick to the officially supported version of Postgresql.
Ahh. I guess that when I upgraded Carbonio the Ubuntu apt also upgraded Postgresql at the same time! Two questions: How do I revert back to 16 and should I try changing the 17 version to port 5432 first - will Carbonio still work correctly?
Everything works when I change the port in pgres 17 except the files service:
● carbonio-files.service - Carbonio Files daemon
Loaded: loaded (/lib/systemd/system/carbonio-files.service; enabled; vendor preset: enable>
Drop-In: /etc/systemd/system/carbonio-files.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2025-10-16 07:31:40 EDT; 1>
Process: 14980 ExecStart=/usr/bin/carbonio-files (code=exited, status=1/FAILURE)
Main PID: 14980 (code=exited, status=1/FAILURE)
CPU: 2.384s
Unfortunately, PostgreSQL does not support downgrading from a higher major version to a lower one. We cannot simply downgrade 17 to 16 .Doing so would risk data corruption and system instability.
Also, just out of concern; changing port may work for now but it would always be uncertain during each upgrade whether everything will be fine or not.
It would be better to have a new server and then migrate the data.
Well that will be my last resort. I tried to reset the db-files password with no luck:
root@mail:~# consul kv get -recurse -token-file="/etc/carbonio/files-db/service-discover/token" carbonio-files/db-name:carbonio-files-db carbonio-files/db-password:a0c006dxxxxxx51a6b2724367827535a carbonio-files/db-username:carbonio-files-db carbonio-files/page-token-secret-key:SefbU6w1V7sgfzGbl4zhaOSrdag8iU/HyT5G/+sUOww= root@mail:~# su - postgres postgres@mail:~$ psql psql (17.5 (Ubuntu 17.5-1.pgdg22.04+1)) Type "help" for help. postgres=# ALTER ROLE "carbonio-files-db" WITH PASSWORD 'a0c006dxxxxxx51a6b2724367827535a'; ERROR: role "carbonio-files-db" does not exist
Any thoughts?
@sharif Thanks for sticking with me through this, I appreciate it. Here is the result:
sudo -u postgres psql -c "\l"
List of databases
Name | Owner | Encoding | Locale Provider | Collate | Ctype | Locale | ICU Rules | Access privileges
-----------+----------+----------+-----------------+-------------+-------------+--------+-----------+-----------------------
postgres | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
template0 | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =c/postgres +
| | | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =c/postgres +
| | | | | | | | postgres=CTc/postgres
(3 rows)

