i have recently installed nextcloud on my shared hosting on serverbyt (not that popular hosting), after installation i am getting a webdav server error
- Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its
trusted_domains
or the overwrite.cli.url
. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.
Due to this file-synchronisation is also for some reason is forbidden
i have spent too much time figuring out this, is there any way to configure this.
please help me…
please share your config.php as we can only guess without it.
Do you have your server external ip in the trusted_domains?
here’s the config file details:
<?php
$CONFIG = array (
'instanceid' => 'oc***REDACTED***',
'passwordsalt' => '***REDACTED***',
'secret' => '***REDACTED***',
'trusted_domains' =>
array (
0 => 'cloud.xxxx.com',
1 => 'xx5.xx1.xx0.xx4',
),
'datadirectory' => '/xxxxxx/cloud/data',
'dbtype' => 'sqlite3',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://cloud.xxxxxx.com',
'installed' => true,
);
I would add the local ip aswell just to be sure also redact your instance id passwordsalt and secret in previous post.
'trusted_domains' => array ( 0 => 'cloud.xxxx.com', 1 => 'xx5.xx1.xx0.xx4', 2 => '127.0.0.1', 3 => '192.168.x.x', ),
for 3 whatever your local ip is
actually this is hosted on a shared hosting so i dont know local ip
I can try using ssh access
Edit: these are the reasults i got from ifconfig command on ssh terminal
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.4.130 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::5054:ff:fe96:ac78 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:96:ac:78 txqueuelen 1000 (Ethernet)
RX packets 460480134 bytes 1493219387817 (1.3 TiB)
RX errors 0 dropped 3642956 overruns 0 frame 0
TX packets 175871342 bytes 18732122961 (17.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.3.4.130 netmask 255.255.0.0 broadcast 10.3.255.255
inet6 fe80::5054:ff:fec2:f89e prefixlen 64 scopeid 0x20<link>
ether 52:54:00:c2:f8:9e txqueuelen 1000 (Ethernet)
RX packets 9359087502 bytes 27283665520818 (24.8 TiB)
RX errors 0 dropped 3638984 overruns 0 frame 0
TX packets 7384140286 bytes 20412943003027 (18.5 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9988 bytes 2302670 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9988 bytes 2302670 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Does your hoster support Nextcloud?
Are all necessary php modules available?
I am not aware about the official support, but I am sure that all modules and dependencies are present
i checked for php modules once again my hosting support and yesss all modules and dependencies are present
Would you mind naming your URL (can drop me a PM) and I will try to open it from the outside?
You do not have any data storage mounted. Never seen that.
Where do you store your data?
See critical I/O error in the logs. Looks related to me.
its a virtual hosted server (shared hosting), i am not aware of disk mounting,
Log in as admin and check your files app.
There is no storage.
Without storage webdav cannot provide files.
You selected sqlite as db and got an I/O error.
Check the correctness of your datadirectory
.
Unless a storage isn’t available I will not support from here.
And change your credentials. You posted them here and everybody can log in.
this is my config:
<?php
$CONFIG = array (
'instanceid' => 'oc***REDACTED***',
'passwordsalt' => '***REDACTED***',
'secret' => '***REDACTED***',
'trusted_domains' =>
array (
0 => 'cloud.***REDACTED***.com',
),
'datadirectory' => '/home/sites/40b/f/f54445cfff/cloud/data',
'dbtype' => 'sqlite3',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://cloud.***REDACTED***.com',
'installed' => true,
);
it has data storage clearly mentioned in it i cant find the problem with it i rechecked the read and write permissions and still no problem with it:
btw this is a dummy run and dummy domain not my original installation, thats why it is running on sqllite and so dont worry about credentials.
i reconnected it to mysql database as you said of I/O errors
Are the config parameters mentioned in last post are up-to-date?
The db type has been changed afterwards?
I wonder about the trusted domains array.
networkstorage.eu.org
is not listed there.
Open https://networkstorage.eu.org/index.php/apps/files/files
It is empty and shows forbidden errors.
I cannot tell you why as I am not able to access fs.
In the meantime, you have added several apps, including LDAP and Office.
It doesn’t make it any easier to troubleshoot when changes are made.
yes i changed db to mysql as you said but still no luck, and also the main peoblem is the files sharing function, i still cant determine the reason for this not working
edit: i checked everything it seems there is some problem with webdav and calldav, not sure how to solve it, all the settings are correct for webdav but still no luck.