Share files between nextcloud and nas share

Currently reading
Share files between nextcloud and nas share

my 2 cents:
- deployment of your own DB into container will save your night sleeping
- you will get options to upgrade the DB by your self decision and by Syno
- you will get also option to create solid backup plan vs Syno pckg (no way)
- deployment of Nexcloud container is about few clicks vs the mentioned source. When you are running your own DB, it is much faster (deployment).
Tested and working on my both NAS platforms.

Just imagine, how you will upgrade the next Nexcloud deployment (based on the mentioned content source)?
Then Marius’s content is for:
- totally newbies
- w/o explanation of impacts or dependencies
- just copy and paste w/o understand what is happening
what is “cool”. Sure. Why not. 80% users need just simple guide. Few clicks. Done. And run this config for next 5y.

No warnings that your content is from the deployment available for average hacker from internet.
No recommendations how to harden the content security.
No recommendations how to backup the content.

… and what is more serious- w/o testing of the containers vulnerabilities. Really great road to hell and spreading of future troubles.

Never understand the point in the setup:
Task Settings: Check “Send run details by email“
maybe a reason that google needs to know also this security information. Great approach.

Quantity over quality is counting in world where number of clicks are most valuable assets for the content provider.
 
I've installed linuxserver/nextcloud and linuxserver/-mariadb.
I'm having some problems with mariadb.

Viewing the error file linuxserver-mariadb1.err

SQL:
2021-12-31 16:07:49 3 [Warning] IP address '172.18.0.1' could not be resolved: Name does not resolve
2021-12-31 16:07:49 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.1' (This connection closed normally without authentication)
2021-12-31 16:07:49 4 [Warning] IP address '172.18.0.1' could not be resolved: Name does not resolve
2021-12-31 16:07:49 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.1' (This connection closed normally without authentication)
2021-12-31 16:07:49 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.1' (This connection closed normally without authentication)
2021-12-31 16:07:49 6 [Warning] Aborted connection 6 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.1' (This connection closed normally without authentication)


And yet, in the command line of the mariadb container he gets to the gateway:

Bash:
root@linuxserver-mariadb1:/# ifconfig | grep Bcast                                                                       
          inet addr:172.18.0.2  Bcast:172.18.255.255  Mask:255.255.0.0                                                   
root@linuxserver-mariadb1:/#                                                                                             
root@linuxserver-mariadb1:/# route -n                                                                                   
Kernel IP routing table                                                                                                 
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface                                           
0.0.0.0         172.18.0.1      0.0.0.0         UG    0      0        0 eth0                                             
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0                                             
root@linuxserver-mariadb1:/#                                                                                             
root@linuxserver-mariadb1:/#                                                                                             
root@linuxserver-mariadb1:/# ping 172.18.0.1                                                                             
PING 172.18.0.1 (172.18.0.1): 56 data bytes                                                                             
64 bytes from 172.18.0.1: seq=0 ttl=64 time=0.080 ms                                                                     
64 bytes from 172.18.0.1: seq=1 ttl=64 time=0.181 ms                                                                     
64 bytes from 172.18.0.1: seq=2 ttl=64 time=0.127 ms                                                                     
64 bytes from 172.18.0.1: seq=3 ttl=64 time=0.110 ms                                                                     
64 bytes from 172.18.0.1: seq=4 ttl=64 time=0.119 ms                                                                     
^C                                                                                                                       
--- 172.18.0.1 ping statistics ---                                                                                       
5 packets transmitted, 5 packets received, 0% packet loss                                                               
round-trip min/avg/max = 0.080/0.123/0.181 ms

Is he trying to get the hostname from the ip address? I looked at the hostfile and it wasn't there

I've changed the local port too 33307 to test if if the nas is listening at that port, and he is:

Bash:
netstat -tulup | grep 33

tcp        0      0 0.0.0.0:33307           0.0.0.0:*               LISTEN      13150/docker-proxy

Can anyone tell what's wrong?

Thanks
-- post merged: --

my 2 cents:
- deployment of your own DB into container will save your night sleeping
- you will get options to upgrade the DB by your self decision and by Syno
- you will get also option to create solid backup plan vs Syno pckg (no way)
- deployment of Nexcloud container is about few clicks vs the mentioned source. When you are running your own DB, it is much faster (deployment).
Tested and working on my both NAS platforms.

Just imagine, how you will upgrade the next Nexcloud deployment (based on the mentioned content source)?
Then Marius’s content is for:
- totally newbies
- w/o explanation of impacts or dependencies
- just copy and paste w/o understand what is happening
what is “cool”. Sure. Why not. 80% users need just simple guide. Few clicks. Done. And run this config for next 5y.

No warnings that your content is from the deployment available for average hacker from internet.
No recommendations how to harden the content security.
No recommendations how to backup the content.

… and what is more serious- w/o testing of the containers vulnerabilities. Really great road to hell and spreading of future troubles.

Never understand the point in the setup:

maybe a reason that google needs to know also this security information. Great approach.

Quantity over quality is counting in world where number of clicks are most valuable assets for the content provider.

I'm kind of new at the nas and docker, so I try to keep it simple for now, I'll address security after I have everything configured before I start blocking ports and IP's, so I know that is not from a firewall rule that stuff doesn't work :)
 
Maybe it's related to this:


this is related to the MariaDB 10.6, but the last version deployed by the LinuxServer is 10.5.13

---------------

SSH into NAS, try this one and send here a copy:

Bash:
docker network inspect <name of the network used for the nexcloud in Docker GUI setup>
network-add-nextcloud.png
 
This is the result:

Code:
docker network inspect nextcloud-network
[
    {
        "Name": "nextcloud-network",
        "Id": "85217df14bdd2b8109dc56824ba722aafe263e5e3c58ea89ef3465ca1bbc16fc",
        "Created": "2021-12-31T13:51:11.595110886Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.18.0.0/16",
                    "Gateway": "172.18.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "29120154830ea43cf538ade5b77f569a981c5298b1b34b7f8e309063563e3966": {
                "Name": "nextcloud-web",
                "EndpointID": "a4c1064a7efdb4636c8b60364798aedb792f32782efe4a14c5e8e4f694b6ea2f",
                "MacAddress": "02:42:ac:12:00:03",
                "IPv4Address": "172.18.0.3/16",
                "IPv6Address": ""
            },
            "b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05": {
                "Name": "linuxserver-mariadb1",
                "EndpointID": "6b55e2e9b6aae8dc1c130a8d7cbdde19829d8c05934ac15e9d6cebc1243c4c8f",
                "MacAddress": "02:42:ac:12:00:02",
                "IPv4Address": "172.18.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]


Glad it's for another version, I didn't understand a bit of what they were saying
Server version: 10.5.13-MariaDB MariaDB Server
 
Last edited:
1. try to ping from 172.18.0.3 to 172.18.0.2

2. try to connect from nextcloud container to mariadb:
Bash:
mysql -h 172.18.0.2 -u <username> -P <portNum> <db_name>
where:
A) with usr defined in the container setup (Docker GUI), you will be prompted for the user psw
B) portNum = public port number used in the container setup (default is 3306), last changed to 33307
in both cases use db_name defined in the container setup (Docker GUI)

3. docker error log:
Bash:
docker events --since <'x'> --filter 'container=<name>' --format 'Type={{.Type}}  Status={{.Status}}  ID={{.ID}}'
where:
- the <'x'> is: a value in minutes, then use '30m'
- the <name> is the name of MariaDB container defined in the Docker GUI setup
- also docker error log for the nextcloud container

4. nextcloud log:
The logfile of Nextcloud is located in the data directory:
nextcloud/data/nextcloud.log
put here just related timestamps


5. To be sure what is the version deployed:
connect to the mariadb container and run
Bash:
mysql -V

copy here all results

Last, just to be sure (never mentioned by you):
Are you able to run the Nextcloud web (admin account and db config first page)?
nextcloud-final-1.png

-- post merged: --

to avoid a mistake with DB exposed port:
Bash:
docker container ls | grep linuxserver-mariadb1

copy result here
 
Last edited:
the ping worked fine, but the container doesn't seam to have mysql command installed:


Code:
root@nextcloud-web:/# ifconfig                                                                                      
eth0      Link encap:Ethernet  HWaddr 02:42:AC:12:00:03                                                            
          inet addr:172.18.0.3  Bcast:172.18.255.255  Mask:255.255.0.0                                              
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                        
          RX packets:918 errors:0 dropped:0 overruns:0 frame:0                                                      
          TX packets:871 errors:0 dropped:0 overruns:0 carrier:0                                                    
          collisions:0 txqueuelen:0                                                                                
          RX bytes:154130 (150.5 KiB)  TX bytes:3750454 (3.5 MiB)                                                  
                                                                                                                   
lo        Link encap:Local Loopback                                                                                
          inet addr:127.0.0.1  Mask:255.0.0.0                                                                      
          UP LOOPBACK RUNNING  MTU:65536  Metric:1                                                                  
          RX packets:205 errors:0 dropped:0 overruns:0 frame:0                                                      
          TX packets:205 errors:0 dropped:0 overruns:0 carrier:0                                                    
          collisions:0 txqueuelen:1                                                                                
          RX bytes:234476 (228.9 KiB)  TX bytes:234476 (228.9 KiB)                                                  
                                                                                                                   
root@nextcloud-web:/# ping 172.18.0.2                                                                              
PING 172.18.0.2 (172.18.0.2): 56 data bytes                                                                        
64 bytes from 172.18.0.2: seq=0 ttl=64 time=0.170 ms                                                                
64 bytes from 172.18.0.2: seq=1 ttl=64 time=0.131 ms                                                                
^C                                                                                                                  
--- 172.18.0.2 ping statistics ---                                                                                  
2 packets transmitted, 2 packets received, 0% packet loss                                                          
round-trip min/avg/max = 0.131/0.150/0.170 ms                                                                      
root@nextcloud-web:/# mysql                                                                                        
bash: mysql: command not found


Is it supposed to have it installed?


From the events I get:
Code:
root@JeraNas:~# docker events --since '2021-12-31' --filter 'container=linuxserver-mariadb1' --format 'Type={{.Type}}  Status={{.Status}}  ID={{.ID}}'
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05
Type=container  Status=top  ID=b260a97ce5725c04e940606ae275801182fee8ead50121936b4c4a56b1a6fd05

reading the nextcloud log, what am I searching for?
Code:
cat /data/nextcloud.log | grep -i 172.18.0.                                                                                                                                    
cat /data/nextcloud.log | grep -i 172.18.0.                                                                                                                                                       
{"reqId":"PbrGrlzvep4bZnWpkufj","level":2,"time":"2021-12-31T15:35:19+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///d
ata/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":""}                                                   
{"reqId":"PbrGrlzvep4bZnWpkufj","level":2,"time":"2021-12-31T15:35:19+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///da
ta/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":""}                                                    
{"reqId":"p0sxEIe8IA0fSq1fWy2Q","level":2,"time":"2021-12-31T15:39:54+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in 
https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":""}                                         
{"reqId":"p0sxEIe8IA0fSq1fWy2Q","level":2,"time":"2021-12-31T15:39:54+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in 
http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":""}                                          
{"reqId":"ZjvNyx0ihJuxEQvcNqBk","level":2,"time":"2021-12-31T15:41:23+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"ZjvNyx0ihJuxEQvcNqBk","level":2,"time":"2021-12-31T15:41:23+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"fCih6qIecoIwZRoDQI0a","level":2,"time":"2021-12-31T15:49:24+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"fCih6qIecoIwZRoDQI0a","level":2,"time":"2021-12-31T15:49:24+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"Z9EgZQYWWPxuCOex8f9L","level":2,"time":"2021-12-31T15:50:50+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"Z9EgZQYWWPxuCOex8f9L","level":2,"time":"2021-12-31T15:50:50+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"YfOW0FXuQIBRk5eGbitr","level":2,"time":"2021-12-31T16:01:29+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"YfOW0FXuQIBRk5eGbitr","level":2,"time":"2021-12-31T16:01:29+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}             
{"reqId":"fHtRESJpfuz26NwOGjXO","level":2,"time":"2021-12-31T16:13:03+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host <nas-ip> was not co
nnected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10"}

I've replaced the ip for <nas-ip>
 
Could not detect any host in https:///data/htaccesstest.txt

you don't have set of trusted domain to your host:

create NEW ENV in your docker GUI"
NEXTCLOUD_TRUSTED_DOMAINS = YOUR_NAS_LAN_IP

or:
/config/config.php
you need to edit the line with:
PHP:
trusted_domains
like this:
PHP:
'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'YOUR_LAN_NAS_IP',
  ),

then restart the container
 
Thanks

but I got the same error:

Code:
Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Operation timed out

I've added on the nextcloud container in env NEXTCLOUD_TRUSTED_DOMAINS 192.168.x.x

Do I have to do the same in the database?
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top