Truncated unfortunately, I can try to get the whole thing but here's
what I've got so far.


org.apache.commons.vfs2.FileSystemException: Could not determine if file
"sftp://user:***@some.site/"; is writeable.
        at
        
org.apache.commons.vfs2.provider.AbstractFileObject.isWriteable(AbstractFileObject.java:1805)
        at com.hachette.dad.core.VFS.ensureFolder(VFS.java:272)
        at
        
com.hachette.dad.plugin.transport.DADVFSTransportPlugin.openRemoteDirectory(DADVFSTransportPlugin.java:59)
        at
        
com.hachette.dad.distribute.Transport.distributeBatchWithImplementation(Transport.java:175)
        at
        
com.hachette.dad.distribute.Transport.distributeBatch(Transport.java:294)
        at
        
com.hachette.dad.distribute.Transport.distributeBatches(Transport.java:499)
        at
        com.hachette.dad.distribute.Transport.transport(Transport.java:45)
        at
        com.hachette.dad.distribute.Transport.process(Transport.java:39)
        at
        
com.hachette.dad.distribute.DistributeHandler.process(DistributeHandler.java:97)
        at
        
com.hachette.dad.distribute.DistributeHandler.performJob(DistributeHandler.java:138)
        at
        com.hachette.dad.core.JobHandler.runJobWithManifest(JobHandler.java:170)
        at com.hachette.dad.core.JobHandler.runJob(JobHandler.java:195)
        at
        com.hachette.dad.core.JobHandler$Runner.run(JobHandler.java:210)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jcraft.jsch.JSchException: Could not get the groups id of
the current user (error code: 1)
        at
        
org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getGroupsIds(SftpFileSystem.java:263)
        at
        
org.apache.commons.vfs2.provider.sftp.SftpFileObject.getPermissions(SftpFileObject.java:317)
        at
        
org.apache.commons.vfs2.provider.sftp.SftpFileObject.doIsWriteable(SftpFileObject.java:357)
        at
        
org.apache.commons.vfs2.provider.AbstractFileObject.isWriteable(AbstractFileObject.java:1791)
        ... 13 more


and from catalina.out:

2016-01-19 16:24:30,511 TRACE com.blah.dad.core.Log develop - url
sftp^A:****@some.site:2222/
2016-01-19 16:24:30,512 INFO  com.blah.dad.core.Log info - Using
"/opt/tomcat7/temp/vfs_cache" as temporary files store.
2016-01-19 16:24:30,531 DEBUG com.blah.dad.core.Log debug - Skipping
provider "org.apache.commons.vfs2.provider.tar.TarFileProvider" because
required class
"org.apache.commons.compress.archivers.tar.TarArchiveOutputStream" is
not available.
2016-01-19 16:24:30,533 DEBUG com.blah.dad.core.Log debug - Skipping
provider "org.apache.commons.vfs2.provider.bzip2.Bzip2FileProvider"
because required class
"org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream"
is not available.
2016-01-19 16:24:30,541 DEBUG com.blah.dad.core.Log debug - Skipping
provider "org.apache.commons.vfs2.provider.tar.TarFileProvider" because
required scheme "tar" is not available.
2016-01-19 16:24:30,542 DEBUG com.blah.dad.core.Log debug - Skipping
provider "org.apache.commons.vfs2.provider.tar.TarFileProvider" because
required scheme "bz2" is not available.
2016-01-19 16:24:30,544 DEBUG com.blah.dad.core.Log debug - Skipping
provider "org.apache.commons.vfs2.provider.hdfs.HdfsFileProvider"
because required class "org.apache.hadoop.fs.FileSystem" is not
available.
2016-01-19 16:24:30,575 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Connecting
to some.site port 2222
2016-01-19 16:24:30,611 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Connection
established
2016-01-19 16:24:30,645 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Remote
version string: SSH-2.0-CrushFTPSSHD
2016-01-19 16:24:30,646 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Local
version string: SSH-2.0-JSCH-0.1.51
2016-01-19 16:24:30,646 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2016-01-19 16:24:30,647 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
CheckKexes: diffie-hellman-group14-sha1
2016-01-19 16:24:30,705 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_KEXINIT sent
2016-01-19 16:24:30,750 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_KEXINIT received
2016-01-19 16:24:30,750 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256
2016-01-19 16:24:30,750 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server: ssh-dss,ssh-rsa
2016-01-19 16:24:30,751 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server: aes128-cbc,aes128-ctr,3des-cbc,blowfish-cbc,arcfour128,arcfour
2016-01-19 16:24:30,751 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server: aes128-cbc,aes128-ctr,3des-cbc,blowfish-cbc,arcfour128,arcfour
2016-01-19 16:24:30,751 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server:
hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1-96,hmac-sha256,hmac-sha...@ssh.com
2016-01-19 16:24:30,752 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server:
hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1-96,hmac-sha256,hmac-sha...@ssh.com
2016-01-19 16:24:30,752 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server: none,zlib
2016-01-19 16:24:30,752 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server: none,zlib
2016-01-19 16:24:30,752 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server:
2016-01-19 16:24:30,753 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server:
2016-01-19 16:24:30,753 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
2016-01-19 16:24:30,753 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client: ssh-rsa,ssh-dss
2016-01-19 16:24:30,753 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
2016-01-19 16:24:30,753 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
2016-01-19 16:24:30,754 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-01-19 16:24:30,754 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-01-19 16:24:30,754 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client: none
2016-01-19 16:24:30,754 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client: none
2016-01-19 16:24:30,755 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client:
2016-01-19 16:24:30,755 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client:
2016-01-19 16:24:30,755 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
server->client aes128-ctr hmac-md5 none
2016-01-19 16:24:30,755 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - kex:
client->server aes128-ctr hmac-md5 none
2016-01-19 16:24:30,759 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_KEXDH_INIT sent
2016-01-19 16:24:30,759 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - expecting
SSH_MSG_KEXDH_REPLY
2016-01-19 16:24:30,771 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
ssh_rsa_verify: signature true
2016-01-19 16:24:30,772 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Host
'some.site' is known and mathces the RSA host key
2016-01-19 16:24:30,772 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_NEWKEYS sent
2016-01-19 16:24:30,774 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_NEWKEYS received
2016-01-19 16:24:30,775 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_SERVICE_REQUEST sent
2016-01-19 16:24:30,813 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
SSH_MSG_SERVICE_ACCEPT received
2016-01-19 16:24:30,815 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
Authentications that can continue:
publickey,password,keyboard-interactive
2016-01-19 16:24:30,815 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Next
authentication method: publickey
2016-01-19 16:24:30,815 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
Authentications that can continue: password,keyboard-interactive
2016-01-19 16:24:30,816 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Next
authentication method: password
2016-01-19 16:24:30,892 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
Authentication succeeded (password).
2016-01-19 16:24:30,911 DEBUG
org.apache.commons.vfs2.cache.SoftRefFilesCache putFile - putFile:
sftp://user:***@some.site:2222/
2016-01-19 16:29:31,029 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log - Caught an
exception, leaving main loop due to End of IO Stream Read
2016-01-19 16:29:31,051 INFO 
org.apache.commons.vfs2.provider.sftp.SftpClientFactory log -
Disconnecting from some.site port 2222

Thanks,

Ryan



On Tue, Jan 19, 2016, at 06:10 PM, e...@zusammenkunft.net wrote:
> Hello,
> 
> Do you have a full stack trace of that error? I dont think writeability
> is checked by default on login.
> 
> Gruss
> Bernd
> 
> -- 
> http://bernd.eckenfels.net
> 
> -----Original Message-----
> From: Ryan Pugatch <r...@lp0.org>
> To: user@commons.apache.org
> Sent: Di., 19 Jan. 2016 23:04
> Subject: [vfs] FileSystemException: Could not determine if file ... is
> writeable with v2.1
> 
> Hi all,
> 
> I am working with a third party developed application.  In their new
> version, they have moved from vfs 2.0 to 2.1-snapshot.
> 
> Since making that change, we are having trouble making sftp connections.
>  We receive the following error:
> 
> org.apache.commons.vfs2.FileSystemException: Could not determine if file
> "sftp://username:***@some.site.com:2222/"; is writeable.
> 
> Since I control that sftp site, I watched the logs and see that our app
> is able to log in, cwd, and get a directory listing.  We have the same
> issue when trying to drop to other sftp sites.  We do not have this
> issue when we used vfs 2.0.
> 
> Is anyone aware of any changes within vfs that could cause this change
> in behavior between 2.0 and 2.1-snapshot?
> 
> 
> Thanks,
> 
> Ryan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to