Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.5
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 24.04
- Web server and version (e.g, Apache 2.4.25):
replace me
- Reverse proxy and version _(e.g. nginx 1.27.2)
replace me
- PHP version (e.g, 8.3):
replace me
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
replace me
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
replace me
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
replace me
Summary of the issue you are facing:
I have installed nextcloud on ubuntu via snap. I can start nextcloud, but I cannot access the gui from my browser.
I am connectig from another computer on the network!
Steps to replicate it (hint: details matter!):
- start nextcloud via snap
- check regular apache logs (not the logs on the snap directory)
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
PASTE
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
[Mon Mar 24 15:05:33.487873 2025] [core:info] [pid 2146714] [client 178.254.20.65:57760] AH00128: File does not exist: /var/www/html/var/snap/nextcloud/common/nextcloud/data/.ncdata
You can see, “/var/www/html” looks to me as the Server Root of some apache configuration.
“/var/snap/nextcloud/common/nextcloud/data/” is the data-Directory configured in the nextcloud configuration file.
...
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
...
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
nextcloud.occ config:list system
{
"system": {
"apps_paths": [
{
"path": "\/snap\/nextcloud\/current\/htdocs\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
"url": "\/extra-apps",
"writable": true
}
],
"trusted_domains": [
"localhost",
"cloud.gwfwsfi.de"
],
"supportedDatabases": [
"mysql"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"log_type": "file",
"logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
"logfilemode": 416,
"maintenance_window_start": 1,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"dbtype": "sqlite3",
"version": "30.0.5.1",
"overwrite.cli.url": "http:\/\/localhost",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"overwritehost": "cloud.gwfwsfi.de:81"
}
}
Apps
The output of occ app:list
(if possible).
My question is:
Where does the filepath in the log entry of the apache log come from? There must be some configuration file where the ServerRoot is set and this might be wrong or misconfigured.
E.g:
/snap/nextcloud/current/conf/httpd.conf
This includes
ServerRoot "${SNAP}"
But where is “${SNAP}” set?
Any help apreciated!