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

Unable to save to syncthing: 0 files copied to Syncthing #2078

Open
franzos opened this issue Apr 22, 2024 · 0 comments
Open

Unable to save to syncthing: 0 files copied to Syncthing #2078

franzos opened this issue Apr 22, 2024 · 0 comments

Comments

@franzos
Copy link

franzos commented Apr 22, 2024

Here's what I'm doing:

  1. Open the share dialog in any application
  2. Select Syncthing -> new dialog opens "Save to Syncthing" (No sub folder is selected)
  3. Press "Save"

Message: 0 files copied to Syncthing followed by an error message.

1713776986.413 31315 31315 I wm_on_top_resumed_lost_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=topStateChangedWhenResumed]
1713776986.419 31315 31315 I wm_on_paused_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=performPause,time=4ms]
--------- switch to main
1713776986.423 31315 31315 D VRI[ShareActivity]: visibilityChanged oldVisibility=true newVisibility=false
1713776986.435 31315 31315 D VRI[ShareActivity]: Not drawing due to not visible
--------- switch to events
1713776986.436 31315 31315 I wm_on_stop_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=STOP_ACTIVITY_ITEM,time=0ms]
1713776997.313 31315 31315 I wm_on_restart_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=performRestart,time=0ms]
1713776997.314 31315 31315 I wm_on_start_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=handleStartActivity,time=0ms]
1713776997.324 31315 31315 I wm_on_resume_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=RESUME_ACTIVITY,time=9ms]
1713776997.324 31315 31315 I wm_on_top_resumed_gained_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=topWhenResuming]
--------- switch to main
1713776997.334 31315 31315 D VRI[ShareActivity]: Start draw after previous draw not visible
--------- switch to events
1713777010.655 31392 31392 I auditd  : avc=type=1400 audit(0.0:10611): avc:  denied  { bind } for  comm="libsyncthing.so" scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
--------- switch to main
1713777010.655 31392 31392 W libsyncthing.so: type=1400 audit(0.0:10611): avc:  denied  { bind } for  scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
--------- switch to events
1713777010.655 31392 31392 I auditd  : avc=type=1400 audit(0.0:10612): avc:  denied  { bind } for  comm="libsyncthing.so" scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
--------- switch to main
1713777010.655 31392 31392 W libsyncthing.so: type=1400 audit(0.0:10612): avc:  denied  { bind } for  scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
--------- switch to events
1713777010.655 31392 31392 I auditd  : avc=type=1400 audit(0.0:10613): avc:  denied  { bind } for  comm="libsyncthing.so" scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
--------- switch to main
1713777010.655 31392 31392 W libsyncthing.so: type=1400 audit(0.0:10613): avc:  denied  { bind } for  scontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tcontext=u:r:untrusted_app_32:s0:c146,c256,c512,c768 tclass=netlink_route_socket permissive=0 app=com.nutomic.syncthingandroid
1713777027.566 31315 32297 E ShareActivity: Can't find input file "content://media/external/images/media/1000000759" to copy
1713777027.566 31315 32297 E ShareActivity: java.io.FileNotFoundException: ~/Dropbox/IMG_20240422_073927_888.jpg: open failed: ENOENT (No such file or directory)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.IoBridge.open(IoBridge.java:574)
1713777027.566 31315 32297 E ShareActivity:     at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
1713777027.566 31315 32297 E ShareActivity:     at com.google.common.io.Files$FileByteSink.openStream(Files.java:197)
1713777027.566 31315 32297 E ShareActivity:     at com.google.common.io.Files$FileByteSink.openStream(Files.java:185)
1713777027.566 31315 32297 E ShareActivity:     at com.google.common.io.ByteSink.writeFrom(ByteSink.java:127)
1713777027.566 31315 32297 E ShareActivity:     at com.nutomic.syncthingandroid.activities.ShareActivity$CopyFilesTask.doInBackground(ShareActivity.java:322)
1713777027.566 31315 32297 E ShareActivity:     at com.nutomic.syncthingandroid.activities.ShareActivity$CopyFilesTask.doInBackground(ShareActivity.java:281)
1713777027.566 31315 32297 E ShareActivity:     at android.os.AsyncTask$3.call(AsyncTask.java:394)
1713777027.566 31315 32297 E ShareActivity:     at java.util.concurrent.FutureTask.run(FutureTask.java:264)
1713777027.566 31315 32297 E ShareActivity:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
1713777027.566 31315 32297 E ShareActivity:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
1713777027.566 31315 32297 E ShareActivity:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
1713777027.566 31315 32297 E ShareActivity:     at java.lang.Thread.run(Thread.java:1012)
1713777027.566 31315 32297 E ShareActivity: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.Linux.open(Native Method)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
1713777027.566 31315 32297 E ShareActivity:     at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8418)
1713777027.566 31315 32297 E ShareActivity:     at libcore.io.IoBridge.open(IoBridge.java:560)
1713777027.566 31315 32297 E ShareActivity:     ... 12 more
1713777027.574 31315 31315 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@14b7fc9
--------- switch to events
1713777027.599 31315 31315 I wm_on_top_resumed_lost_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=topStateChangedWhenResumed]
1713777027.601 31315 31315 I wm_on_paused_called: [Token=247654173,Component Name=com.nutomic.syncthingandroid.activities.ShareActivity,Reason=performPause,time=2ms]

This has been happening for 1+ year on my Android 8 device and I assumed it's a problem on my end, but it continues to happen on a newer Android 14 device, so I decided to report it.

Version Information

  • Syncthing v1.27.6
  • Android 14 Graphene (and Android 8 Vanilla)

I've been using another application "Save locally" as workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant