Page 1 of 1

[Help] System fails with Postgres and Redis Errors

Posted: 15 Jul 2025, 23:01
by pongo
F4-423 - fails multiple times after upgrading to TOS_X642.0_6.0.750_00004_2507091640 with Redis and Postgress Errors ... Sees to be some go and Gui Related how to fix this without reinit and readd all my stuff or create a new admin user to fix corrupted config ... THX

Re: [Help] System fails with Postgres and Redis Errors

Posted: 16 Jul 2025, 08:02
by CursaYang
Run the following two commands to check the status of nginx and postgresql:

Code: Select all

systemctl status nginx.service

Code: Select all

systemctl status [email protected]

Run the following two commands to restart nginx and postgresql:

Code: Select all

systemctl restart nginx.service

Code: Select all

systemctl restart [email protected]

Re: [Help] System fails with Postgres and Redis Errors

Posted: 16 Jul 2025, 09:21
by MikeZhang
pongo wrote: 15 Jul 2025, 23:01
Please schedule remote session through email or online chat, our engineer will check for you remotely.

Re: [Help] System fails with Postgres and Redis Errors

Posted: 17 Jul 2025, 15:27
by pongo
Hello, thank you. For now it seems to be stable. Give TOS a last shot. Thinking to use OMV or ACR on next failure.

Re: [Help] System fails with Postgres and Redis Errors

Posted: 26 Jul 2025, 19:52
by pongo
Error back again after reboot Jul 26 13:50:41 NFTNAS webdav[98436]: [DEBUG /bin/bash -c tersql -sql "SELECT * FROM acl_host where service = 'webdav'"]
Jul 26 13:50:41 NFTNAS webdav[98436]: 2025/07/26 13:50:41 2025/07/26 13:50:41 failed to connect to `user=terramaster database=tos`: 127.0.0.1:5032 (127.0.0.1): dial error: dial tcp 127.0.0.1:5032: connect: connection refused
Jul 26 13:50:41 NFTNAS webdav[98436]: : exit status 1
Jul 26 13:50:41 NFTNAS systemd[1]: webdav.service: Main process exited, code=exited, status=1/FAILURE
Jul 26 13:50:41 NFTNAS systemd[1]: tnas-storage-device-tool.service: Scheduled restart job, restart counter is at 139.
Jul 26 13:50:41 NFTNAS systemd[1]: Stopped TNAS Storage Device Tool.
Jul 26 13:50:41 NFTNAS systemd[1]: tnas-storage-device-tool.service: Consumed 1.219s CPU time.
Jul 26 13:50:41 NFTNAS systemd[1]: Starting TNAS Storage Device Tool...
Jul 26 13:50:42 NFTNAS msgcenter[98416]: 2025/07/26 13:50:42 dial tcp 127.0.0.1:6379: connect: connection refused
Jul 26 13:50:42 NFTNAS systemd[1]: msg.service: Main process exited, code=exited, status=1/FAILURE
Jul 26 13:50:42 NFTNAS systemd[1]: msg.service: Failed with result 'exit-code'.
Jul 26 13:50:42 NFTNAS systemd[1]: webdav.service: Failed with result 'exit-code'.
Jul 26 13:50:42 NFTNAS systemd[1]: webdav.service: Consumed 1.035s CPU time.

Jul 26 13:50:43 NFTNAS twm_authentication[98440]: 2025/07/26 13:50:43 ERROR redis err: !BADKEY="dial tcp 127.0.0.1:6379: connect: connection refused"
Jul 26 13:50:43 NFTNAS twm_authentication[98440]:
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: 2025/07/26 13:50:43 /home/test/go/pkg/mod/gitlab.local/golibrary/[email protected]/sqlitedb/sqlitedb.go:40
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: [error] failed to initialize database, got error failed to connect to `host=127.0.0.1 user=terramaster database=tos`: dial error (dial tcp 127.0.0.1:5032: connect: connection refused)
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: 2025/07/26 13:50:43 ERROR database err: !BADKEY="New: failed to connect to `host=127.0.0.1 user=terramaster database=tos`: dial error (dial tcp 127.0.0.1:5032: connect: connection refused)\n1. New\n 1). gitlab.local/golibrary/middleware/sqlitedb.New\n \t/home/test/go/pkg/mod/gitlab.local/golibrary/[email protected]/sqlitedb/sqlitedb.go:58\n 2). gitlab.local/golibrary/middleware.New\n \t/home/test/go/pkg/mod/gitlab.local/golibrary/[email protected]/middleware.go:31\n 3). app_proxy_capture/http.Router\n \t/buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/http/http.go:33\n 4). app_proxy_capture/http.NewObj\n \t/buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/http/http.go:24\n 5). main.main\n \t/buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/appProxyCapture.go:6\n2. failed to connect to `host=127.0.0.1 user=terramaster database=tos`: dial error (dial tcp 127.0.0.1:5032: connect: connection refused)\n"
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc002d2]
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: goroutine 1 [running]:
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: gitlab.local/golibrary/middleware/redisdb.(*RedisDb).DbGet(...)
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: /home/test/go/pkg/mod/gitlab.local/golibrary/[email protected]/redisdb/redis_model.go:9
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: gitlab.local/golibrary/middleware.New()
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: /home/test/go/pkg/mod/gitlab.local/golibrary/[email protected]/middleware.go:37 +0x112
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: app_proxy_capture/http.Router(0xc0000e4680)
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: /buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/http/http.go:33 +0x71
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: app_proxy_capture/http.NewObj()
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: /buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/http/http.go:24 +0x7f
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: main.main()
Jul 26 13:50:43 NFTNAS twm_authentication[98440]: /buildAgent/work/340e6653b5ba6ded/cmd/app_proxy_capture/appProxyCapture.go:6 +0xf
Jul 26 13:50:43 NFTNAS systemd[1]: twm_authentication.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 26 13:50:43 NFTNAS systemd[1]: twm_authentication.service: Failed with result 'exit-code'.
Jul 26 13:50:43 NFTNAS TOSDaemon[98413]:
Jul 26 13:50:43 NFTNAS TOSDaemon[98413]: 2025/07/26 13:50:43 /home/test/go/pkg/mod/gitlab.local/!d!o-module/[email protected]/src/core/sqlitedb/sqlitedb.go:40
Jul 26 13:50:43 NFTNAS TOSDaemon[98413]: [error] failed to initialize database, got error failed to connect to `user=terramaster database=tos`: 127.0.0.1:5032 (127.0.0.1): dial error: dial tcp 127.0.0.1:5032: connect: connection refused
Jul 26 13:50:43 NFTNAS TOSDaemon[98413]: 2025/07/26 13:50:43 pkg.go:57: New: failed to connect to `user=terramaster database=tos`: 127.0.0.1:5032 (127.0.0.1): dial error: dial tcp 127.0.0.1:5032: connect: connection refused
Jul 26 13:50:43 NFTNAS systemd[1]: TOSDaemon.service: Main process exited, code=exited, status=1/FAILURE
Jul 26 13:50:43 NFTNAS systemd[1]: TOSDaemon.service: Failed with result 'exit-code'.
Jul 26 13:50:43 NFTNAS systemd[1]: TOSDaemon.service: Consumed 3.292s CPU time.
^C

Re: [Help] System fails with Postgres and Redis Errors

Posted: 26 Jul 2025, 22:07
by RyanYang
pongo wrote: 26 Jul 2025, 19:52
Would it be convenient to schedule a remote assistance session through our official live chat? We can arrange for an engineer to diagnose the specific issue for you.

Re: [Help] System fails with Postgres and Redis Errors

Posted: 28 Jul 2025, 12:40
by pongo
Got Kernel Panik thereafter - everything fu.. up again. From now on I am done with TOS. Truenas it is hard to swicht but need a stable OS. Thx

Re: [Help] System fails with Postgres and Redis Errors

Posted: 28 Jul 2025, 18:52
by TMzethar
We recently observed another user raising a similar issue.
It was ultimately determined that the permissions of the library files relied upon by the service had been modified for unknown reasons (they should have been 755, but were changed to 700).
Maybe you can check it.

Code: Select all

ll /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2

Re: [Help] System fails with Postgres and Redis Errors

Posted: 28 Jul 2025, 22:58
by TMzethar
If you still have the TOS environment, please provide a system report to our Technical Team email for checking.
(TOS Desktop > Technical Support > Report Issues)
Or would you prefer our engineer to perform a remote check for you?