os.link() giving me OSError: [Errno 1] Operation not permitted

Bug #1484843 reported by psychok7
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pylockfile
Expired
Undecided
Unassigned

Bug Description

in the aquire() function in the os.link() it's giving me OSError: [Errno 1] Operation not permitted

i changed it to shutil.copy2 just for testing and it worked so for some reason os.link() its not doing what is supposed to do.

I am sure i am in the right directory because i can see the temporary unique file being generated, it just not able to os.link() and i have no clue why (permissions should be right).

I am using lockfile==0.10.2 and python==2.7.6 and Ubuntu 14.04 LTS

psychok7 (nunok7)
description: updated
Revision history for this message
psychok7 (nunok7) wrote :

Ok i think i finally got to the bottom of this. So i am using Vagrant 1.7.4 but there appears to be a bug with the symlink creation as reported here mitchellh/vagrant#713

If i do os.link() outside my vagrant it works

Revision history for this message
psychok7 (nunok7) wrote :

i just realized that we can use MkdirLockFile as an alternative to the default FileLock

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

So we are good then? (nothing to fix in pylockfile)

Changed in pylockfile:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pylockfile because there has been no activity for 60 days.]

Changed in pylockfile:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.