error upon transferring particular files over ssh

75 views
Skip to first unread message

Zak Kohler

unread,
Apr 8, 2015, 9:52:32 PM4/8/15
to tacitd...@googlegroups.com
using legacy protocol option because it fails to connect otherwise.
every time it seems that the same 7 files never sync, im sure it is a filename character thing
here is one example:

FINER/dk.tacit.android.foldersync 11076 Mar 30, 2015 10:34:42 AM FileSyncEngine: Syncing file: **NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3 (/home/y2k/musik/yt/**NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3)
FINER/dk.tacit.android.foldersync 11077 Mar 30, 2015 10:34:42 AM FileSyncEngine: ----------------------------------------------------------------------------
FINER/dk.tacit.android.foldersync 11078 Mar 30, 2015 10:34:42 AM FileSyncEngine: File does not exist at target location
FINER/dk.tacit.android.foldersync 11079 Mar 30, 2015 10:34:42 AM SyncedFilesController: No sync info found in database: /storage/extSdCard/Music/yt/**NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3
FINER/dk.tacit.android.foldersync 11080 Mar 30, 2015 10:34:42 AM FileSyncEngine: File not previously synced
FINER/dk.tacit.android.foldersync 11081 Mar 30, 2015 10:34:42 AM SyncTransferFileTask: Syncing file: **NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3
FINER/dk.tacit.android.foldersync 11082 Mar 30, 2015 10:34:42 AM RootUtil: Command test -f "/storage/extSdCard/Music/yt/**NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3.tacitpart" && echo "Success" completed, exitCode: 1
FINER/dk.tacit.android.foldersync 11083 Mar 30, 2015 10:34:42 AM RootUtil: Command test -h "/storage/extSdCard/Music/yt/**NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3.tacitpart" && echo "Success" completed, exitCode: 1
SEVERE/dk.tacit.android.foldersync 11084 Mar 30, 2015 10:34:42 AM ProviderBase: Error getting file: **NEW DUBSTEP** Phantom Sparx-Cybernetic Organism.MP3
4: 
at com.jcraft.jsch.ChannelSftp.get(SourceFile:1513)
at com.jcraft.jsch.ChannelSftp.get(SourceFile:1266)
at nj.c(SourceFile:334)
at ka.b(SourceFile:128)
at jd.a(SourceFile:261)
at jd.a(SourceFile:100)
at iq.a(SourceFile:706)
at iq.a(SourceFile:168)
at iz.run(SourceFile:148)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.ArrayIndexOutOfBoundsException: src.length=32768 srcPos=108 dst.length=262144 dstPos=0 length=262144
at java.lang.System.arraycopy(Native Method)
at com.jcraft.jsch.Buffer.getByte(SourceFile:148)
at com.jcraft.jsch.Buffer.getString(SourceFile:188)
at com.jcraft.jsch.ChannelSftp.glob_remote(SourceFile:2734)
at com.jcraft.jsch.ChannelSftp.isUnique(SourceFile:2936)
at com.jcraft.jsch.ChannelSftp.get(SourceFile:1290)
... 11 more

Zak Kohler

unread,
Apr 8, 2015, 9:55:52 PM4/8/15
to tacitd...@googlegroups.com
interestingly this file also fails, maybe file permissions........:
FINER/dk.tacit.android.foldersync 11097 Mar 30, 2015 10:34:46 AM FileSyncEngine: ----------------------------------------------------------------------------
FINER/dk.tacit.android.foldersync 11098 Mar 30, 2015 10:34:46 AM FileSyncEngine: Syncing file: 05 Carnation.mp3 (/home/y2k/musik/yt/05 Carnation.mp3)
FINER/dk.tacit.android.foldersync 11099 Mar 30, 2015 10:34:46 AM FileSyncEngine: ----------------------------------------------------------------------------
FINER/dk.tacit.android.foldersync 11100 Mar 30, 2015 10:34:46 AM FileSyncEngine: File does not exist at target location
FINER/dk.tacit.android.foldersync 11101 Mar 30, 2015 10:34:46 AM SyncedFilesController: No sync info found in database: /storage/extSdCard/Music/yt/05 Carnation.mp3
FINER/dk.tacit.android.foldersync 11102 Mar 30, 2015 10:34:46 AM FileSyncEngine: File not previously synced
FINER/dk.tacit.android.foldersync 11103 Mar 30, 2015 10:34:46 AM SyncTransferFileTask: Syncing file: 05 Carnation.mp3
FINER/dk.tacit.android.foldersync 11104 Mar 30, 2015 10:34:46 AM RootUtil: Command test -f "/storage/extSdCard/Music/yt/05 Carnation.mp3.tacitpart" && echo "Success" completed, exitCode: 1
FINER/dk.tacit.android.foldersync 11105 Mar 30, 2015 10:34:46 AM RootUtil: Command test -h "/storage/extSdCard/Music/yt/05 Carnation.mp3.tacitpart" && echo "Success" completed, exitCode: 1
SEVERE/dk.tacit.android.foldersync 11106 Mar 30, 2015 10:34:46 AM ProviderBase: Error getting file: 05 Carnation.mp3
4: 
at com.jcraft.jsch.ChannelSftp._stat(SourceFile:2208)
at com.jcraft.jsch.ChannelSftp.get(SourceFile:1294)
at com.jcraft.jsch.ChannelSftp.get(SourceFile:1266)
at nj.c(SourceFile:334)
at ka.b(SourceFile:128)
at jd.a(SourceFile:261)
at jd.a(SourceFile:100)
at iq.a(SourceFile:706)
at iq.a(SourceFile:168)
at iz.run(SourceFile:148)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=32768; regionStart=0; regionLength=540292651
at java.util.Arrays.checkOffsetAndCount(Arrays.java:1732)
at java.io.PipedInputStream.read(PipedInputStream.java:283)
at com.jcraft.jsch.ChannelSftp.fill(SourceFile:2882)
at com.jcraft.jsch.ChannelSftp.fill(SourceFile:2874)
at com.jcraft.jsch.ChannelSftp._stat(SourceFile:2193)
... 12 more

Zak Kohler

unread,
Apr 8, 2015, 11:36:05 PM4/8/15
to tacitd...@googlegroups.com
well the remote files exists and has normal owner:group and permissions. The local files do not exist.
I recommend updating the sftp library, seems it has had a recent update, and at least one mention of the array bounds error is in the changelog.


On Wednesday, April 8, 2015 at 9:52:32 PM UTC-4, Zak Kohler wrote:

Zak Kohler

unread,
Apr 22, 2015, 10:17:09 AM4/22/15
to tacitd...@googlegroups.com
well even weirder. I edited my server to work with the non legacy server..


some of the files that previously fail  send, but some of them do not. The good news that the sync does not abort anymore after failing to send those files...

yes I didn't even notice that there were gigs of files not being backed up because the sync was silently aborting for some reason.

On Wednesday, April 8, 2015 at 9:52:32 PM UTC-4, Zak Kohler wrote:
Reply all
Reply to author
Forward
0 new messages