Start a new topic

LDAP users cannot post files

plee@virtualpremise.com @ Fri Mar 28 12:22:06 EET 2014
Have a situation where LDAP authenticated users are unable to post files to directories for which they have permissions. (with the exception of their HOME directory.)

These LDAP users are inheriting their permissions from a template user account.

Users created directly in user manager to not experience the same problem. They are able to upload and download files without error.

The error being reported is "550 File in use"

Wondering what is causing this problem.

Here is a log of a session where this occurred:

03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *230 Password OK. Connected. logged in*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *PWD *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *257 "/" PWD command successful.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *CWD /Clients_STAGE/ftp_arlcap_stage/BatchCreation/*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *250 "/Clients_STAGE/ftp_arlcap_stage/BatchCreation/" CWD command successful.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *NOOP *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *200 Command OK. (NOOP)*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *CWD /Clients_STAGE/ftp_arlcap_stage/BatchCreation/*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *250 "/Clients_STAGE/ftp_arlcap_stage/BatchCreation/" CWD command successful.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *NOOP *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *200 Command OK. (NOOP)*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *CWD /Clients_STAGE/ftp_arlcap_stage/BatchCreation/*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *250 "/Clients_STAGE/ftp_arlcap_stage/BatchCreation/" CWD command successful.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *TYPE A*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *200 Command ok : ASCII type selected.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *PASV *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *227 Entering Passive Mode (10,1,1,71,248,60)*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *LIST *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *150 Opening data connection for file list.*
03/28/2014 11:02:40 AM|[469914:ryu:10.1.1.65] WROTE: drwxrwxrwx 1 user group 1 Mar 28 09:44 Import
03/28/2014 11:02:40 AM|[469914:ryu:10.1.1.65] WROTE: drwxrwxrwx 1 user group 1 Mar 28 08:57 Processed
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *226 Directory transfer complete. (generate:328ms)(send:437ms)*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *NOOP *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *200 Command OK. (NOOP)*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *CWD /Clients_STAGE/ftp_arlcap_stage/BatchCreation/*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *250 "/Clients_STAGE/ftp_arlcap_stage/BatchCreation/" CWD command successful.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *TYPE I*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *200 Command ok : Binary type selected.*
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *PASV *
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *227 Entering Passive Mode (10,1,1,71,248,69)*
[color=darkred]03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] READ : *STOR Lease_good.csv*
03/28/2014 11:02:40 AM|ryu:(469914)-10.1.1.65 (control):STOR
03/28/2014 11:02:40 AM|java.io.IOException: File in use:\prod.virtualpremise.comtpStageClientstp_arlcap_stageBatchCreationLease_good.csv
03/28/2014 11:02:40 AM|com.crushftp.client.RandomOutputStream.:30
03/28/2014 11:02:40 AM|com.crushftp.client.FileClient.upload3:472
03/28/2014 11:02:40 AM|com.crushftp.client.GenericClient.upload2:425
03/28/2014 11:02:40 AM|com.crushftp.client.GenericClient.upload:400
03/28/2014 11:02:40 AM|com.crushftp.client.GenericClientMulti.upload:143
03/28/2014 11:02:40 AM|crushftp.server.STOR_handler.run:419
03/28/2014 11:02:40 AM|crushftp.server.Worker.run:32
03/28/2014 11:02:40 AM|java.lang.Thread.run:-1
03/28/2014 11:02:40 AM|/Clients_STAGE/ftp_arlcap_stage/BatchCreation/
03/28/2014 11:02:40 AM|Lease_good.csv
03/28/2014 11:02:40 AM|[469914:ryu:10.1.1.65] WROTE: Error with files (path):/Clients_STAGE/ftp_arlcap_stage/BatchCreation/
03/28/2014 11:02:40 AM|[469914:ryu:10.1.1.65] WROTE: Error with files (name):Lease_good.csv
03/28/2014 11:02:40 AM|[FTP:469914:ryu:10.1.1.65] WROTE: *550 File in use:\prod.virtualpremise.comtpStageClientstp_arlcap_stageBatchCreationLease_good.csv ("/Clients_STAGE/ftp_arlcap_stage/BatchCreation/Lease_good.csv") STOR*
03/28/2014 11:02:40 AM|[469914:ryu:10.1.1.65] WROTE: Error:java.io.IOException: File in use:\prod.virtualpremise.comtpStageClientstp_arlcap_stageBatchCreationLease_good.csv[/color]
03/28/2014 11:02:40 AM|[FTP:lookup:21][469915] Accepting connection from: 10.1.1.65:2252
03/28/2014 11:02:40 AM|[FTP:469915::10.1.1.65] READ : *USER ryu*
03/28/2014 11:02:40 AM|SQL:Loading inheritance from DB

1 person has this question

spinkb @ Fri Mar 28 12:49:18 EET 2014
This essentially means the user is inheriting between multiple users with access to the exact same vfs. So at login multiple vfs are merged together for the same folder and uploading attempts to open the same file twice causing the failure.

Avoid the duplicate vfs scenario being added to the user from group inheritance or from the template user configured in the plugin.

Thanks,
Ben
plee@virtualpremise.com @ Fri Mar 28 14:51:01 EET 2014
So it seems I had the same template user identified in both the LDAP role definition, and the Import Settings from User in the CrushLDAP plug-in profile settings for the affected users. Removed the entry from the role, and things began working properly. Thanks.
Login to post a comment