syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
396 stars 40 forks source link

[Nextcloud] Internal error - temp dir #534

Closed cyberb closed 4 years ago

cyberb commented 4 years ago

User cannot open cannot open https://nextcloud.[device].syncloud.it from local network which gives you internal server error (not good) after accepting invalid certificate.

From the logs I can see that Nextcloud is having some issue with temp directory: "Temporary directory /data/nextcloud/tmp is not present or writable"

  1. Also from the log I see that you have usb disk but not activated it, it is better to activate external storage as it will reduce the load on fragile sd card. Settings - Storage - Activate.
  2. Also boot disk (sd card) is not extended to its max size, you can do this from Settings - Storage - Extend boot.

If it does not work run this command on the device using ssh:

ls -la /data/nextcloud/tmp
03Erik commented 4 years ago

Hello Boris, thanks for support! I activated external storage and extended boot disk like suggested. This did not solve the problem. As I could not login with ssh using Windows 10 cmd, I upgraded system and reinstalled Nextcloud. Now it works. :)

I already explained, I go online with LTE Router. I have another router (Asus RT-AC58U) connected to LTE Router which acts as VPN client. It connects to Vypr VPN server. A device which is online via this VPN connection can still not reach my syncloud. I checked for rebind protection but could not find a setting on Asus router. Do you have an idea?

Is it possible to connect using ssh on Windows cmd? (ssh root@ip) The error message is: "Permission denied" Is it possible to set static ip for syncloud?

Cheers, Erik

cyberb commented 4 years ago

A device which is online via this VPN connection can still not reach my syncloud

Are device (client) and Syncloud (server) both behind Asus router?

Is it possible to connect using ssh on Windows cmd? (ssh root@ip)

Yes, you need to use fevice activation password if device is already activated.

cyberb commented 4 years ago

Is it possible to set static ip for syncloud?

Please use this issue to provide more info: https://github.com/syncloud/platform/issues/526

03Erik commented 4 years ago

Syncloud server is connected to LTE Router (public IP, port forwarding, UPNP off, no configuration of rebind protection available) Asus Router with VPN client is connected to LTE Router and working as router, not as access point. So both routers are in different networks. I never worked with ssh before. Do I have to pass password together with user id and ip in one statement? (of course I tried to connect via ssh on a client which is in same network like syncloud server - ping of syncloud iss succesfull)

03Erik commented 4 years ago

The issue with Asus router is solved. Obviously there was something wrong with VPN client configuration. I deleted configuration, set it up again and now it's working. To connect via ssh is still not working. Maybe just a beginners problem :)

cyberb commented 4 years ago

Are you sure you are using correct ip? Could you send us log from putty to support email?

03Erik commented 4 years ago

Hi, I'm sure I used correct IP via Windows cmd (not putty). But as there is actual no need to use ssh I don't take the time to follow this issue. Thank you very much for great support!