Login Problems - Cannot Login, no error message

Nextcloud version: not sure, file was ‘latest.zip’, but downloaded and installed 2 days ago
Ubuntu 20.04
Apache 2.4.41
PHP 7.4.3

I am unable to log in. It doesn’t return any error it just refreshes the log in dialog boxes back to empty. Everything was functioning fine yesterday and the day before. Yesterday my security rating for nextcloud scan was A+. Mozilla Observatory security scan rating A+. No changes have been made since yesterday. Today’s nextcloud security scan comes back with no score saying " Running ownCloud 24.0.0.12 NOT on latest patch level"

Rebooted server successfully

Ran the following with results

sudo apt dist-upgrade

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
libc-bin libc6 locales openssh-client openssh-server openssh-sftp-server
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,324 kB of archives.
After this operation, 7,168 B of additional disk space will be used.
Do you want to continue? [Y/n] y

#had to delete portion because it contained multiple URLS, wouldn’t let me post.

Fetched 8,324 kB in 0s (39.2 MB/s)
Preconfiguring packages …
(Reading database … 112361 files and directories currently installed.)
Preparing to unpack …/libc6_2.31-0ubuntu9.9_amd64.deb …
Unpacking libc6:amd64 (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) …
Setting up libc6:amd64 (2.31-0ubuntu9.9) …
(Reading database … 112361 files and directories currently installed.)
Preparing to unpack …/locales_2.31-0ubuntu9.9_all.deb …
Unpacking locales (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) …
Preparing to unpack …/libc-bin_2.31-0ubuntu9.9_amd64.deb …
Unpacking libc-bin (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) …
Setting up libc-bin (2.31-0ubuntu9.9) …
(Reading database … 112361 files and directories currently installed.)
Preparing to unpack …/openssh-sftp-server_1%3a8.2p1-4ubuntu0.5_amd64.deb …
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.4) …
Preparing to unpack …/openssh-server_1%3a8.2p1-4ubuntu0.5_amd64.deb …
Unpacking openssh-server (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.4) …
Preparing to unpack …/openssh-client_1%3a8.2p1-4ubuntu0.5_amd64.deb …
Unpacking openssh-client (1:8.2p1-4ubuntu0.5) over (1:8.2p1-4ubuntu0.4) …
Setting up openssh-client (1:8.2p1-4ubuntu0.5) …
Setting up locales (2.31-0ubuntu9.9) …
Generating locales (this might take a while)…
en_US.UTF-8… done
Generation complete.
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.5) …
Setting up openssh-server (1:8.2p1-4ubuntu0.5) …
rescue-ssh.target is a disabled or a static unit, not starting it.
Processing triggers for systemd (245.4-4ubuntu3.17) …
Processing triggers for man-db (2.9.1-1) …
Processing triggers for ufw (0.36-6ubuntu1) …

sudo apt-get update

#had to delete portion because it contained multiple URLS, wouldn’t let me post.

Fetched 3,045 kB in 1s (2,736 kB/s)
Reading package lists… Done

sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

snap refresh --list
All snaps up to date.

sudo snap refresh
All snaps up to date.

sudo systemctl restart apache2

All successful, but does not fix problem

So nobody has any clue?

I don’t think that’s possible without logs. What does your nextcloud.log say? You find the nextcloud.log in your datadirectory (see config.php to find your datadirectory).

Maybe the browser is the source of the problem.

Have you purged your browser cache and cookies? Sometimes I experience this behavior, but clearing cookie data solves it for me.

I have. Also tried on different browsers and computers

The last chunk of the log

{“reqId”:“S6mea1R7FjeVl1tC9pDY”,“level”:2,“time”:“2022-05-18T17:32:00+00:00”,“remoteAddr”:“185.254.196.223”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/.env",“message”:“Trusted domain error. “185.254.196.223” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“wPxtFR4EzBasbkUSV5Dw”,“level”:2,“time”:“2022-05-18T17:32:00+00:00”,“remoteAddr”:“185.254.196.223”,“user”:"–",“app”:“core”,“method”:“POST”,“url”:"/",“message”:“Trusted domain error. “185.254.196.223” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“5WyfDNVgBxAja3uNaUZN”,“level”:2,“time”:“2022-05-18T17:32:46+00:00”,“remoteAddr”:“128.199.166.77”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/wp-login.php",“message”:“Trusted domain error. “128.199.166.77” tried to access using “hackercms.jimgroom.com” as host.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“24.0.0.12”}
{“reqId”:“c8ihzVkAFAPEVTxZxsIH”,“level”:2,“time”:“2022-05-18T17:33:47+00:00”,“remoteAddr”:“193.106.191.48”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/Autodiscover/Autodiscover.xml",“message”:“Trusted domain error. “193.106.191.48” tried to access using “45.79.154.172:443” as host.”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“GOUFvTVE6VcVFY7achxI”,“level”:2,“time”:“2022-05-18T17:49:27+00:00”,“remoteAddr”:“80.94.93.250”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/admin/config.php",“message”:“Trusted domain error. “80.94.93.250” tried to access using “45.79.154.172” as host.”,“userAgent”:“python-requests/2.27.1”,“version”:“24.0.0.12”}
{“reqId”:“gz3u3qF5PeP1EzSzTfC8”,“level”:2,“time”:“2022-05-18T18:04:48+00:00”,“remoteAddr”:“179.60.149.13”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/owa/auth/logon.aspx?replaceCurrent=1&url=https://45.79.154.172/ecp",“message”:“Trusted domain error. “179.60.149.13” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“DLaaz7bmAmEzdToREfkW”,“level”:2,“time”:“2022-05-18T18:29:49+00:00”,“remoteAddr”:“193.106.191.48”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/_ignition/execute-solution",“message”:“Trusted domain error. “193.106.191.48” tried to access using “45.79.154.172:443” as host.”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“113qoITU5jy9c7GQGLNt”,“level”:2,“time”:“2022-05-18T19:08:31+00:00”,“remoteAddr”:“193.106.191.48”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/",“message”:“Trusted domain error. “193.106.191.48” tried to access using “45.79.154.172:443” as host.”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“wcUPyF1Mti1NCHBK0mVG”,“level”:2,“time”:“2022-05-18T19:27:19+00:00”,“remoteAddr”:“194.165.17.12”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/cgi-bin/welcome",“message”:“Trusted domain error. “194.165.17.12” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2919.83 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“uQSZeiIjB8rVQ6qnbONh”,“level”:2,“time”:“2022-05-18T19:30:38+00:00”,“remoteAddr”:“78.128.113.170”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/vpn/index.html",“message”:“Trusted domain error. “78.128.113.170” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (Windows NT 4.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36”,“version”:“24.0.0.12”}
{“reqId”:“Xqu7IQik4seN2JlEAsYB”,“level”:2,“time”:“2022-05-18T19:33:55+00:00”,“remoteAddr”:“194.165.17.12”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/spog/welcome",“message”:“Trusted domain error. “194.165.17.12” tried to access using “45.79.154.172” as host.”,“userAgent”:“Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/44.0.2403.155 Safari/537.36”,“version”:“24.0.0.12”}

I’m going to try adding my servers IP address to trusted domains

When I try to access my page on the browser via IP address instead of domain name my connection is no longer secure. My domain name points to the exact same IP in the A record. When I connect via domain name, it is secure

I’m about to just delete this server and start over