Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android App Error #5310

Closed
JonasPfz opened this issue Jan 25, 2020 · 16 comments · Fixed by nextcloud/android-library#394
Closed

Android App Error #5310

JonasPfz opened this issue Jan 25, 2020 · 16 comments · Fixed by nextcloud/android-library#394
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale

Comments

@JonasPfz
Copy link

Steps to reproduce

  1. I tried to download a file from my android nextcloud app

Expected behaviour

  • Tell us what should happen

Open the file

Actual behaviour

  • Tell us what happens

Crash report, not opening the file

Environment data

Android version:

Device model:

Stock or customized system:

Nextcloud app version:

Nextcloud server version:

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

************ CAUSE OF ERROR ************

java.net.ConnectException: Failed to connect to cloud.pfitznerconsulting.de/85.214.35.97:443
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:249)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:167)
	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:258)
	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:127)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:257)
	at okhttp3.RealCall.execute(RealCall.java:93)
	at com.nextcloud.common.OkHttpMethodBase.execute(OkHttpMethodBase.kt:126)
	at com.nextcloud.common.NextcloudClient.execute(NextcloudClient.kt:67)
	at com.owncloud.android.lib.resources.activities.GetActivitiesRemoteOperation.run(GetActivitiesRemoteOperation.java:131)
	at com.nextcloud.common.NextcloudClient.execute(NextcloudClient.kt:63)
	at com.owncloud.android.ui.fragment.FileDetailActivitiesFragment.lambda$fetchAndSetData$5$FileDetailActivitiesFragment(FileDetailActivitiesFragment.java:331)
	at com.owncloud.android.ui.fragment.-$$Lambda$FileDetailActivitiesFragment$N7POe6TZvoGcuV2qP-niPxY_7t4.run(Unknown Source:12)
	at java.lang.Thread.run(Thread.java:764)
Caused by: java.net.ConnectException: failed to connect to cloud.pfitznerconsulting.de/85.214.35.97 (port 443) from /10.181.174.42 (port 44578) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
	at libcore.io.IoBridge.isConnected(IoBridge.java:278)
	at libcore.io.IoBridge.connectErrno(IoBridge.java:187)
	at libcore.io.IoBridge.connect(IoBridge.java:129)
	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:137)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
	at java.net.Socket.connect(Socket.java:621)
	at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:73)
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)
	... 24 more
Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
	at libcore.io.IoBridge.isConnected(IoBridge.java:267)
	... 34 more

************ APP INFORMATION ************
ID: com.nextcloud.client
Version: 30100090
Build flavor: gplay

************ DEVICE INFORMATION ************
Brand: Xiaomi
Device: tucana
Model: Mi Note 10
Id: PKQ1.190302.001
Product: tucana_eea

************ FIRMWARE ************
SDK: 28
Release: 9
Incremental: V11.0.13.0.PFDEUXM

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

@JonasPfz JonasPfz added the bug label Jan 25, 2020
@AndyScherzinger
Copy link
Member

--> isConnected failed: ECONNREFUSED (Connection refused)

My guess is the server is missconfigured (the browser working jjust fine isn't an indicator, that the server is configured correctly).

cc @tobiasKaminsky

@JonasPfz
Copy link
Author

Hi @AndyScherzinger,

thanks for your answer!

I can see the following errors:

Sicherheits- & Einrichtungswarnungen

Für die Sicherheit und Performance Deiner Instanz ist es wichtig, dass alles richtig konfiguriert ist. Um Dir dabei zu helfen, führen wir einige automatische Prüfungen durch. Weitere Informationen kannst Du der verlinkten Dokumentation entnehmen.
Es gibt einige Fehler bei Deiner Systemkonfiguration.

Einige Dateien haben die Integritätsprüfung nicht bestanden. Weiterführende Informationen befinden sich in unserer Dokumentation. (Liste der ungültigen Dateien… / Erneut analysieren…)

Dein Web-Server ist nicht richtig eingerichtet um "/.well-known/caldav" aufzulösen. Weitere Informationen findest Du in der Dokumentation.
Dein Web-Server ist nicht richtig eingerichtet um "/.well-known/carddav" aufzulösen. Weitere Informationen findest Du in der Dokumentation.
Es wurde kein PHP-Memory-Cache konfiguriert. Zur Erhöhung der Leistungsfähigkeit kann ein Memory-Cache konfiguriert werden. Weitere Informationen findest Du in der Dokumentation.
In der Datenbank fehlen einige Indizes. Auf Grund der Tatsache, dass das Hinzufügen von Indizes in großen Tabellen einige Zeit in Anspruch nehmen kann, wurden diese nicht automatisch erzeugt. Durch das Ausführen von "occ db:add-missing-indices" können die fehlenden Indizes manuell hinzugefügt werden, während die Instanz weiter läuft. Nachdem die Indizes hinzugefügt wurden, sind Anfragen auf die Tabellen normalerweise schneller.
    Fehlender Index "owner_index" in der Tabelle "oc_share".
    Fehlender Index "initiator_index" in der Tabelle "oc_share".
    Fehlender Index "fs_mtime" in der Tabelle "oc_filecache".
    Fehlender Index "twofactor_providers_uid" in der Tabelle "oc_twofactor_providers".
    Fehlender Index "version" in der Tabelle "oc_whats_new".
    Fehlender Index "cards_abid" in der Tabelle "oc_cards".
    Fehlender Index "cards_prop_abid" in der Tabelle "oc_cards_properties".
Bei einigen Spalten in der Datenbank fehlt eine Konvertierung in big int. Aufgrund der Tatsache, dass das Ändern von Spaltentypen bei großen Tabellen einige Zeit dauern kann, wurden sie nicht automatisch geändert. Durch Ausführen von "occ db:convert-filecache-bigint" können diese ausstehenden Änderungen manuell übernommen werden. Diese Operation muss ausgeführt werden, während die Instanz offline ist. Weitere Einzelheiten findest Du auf der zugehörigen Dokumentationsseite.
    filecache.mtime
    filecache.storage_mtime
    mounts.storage_id
    mounts.root_id
    mounts.mount_id

Bitte überprüfe noch einmal die Installationsanleitungen ↗ und kontrolliere das Protokoll auf mögliche Fehler oder Warnungen.

Überprüfe die Sicherheit Deiner Nextcloud über unseren Sicherheitsscanner ↗.

Kind regards,
Jonas

@AndyScherzinger
Copy link
Member

@tobiasKaminsky any ideas?

ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 3, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 3, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 3, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 4, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 5, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 6, 2020
ezaquarii added a commit to nextcloud/android-library that referenced this issue Feb 6, 2020
tobiasKaminsky pushed a commit to nextcloud/android-library that referenced this issue Feb 7, 2020
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.10.2 milestone Feb 10, 2020
@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Feb 11, 2020

Can you try out our dev version (you can install it in parallel) and give us feedback:
https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#developement-release

@tobiasKaminsky
Copy link
Member

@JonasPfz can you try dev version?

@JonasPfz
Copy link
Author

nextcloud-dev-20200225.apk 2020-02-25 02:38

Yes, it works now

@JonasPfz
Copy link
Author

@tobiasKaminsky

@JonasPfz
Copy link
Author

@tobiasKaminsky current nextcloud android app V 3.12.1 is still not working.

@AndyScherzinger
Copy link
Member

@JonasPfz can you post an updated error log with the stack trace since the referenced fix shipped with 3.11

@AndyScherzinger AndyScherzinger added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Aug 10, 2020
@JonasPfz
Copy link
Author

@AndyScherzinger I only get the notification "Download failed" but don't see any error log like last time

@AndyScherzinger
Copy link
Member

@tobiasKaminsky any idea how to collect more details/logs?

@JonasPfz
Copy link
Author

Screenshot_2020-08-10-23-20-25-915_com nextcloud client

@JonasPfz
Copy link
Author

JonasPfz commented Sep 8, 2020

Still not working..

@JonasPfz
Copy link
Author

JonasPfz commented Sep 8, 2020

@tobiasKaminsky

@tobiasKaminsky
Copy link
Member

I still think this is caused by a misconfigured server…

Can you provide us additional infos via logcat? https://github.com/nextcloud/android/blob/master/README.md#getting-debug-info-via-logcat

@tobiasKaminsky tobiasKaminsky removed this from the Nextcloud App 3.11.0 milestone Sep 9, 2020
@stale
Copy link

stale bot commented Oct 11, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Oct 11, 2020
@stale stale bot closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants