Can't Login, Something went wrong: the server returned an invalid error

1. What is the problem? Be very detailed.
I'm unable to login to ODK Central admin getting error "Something went wrong: the server returned an invalid error."

3. What you have you tried to fix the problem?

I tried to restart docker with systemctl status docker-compose@bdrp but it is stuck, log is:

    root@odk:/bdrp# systemctl status docker-compose@bdrp
● docker-compose@bdrp.service - bdrp via docker-compose
   Loaded: loaded (/etc/systemd/system/docker-compose@.service; indirect; vendor preset: enabled)
   Active: active (running) since Mon 2020-06-15 22:31:31 PDT; 5min ago
  Process: 26654 ExecStop=/usr/local/bin/docker-compose stop -v (code=exited, status=1/FAILURE)
 Main PID: 26727 (docker-compose)
    Tasks: 4 (limit: 4681)
   CGroup: /system.slice/system-docker\x2dcompose.slice/docker-compose@bdrp.service
           ├─26727 /usr/local/bin/docker-compose up
           └─26728 /usr/local/bin/docker-compose up

Jun 15 22:31:33 odk.nextgen.host docker-compose[26727]: service-bdrp    | wait-for-it.sh: waiting 15 seconds for 172.17.0.1:5432
Jun 15 22:31:48 odk.nextgen.host docker-compose[26727]: service-bdrp    | wait-for-it.sh: timeout occurred after waiting 15 seconds for 172.17.0.1:5432
Jun 15 22:31:48 odk.nextgen.host docker-compose[26727]: service-bdrp    | running migrations..
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    | Unhandled rejection Error: connect ECONNREFUSED 172.17.0.1:5432
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    | starting cron..
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    | starting server.
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    | unable to connect to ipc-file `naught.ipc`
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    |
Jun 15 22:31:49 odk.nextgen.host docker-compose[26727]: service-bdrp    | removing the ipc-file and attempting to continue

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

Any help is appreciated.

Can you please provide some context? For example -- What instructions are you following? Where are you running Central? Has it worked before? Are you using all configuration files unchanged?

I'm using it on Docker, it was working find till last week, havent changed any thing.

upon searching i found some hint it could be nginx, but i cant find nginx service at all.

Can you please answer all of my questions above? In particular, have you made any changes at all to configuration files? Why were you restarting the system (e.g. did something go wrong)?

Actually i have made no changes at all, i did however restarted the machine now, but still it is showing the same error. I restarted after this issue appears.

I have made no changes to configuration etc. Where should i start to troubleshoot?

Many thanks LN

I have solved it, actually docker network bridge is somehow detached, i attached and restarted which solved the issue. Here is a guide on docker network https://docs.docker.com/network/network-tutorial-standalone/

But following one error remains its not effecting ODK central i guess,

`
root@odk:/bdrp# systemctl status docker-compose@bdrp
● docker-compose@bdrp.service - bdrp via docker-compose
Loaded: loaded (/etc/systemd/system/docker-compose@.service; indirect; vendor preset: enabled)
Active: active (running) since Fri 2020-06-19 06:21:31 PDT; 4h 49min ago
Main PID: 1014 (docker-compose)
Tasks: 4 (limit: 4681)
CGroup: /system.slice/system-docker\x2dcompose.slice/docker-compose@bdrp.service
├─1014 /usr/local/bin/docker-compose up
└─1049 /usr/local/bin/docker-compose up

Jun 19 06:22:30 odk.nextgen.host docker-compose[1014]: Starting service-bdrp ...
Jun 19 06:22:31 odk.nextgen.host docker-compose[1014]: [69B blob data]
Jun 19 06:22:31 odk.nextgen.host docker-compose[1014]: service-bdrp | wait-for-it.sh: waiting 15 seconds for 172.17.0.1:5432
Jun 19 06:22:31 odk.nextgen.host docker-compose[1014]: service-bdrp | wait-for-it.sh: 172.17.0.1:5432 is available after 0 seconds
Jun 19 06:22:31 odk.nextgen.host docker-compose[1014]: service-bdrp | running migrations..
Jun 19 06:22:32 odk.nextgen.host docker-compose[1014]: service-bdrp | starting cron..
Jun 19 06:22:32 odk.nextgen.host docker-compose[1014]: service-bdrp | starting server.
Jun 19 06:22:32 odk.nextgen.host docker-compose[1014]: service-bdrp | unable to connect to ipc-file naught.ipc
Jun 19 06:22:32 odk.nextgen.host docker-compose[1014]: service-bdrp |
Jun 19 06:22:32 odk.nextgen.host docker-compose[1014]: service-bdrp | removing the ipc-file and attempting to continue`

If anyone can guide on what is this file naught.ipc