Snap apache issue? Cannot reach on browser (The connection has timed out)

My nextcloud snap (latest - 19.0.0) is running on Ubuntu (20.04 LTS). Everything was working fine and without any changes, I could not reach the nextcloud anymore on my server.
Here is the output of nextcloud logs:

sudo snap logs nextcloud

2020-07-03T08:57:28Z nextcloud.apache[4617]: System config value redis => port set to integer 0
2020-07-03T08:57:29Z nextcloud.apache[4681]: System config value memcache.locking set to string \OC\Memcache\Redis
2020-07-03T08:57:29Z nextcloud.apache[4740]: System config value memcache.local set to string \OC\Memcache\Redis
2020-07-03T08:57:29Z nextcloud.apache[4799]: No such app enabled: updatenotification
2020-07-03T08:57:30Z nextcloud.apache[4465]: Making sure nextcloud is fully upgraded...
2020-07-03T08:57:30Z nextcloud.apache[4918]: Nextcloud is already latest version
2020-07-03T08:57:30Z nextcloud.apache[4375]: All set! Running httpd...
2020-07-03T08:57:30Z nextcloud.apache[4932]: Certificates have been activated: using HTTPS only
2020-07-03T08:57:30Z nextcloud.apache[4932]: Certificates look to be in order: enabling HSTS
2020-07-03T08:57:30Z nextcloud.apache[4972]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

Also

sudo tail -n 30 /var/snap/nextcloud/current/apache/logs/error_log

Gives the ourput below:

[Fri Jul 03 12:07:45.277419 2020] [unixd:alert] [pid 6552:tid 140023688466432] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 12:07:45.278655 2020] [unixd:alert] [pid 6554:tid 140023688466432] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 12:07:45.278832 2020] [unixd:alert] [pid 6553:tid 140023688466432] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:04:36.508368 2020] [mpm_event:notice] [pid 6551:tid 140023688466432] AH00491: caught SIGTERM, shutting down
[Fri Jul 03 14:04:39.238983 2020] [ssl:warn] [pid 15986:tid 139698003808256] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Jul 03 14:04:39.245715 2020] [ssl:warn] [pid 15986:tid 139698003808256] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 03 14:04:39.247296 2020] [mpm_event:notice] [pid 15986:tid 139698003808256] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Jul 03 14:04:39.247333 2020] [core:notice] [pid 15986:tid 139698003808256] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Fri Jul 03 14:04:39.248069 2020] [unixd:alert] [pid 15987:tid 139698003808256] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:04:39.248338 2020] [unixd:alert] [pid 15989:tid 139698003808256] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:04:39.248402 2020] [unixd:alert] [pid 15988:tid 139698003808256] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:05:31.932136 2020] [mpm_event:notice] [pid 15986:tid 139698003808256] AH00491: caught SIGTERM, shutting down
[Fri Jul 03 14:08:11.011445 2020] [ssl:warn] [pid 2853:tid 139930176258048] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Jul 03 14:08:11.080225 2020] [ssl:warn] [pid 2853:tid 139930176258048] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 03 14:08:11.081786 2020] [mpm_event:notice] [pid 2853:tid 139930176258048] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Jul 03 14:08:11.081824 2020] [core:notice] [pid 2853:tid 139930176258048] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Fri Jul 03 14:08:11.169986 2020] [unixd:alert] [pid 2868:tid 139930176258048] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:08:11.170025 2020] [unixd:alert] [pid 2867:tid 139930176258048] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:08:11.170032 2020] [unixd:alert] [pid 2869:tid 139930176258048] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:10:39.909697 2020] [mpm_event:notice] [pid 2853:tid 139930176258048] AH00491: caught SIGTERM, shutting down
[Fri Jul 03 14:10:43.122265 2020] [ssl:warn] [pid 4670:tid 140425090695168] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Jul 03 14:10:43.126522 2020] [ssl:warn] [pid 4670:tid 140425090695168] AH01909: 127.0.1.1:444:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 03 14:10:43.127598 2020] [mpm_event:notice] [pid 4670:tid 140425090695168] AH00489: Apache/2.4.43 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Jul 03 14:10:43.127624 2020] [core:notice] [pid 4670:tid 140425090695168] AH00094: Command line: 'httpd -d /snap/nextcloud/21796 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Fri Jul 03 14:10:43.128590 2020] [unixd:alert] [pid 4674:tid 140425090695168] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:10:43.128659 2020] [unixd:alert] [pid 4673:tid 140425090695168] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Jul 03 14:10:43.129008 2020] [unixd:alert] [pid 4672:tid 140425090695168] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive

Any idea what could be the reason?

Solved: The problem was related to the IP address of my nextcloud server. It seems the IP was changed and my router was not able to report the changes to DDNS service!
So I updated the IP in the DDNS and eveything worked fine again.

I just had one small issue. Some of the files were not showing up in the web
version of nextcloud, but I could see the files from in data dir at:

/var/snap/nextcloud/common/nextcloud/data/user/files

I needed to do a rescan

$ sudo nextcloud.occ files:scan --all