No Backup possible on Nextcloud in local network

REPRODUCIBILITY (% or how often): 100
BUILD ID = OS VERSION (Settings > About product):4.3.0.12
HARDWARE (XA2, X10, X10 II, …): X10
UI LANGUAGE: german
REGRESSION: (compared to previous public release: Yes, No, ?):

DESCRIPTION:

I have a nextcloud server in my local network ( just a network with access points without internet connection). When I connected to the network and want to perform a backup, the gui tells me “Connection failed. An internet connection is necessary to perform a backup at a cloud provider” so I am not able to make a backup on my own nextcloud server. The server works fine, i sync my cal and contacts with it on the phone. There is an issue to, that the phone does not recognize it, but it seems to work, when the sync is not triggerd manually but with auto sync every 15 min, but that is a different topic. I want just to ensure, that the nextcloud server works fine and is right configured on the phone.

PRECONDITIONS:

Setup a nextcloud account and run it in a local network without internet access. Configure it on your phone and try a backup.

STEPS TO REPRODUCE:

see above

EXPECTED RESULT:

A backup is performed on a local server, even when the local network has no internet connection

ACTUAL RESULT:

not possible to perform a backup

ADDITIONAL INFORMATION:

i am pretty sure, that the problem will relate in a check, whether you are connected to a network or not. But instead to check the connection to a network, the connection to internet is checked.

2 Likes

it seems to me that this is related to other reports that several Android apps don’t work if you don’t have a full internet connection. When you connect to a network, connman (?) pings ipv4.jolla.com to test whether the connection works or not. If it fails, due to a missing internet connection, firewall, ipv6-only network or any other reason. connman claims to have a limited connection which in return let other applications stop operations.

I’m not sure whether to blame connman or the apps that refuse operation though they could work.

2 Likes

Is there a chance to see this fixed in the next release? I would be great to connect to any account running on a server independent from a connection to the internet.
Best regards
Lukas

Problem still exists in 4.4.0.58 :cry:
Has anyone an idea, how to perform a backup on nextcloud server in a private lan without internet connection?

One rather dirty workaround, possibly with nasty side effects, would be that you add an entry to your local /etc/hosts file that points ipv4.jolla.com to your local host, i.e. 127.0.0.1. Hence conman will assume that you’re online and you can try to run the backup again.

Be aware, I don’t know what conman does when it thinks it’s always online. If I run such an experiment I would connect the phone via USB to your PC and connect to the phone through an ssh connection via your USB line. So you can make your changes and fix them if conman gets confused.