stefan-niedermann / nextcloud-deck

📋 Android client for nextcloud deck app
https://play.google.com/store/apps/details?id=it.niedermann.nextcloud.deck.play
GNU General Public License v3.0
502 stars 53 forks source link

Can not connect to nextcloud app account #1604

Closed pern0x closed 8 months ago

pern0x commented 8 months ago

This issue respects the following points:

Describe the bug

  1. Install App
  2. Open App
  3. Click on Choose acount
  4. choose account and click on ok
  5. Connection not working Screenshot_20240316-083748

Expected behavior

It should be possible to connect.

Deck Android version

1.24.1

Deck server version

1.12.2

Nextcloud Android version

3.28.0

Nextcloud version

28.0.3

Device

Pixel 8 Pro

Android Version

grapheneos 14

App Store

Stacktrace

type: logcat
osVersion: google/husky/husky:14/AP1A.240305.019.A1/2024031400:user/release-keys
packageName: it.niedermann.nextcloud.deck:1024001
buffers: main,system,crash,events
level: verbose

--------- beginning of events
1710574241.277 32284 32284 I auditd  : avc=type=1400 audit(0.0:7469): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.277 32284 32284 I auditd  : avc=type=1400 audit(0.0:7470): avc:  denied  { read } for  comm=".nextcloud.deck" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.281 32284 32284 I auditd  : avc=type=1400 audit(0.0:7471): avc:  denied  { read } for  comm=".nextcloud.deck" name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=350 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.281 32284 32284 I auditd  : avc=type=1400 audit(0.0:7472): avc:  denied  { read } for  comm=".nextcloud.deck" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.281 32284 32284 I auditd  : avc=type=1400 audit(0.0:7473): avc:  denied  { getattr } for  comm=".nextcloud.deck" path="/apex/apex-info-list.xml" dev="tmpfs" ino=85 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7474): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot.art" dev="dm-24" ino=1324 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7475): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-core-libart.art" dev="dm-24" ino=1258 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7476): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-okhttp.art" dev="dm-24" ino=1306 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7477): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-bouncycastle.art" dev="dm-24" ino=1246 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7478): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-apache-xml.art" dev="dm-24" ino=1240 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.289 32284 32284 I auditd  : avc=type=1400 audit(0.0:7479): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-framework.art" dev="dm-24" ino=1294 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7480): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-framework-graphics.art" dev="dm-24" ino=1276 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7481): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-framework-location.art" dev="dm-24" ino=1282 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7482): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-framework-nfc.art" dev="dm-24" ino=1288 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7483): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-ext.art" dev="dm-24" ino=1264 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7484): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-telephony-common.art" dev="dm-24" ino=1312 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7485): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-voip-common.art" dev="dm-24" ino=1318 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7486): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-ims-common.art" dev="dm-24" ino=1300 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.297 32284 32284 I auditd  : avc=type=1400 audit(0.0:7487): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-core-icu4j.art" dev="dm-24" ino=1252 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.305 32284 32284 I auditd  : avc=type=1400 audit(0.0:7488): avc:  denied  { lock } for  comm=".nextcloud.deck" path="/system/framework/arm64/boot-framework-adservices.art" dev="dm-24" ino=1270 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.349 32284 32284 I auditd  : avc=type=1400 audit(0.0:7489): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=182 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.349 32284 32284 I auditd  : avc=type=1400 audit(0.0:7490): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=182 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.349 32284 32284 I auditd  : avc=type=1400 audit(0.0:7491): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=182 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.349 32284 32284 I auditd  : avc=type=1400 audit(0.0:7492): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=182 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.349 32284 32284 I auditd  : avc=type=1400 audit(0.0:7493): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=182 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.353 32284 32284 I auditd  : avc=type=1400 audit(0.0:7494): avc:  denied  { read } for  comm="main" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.377 32284 32284 I auditd  : avc=type=1400 audit(0.0:7495): avc:  denied  { read } for  comm="binder:32284_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=373 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.377 32284 32284 I auditd  : avc=type=1400 audit(0.0:7496): avc:  denied  { read } for  comm="binder:32284_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=373 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.417 32284 32284 I auditd  : avc=type=1400 audit(0.0:7497): avc:  denied  { read } for  comm=".nextcloud.deck" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c182,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=it.niedermann.nextcloud.deck
1710574241.489 32284 32284 I wm_on_create_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performCreate,time=48ms]
1710574241.490 32284 32284 I wm_on_start_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=handleStartActivity,time=0ms]
1710574241.491 32284 32284 I wm_on_resume_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574241.497 32284 32284 I wm_on_top_resumed_gained_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=topStateChangedWhenResumed]
1710574241.591 32284 32284 I wm_on_top_resumed_lost_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=topStateChangedWhenResumed]
1710574241.591 32284 32284 I wm_on_paused_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performPause,time=0ms]
1710574241.611 32284 32284 I wm_on_create_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performCreate,time=14ms]
1710574241.611 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
1710574241.614 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574241.617 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574242.170 32284 32284 I wm_on_stop_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574242.552 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574242.553 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574244.073 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574244.074 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574244.074 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574244.095 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574244.096 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574246.202 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574246.203 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574246.203 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574261.077 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574261.078 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574263.721 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574263.722 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574263.722 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574263.739 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574263.742 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=1ms]
1710574264.930 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574264.930 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574264.930 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574266.323 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574266.329 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574266.357 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574267.037 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574295.234 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574295.235 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574295.241 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574295.241 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574296.373 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574296.385 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574296.427 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574297.117 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574297.549 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574297.549 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
1710574297.551 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574297.551 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574298.857 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574298.861 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574298.905 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574299.576 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574585.754 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574585.755 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574585.764 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574585.765 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574587.359 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574587.379 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574587.932 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574587.984 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574629.324 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574629.326 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574629.335 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574629.406 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574629.741 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574629.741 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574631.284 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574656.416 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574656.417 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574658.923 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574658.925 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574658.925 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574659.887 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574659.887 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574662.126 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574662.127 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574662.127 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574662.151 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574662.151 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574664.193 32284 32284 I wm_on_activity_result_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=ACTIVITY_RESULT]
1710574664.194 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574664.194 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574673.244 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574673.274 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574673.308 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574674.002 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574674.012 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574674.472 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574674.524 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574719.835 32284 32284 I wm_on_restart_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574719.836 32284 32284 I wm_on_start_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574719.847 32284 32284 I wm_on_resume_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574719.923 32284 32284 I wm_on_top_resumed_gained_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574721.603 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574721.707 32284 32284 I wm_on_top_resumed_lost_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574721.709 32284 32284 I wm_on_paused_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574721.729 32284 32284 I wm_on_restart_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performRestart,time=0ms]
1710574721.729 32284 32284 I wm_on_start_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=handleStartActivity,time=0ms]
1710574721.747 32284 32284 I wm_on_activity_result_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=ACTIVITY_RESULT]
1710574722.180 32284 32284 I wm_on_stop_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=LIFECYCLER_STOP_ACTIVITY,time=1ms]
1710574722.203 32284 32284 I wm_on_destroy_called: [Token=174730135,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performDestroy,time=8ms]
1710574722.224 32284 32284 I wm_on_stop_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=LIFECYCLER_STOP_ACTIVITY,time=0ms]
1710574722.226 32284 32284 I wm_on_destroy_called: [Token=27050975,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performDestroy,time=1ms]
1710574724.730 32284 32284 I wm_on_create_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performCreate,time=24ms]
1710574724.731 32284 32284 I wm_on_start_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=handleStartActivity,time=0ms]
1710574724.731 32284 32284 I wm_on_resume_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574724.736 32284 32284 I wm_on_top_resumed_gained_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=topStateChangedWhenResumed]
1710574724.776 32284 32284 I wm_on_top_resumed_lost_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=topStateChangedWhenResumed]
1710574724.777 32284 32284 I wm_on_paused_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=performPause,time=0ms]
1710574724.799 32284 32284 I wm_on_create_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performCreate,time=8ms]
1710574724.799 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
1710574724.802 32284 32284 I wm_on_resume_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=1ms]
1710574724.805 32284 32284 I wm_on_top_resumed_gained_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574725.048 32284 32284 I wm_on_stop_called: [Token=208173002,Component Name=it.niedermann.nextcloud.deck.ui.main.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574726.226 32284 32284 I view_enqueue_input_event: [eventType=Motion - Cancel,action=it.niedermann.nextcloud.deck/it.niedermann.nextcloud.deck.ui.ImportAccountActivity]
1710574726.234 32284 32284 I wm_on_top_resumed_lost_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574726.275 32284 32284 I wm_on_paused_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=0ms]
1710574726.948 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574727.654 32284 32284 I wm_on_restart_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574727.654 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
1710574727.656 32284 32284 I wm_on_resume_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=RESUME_ACTIVITY,time=0ms]
1710574727.656 32284 32284 I wm_on_top_resumed_gained_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topWhenResuming]
1710574728.340 32284 32284 I wm_on_top_resumed_lost_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=topStateChangedWhenResumed]
1710574728.341 32284 32284 I wm_on_paused_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performPause,time=1ms]
1710574729.572 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574730.855 32284 32284 I wm_on_restart_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574730.856 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
1710574732.582 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574741.815 32284 32284 I wm_on_restart_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574741.815 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
1710574743.204 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1710574846.951 32284 32284 I wm_on_restart_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574846.952 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=1ms]
--------- beginning of main
1710574846.970 32284 32284 D VRI[ImportAccountActivity]: Start draw after previous draw not visible
1710574847.982 32284 32284 D VRI[ImportAccountActivity]: visibilityChanged oldVisibility=true newVisibility=false
1710574848.009 32284 32284 D VRI[ImportAccountActivity]: Not drawing due to not visible
--------- switch to events
1710574848.011 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
1710574849.209 32284 32284 I wm_on_restart_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=performRestart,time=0ms]
1710574849.209 32284 32284 I wm_on_start_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=handleStartActivity,time=0ms]
--------- switch to main
1710574849.213 32284 32284 D VRI[ImportAccountActivity]: visibilityChanged oldVisibility=false newVisibility=true
1710574849.218 32284 32284 D VRI[ImportAccountActivity]: Start draw after previous draw not visible
1710574850.266 32284 32284 D VRI[ImportAccountActivity]: visibilityChanged oldVisibility=true newVisibility=false
1710574850.283 32284 32284 D VRI[ImportAccountActivity]: Not drawing due to not visible
--------- switch to events
1710574850.285 32284 32284 I wm_on_stop_called: [Token=265120555,Component Name=it.niedermann.nextcloud.deck.ui.ImportAccountActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
stefan-niedermann commented 8 months ago

@desperateCoder we changed this specific part in the latest version, so I can even without stacktrace tell (thanks though for fetching the logs!), that this happend when calling SyncRepository#refreshCapabilities. We get an OfflineException with Reason.OFFLINE as reason.

@pern0x did you used the Deck Android app before? Is it possible that you changed settings like Sync only on Wi-Fi in the past? (We should already catch this case, but it helps to know)

@pern0x does the output of curl https://<username>:<passwod>@example.com/ocs/v2.php/cloud/capabilities?format=json -H 'OCS-APIRequest: true' return some json stuff similar to


{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 200,
      "message": "OK"
    },
    "data": {
      "version": {
        "major": 28,
        "minor": 0,
        "micro": 1,
        "string": "28.0.1",
        "edition": "",
        "extendedSupport": false
      },
    }
  }
}
pern0x commented 8 months ago

Thanks for the quick reply. I did use the deck app before, but I did not activte wifi only. I have delete the storage of the app and uninstall it complete. After both actions the same message was shown. Here is a part of the response from the curl query: {"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"version":{"major":28,"minor":0,"micro":3,"string":"28.0.3","edition":"","extendedSupport":false

pern0x commented 8 months ago

The connection is not possible on mobile or on wifi

stefan-niedermann commented 8 months ago

Are you able to provide a temporary test account on your instance and send the credentials to info@niedermann.it ? This way we might be able to debug the cause.

desperateCoder commented 8 months ago

Hi @pern0x,

I tried it myself with your provided credentials and also got an error. Seems like whoever is answering our request behaves quite strangely:

2024-03-19 12:52:17.823 12432-12651 DeckLog                 it.niedermann.nextcloud.deck.dev     E  (RequestHelper.java:94) onFailure() → com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP request failed with HTTP status-code: 520
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.onResponse(RequestHelper.java:70)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1.lambda$enqueue$0(Retrofit2Helper.java:87)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1.$r8$lambda$n0izO5V3AflskH7z1H8dSLmVKXo(Unknown Source:0)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1$$ExternalSyntheticLambda0.run(Unknown Source:6)
                                                                                                        at java.lang.Thread.run(Thread.java:920)
                                                                                                    Caused by: java.lang.RuntimeException: HTTP StatusCode wasn't 2xx:
                                                                                                    Got [HTTP 520] for Call [GET http://localhost//ocs/v2.php/cloud/capabilities] with Message:
                                                                                                    [java.lang.IllegalArgumentException: Unexpected char 0xfffd at 6 in X-Content-Security-Policy value: allow ���self���;]
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.buildCause(RequestHelper.java:87)
                                                                                                        ... 5 more
2024-03-19 12:52:17.824 12432-12651 DeckLog                 it.niedermann.nextcloud.deck.dev     E  (IResponseCallback.java:16) onError() → it.niedermann.nextcloud.deck.exceptions.OfflineException: Connection rejected
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.ServerCommunicationErrorHandler$Handler.handle(ServerCommunicationErrorHandler.java:52)
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.ServerCommunicationErrorHandler.translateError(ServerCommunicationErrorHandler.java:28)
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.onFailure(RequestHelper.java:95)
                                                                                                        at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.onResponse(RequestHelper.java:70)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1.lambda$enqueue$0(Retrofit2Helper.java:87)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1.$r8$lambda$n0izO5V3AflskH7z1H8dSLmVKXo(Unknown Source:0)
                                                                                                        at com.nextcloud.android.sso.helper.Retrofit2Helper$1$$ExternalSyntheticLambda0.run(Unknown Source:6)
                                                                                                        at java.lang.Thread.run(Thread.java:920)

Whats interesting here are two parts:

HTTP request failed with HTTP status-code: 520

and

 [java.lang.IllegalArgumentException: Unexpected char 0xfffd at 6 in X-Content-Security-Policy value: allow ���self���;]

The funny questionmarks aren't added by me or got added while copying, this is the actual response from the server.

By the HTTP-Status of 520 I guess your server is hidden behind CloudFlare? No idea what magic they are doing here, but this often leads to problems of various manner. Bypassing Cloudflare / Turning it off should your issue. And I guess we'll never know why there are funny bytes in the X-Content-Security-Policy headers.

Sadly we can't do anything on our apps side. If the infrastructure won't let us talk to the server, there's not much we can do about it.

Does this help?

desperateCoder commented 8 months ago

What's really weird though: seems like CURL gets to the server. I'm not sure, but maybe there's actually an issue on our side. I'll have a deeper look at it as soon as I find some time. Would be really nice if we could keep the test account for an additional week or something.

pern0x commented 8 months ago

Hey @desperateCoder , I'm not using cloudflare. The instance is self-hosted on a machine at my home. You can use the test account an additional week.

desperateCoder commented 8 months ago

@pern0x ok, I did some further research and found the following:

when i curl this endpoint, i end up with the following line in the HTTP headers:

X-Content-Security-Policy: allow ‘self’;

In that case the s seem to be the issue. ATTENTION: I first didn't notice, but this is not a valid ', but (french 'accent'/backtick vs. valid single-quote). To me it seems like a misconfiguration of the server, where someone mistook those two.

Is there a configuration on the server side setting this header? usually you'll find something like this in /etc/apache2/conf-available/security.conf or something like that, i guess you can google that for your environement. Please check that and change it to valid single-quotes ('), then just retry. Chances are good that it just starts working then.

EDIT:

In case this fixes your issue, feel free to close this issue and delete the test user (thanks for providing the user!)

pern0x commented 8 months ago

@desperateCoder thank you very much. It solves my issue.