Hey all, I’ve currently got nextcloud function as a lan server basically. I’ve got it installed successfully using the command line instead of snap on a headless ubuntu server(v 18.04), but the idea was to replace onedrive for my needs, so I could have a backup of files on both my computers file directory, and the server, so if one fails i don’t lose files, but also, so the files can be accessed on the go from a laptop, or my phone using the nextcloud app. My computer is running Manjaro KDE. So far, if I go to “192.168.50.112/nextcloud” it works, if I’m on the same network.
To have it be accessible on WAN I tried a bunch of rabbit holes I found online but none of them worked and I don’t actually know yet if it’s that I’m performing steps incorrectly, or if it’s misuse of a tool, or something malfunctioning. I tried using my ASUS router to set up port forwarding on both port 443 & 80, as they don’t appear to be blocked by xfinity. I tried using a built in DDNS option on the router where the “website” would be leviathan7995.asuscomm.com, and I tried using that as leviathan7995.asuscomm.com and leviathan7995.asuscomm.com/nextclolud. I did go into the config file to add a 1 as the new ddns but that still didn’t work
0 => 192.168.50.112
1 => leviathan7995.asuscomm.com
So now I’m hoping someone can give me an idea as to what I don’t need to do that I’ve done, and what to look at for guidance.
Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 18.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29 (Ubuntu)
PHP version (eg, 7.1): PHP 7.2.24-0ubuntu0.18.04.6
The issue you are facing: Unable to access on WAN
Is this the first time you’ve seen this error? (Y/N): Yes, it’s the first time I’ve tried
Steps to replicate it:
Not really sure what I’d put here
1.
2.
3.
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: touch(): Utime failed: Permission denied at /new-pool/nextcloud/nextcloud/lib/private/Config.php#242
PROPFIND /nextcloud/remote.php/dav/files/jamess7995/
from 192.168.50.207 at 2020-08-19T18:42:37+00:00
Interestingly, there’s a lot of errors on that logging section, but things are working on lan?
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocrvae6474z2',
'passwordsalt' => '3XCTXcUV1zhvoaf1n5Kwd//RUzCLJy',
'secret' => 'OPqGXZo70Fxbb02lvUeNjedb+Kuycm+oShhhWvdh8nc6/WZy',
'trusted_domains' =>
array (
0 => '192.168.50.112',
1 => 'leviathan.asuscomm.com'
),
'datadirectory' => '/new-pool/nextcloud/nextcloud/data',
'dbtype' => 'mysql',
'version' => '19.0.1.1',
'overwrite.cli.url' => 'http://192.168.50.112/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'ncadmin',
'dbpassword' => 'semaj123',
'installed' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:12 +0000] "MKCOL /nextcloud/remote.php/dav/uploads/jamess7995/898435181 HTTP/1.1" 201 578 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:09 +0000] "PUT /nextcloud/remote.php/dav/uploads/jamess7995/3852132001/00000000 HTTP/1.1" 201 760 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:19 +0000] "PUT /nextcloud/remote.php/dav/uploads/jamess7995/898435181/00000000 HTTP/1.1" 201 759 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:09 +0000] "PUT /nextcloud/remote.php/dav/files/jamess7995/Music/James/Kanye%20West/Graduation/Champion.mp3 HTTP/1.1" 201 902 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:19 +0000] "MOVE /nextcloud/remote.php/dav/uploads/jamess7995/3852132001/.file HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:21 +0000] "MOVE /nextcloud/remote.php/dav/uploads/jamess7995/898435181/.file HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:24 +0000] "PUT /nextcloud/remote.php/dav/files/jamess7995/Music/James/Kanye%20West/Graduation/Everything%20I%20Am.mp3 HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:26 +0000] "PUT /nextcloud/remote.php/dav/files/jamess7995/Music/James/Kanye%20West/Graduation/Flashing%20Lights.mp3 HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:26 +0000] "PUT /nextcloud/remote.php/dav/files/jamess7995/Music/James/Kanye%20West/Graduation/Good%20Life.mp3 HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"
192.168.50.207 - jamess7995 [19/Aug/2020:06:25:28 +0000] "PUT /nextcloud/remote.php/dav/files/jamess7995/Music/James/Kanye%20West/Graduation/Good%20Morning.mp3 HTTP/1.1" 201 901 "-" "Mozilla/5.0 (Linux) mirall/3.0.0git (build 3293) (Nextcloud)"