Ask Your Question

Could not rename temporary file: Permission denied

asked 2014-04-09 23:02:47 -0500

dancewind gravatar image

When updating a file in Windows agent, there occurred this error

change from {md5}18ce47723d5c39bf8a0ea5ceb6a91409 to {md5}16d4a049890467023cf83dccbc8899d5 failed: Could not rename temporary file D:/DXP/AIM/RenewLibraryGuid.exe.puppettmp_4373 to D:/DXP/AIM/RenewLibraryGuid.exe: Permission denied - D:/DXP/AIM/RenewLibraryGuid.exe.puppettmp_4373 or D:/DXP/AIM/RenewLibraryGuid.exe at /userap/paas_ap/puppet/modules/aim_dxp/manifests/init.pp:48

The script is: `

            file {"${dxp_folder}/RenewLibraryGuid.exe":
            ensure => present,
            source => "puppet:///modules/${dxp_name}/RenewLibraryGuid.exe",
            require => File["${dxp_folder}"],
            mode => "0770",

There is other files (same script) updating successful, what possible reasons might cause the permission issue?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-04-10 04:27:43 -0500

ffrank gravatar image

The file D:/DXP/AIM/RenewLibraryGuid.exe is already in existence, and the user running puppet does not have permission to overwrite it.

In theory, it might as well be an issue with writing to the D:/DXP/AIM/ directory, but the tempfile was apparently created without issue, so this is not likely.

edit flag offensive delete link more

answered 2014-07-21 21:46:26 -0500

dancewind gravatar image

At the end, we deleted all the target files and directories. Re-executing puppet sync then the problem disappeared..

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-04-09 23:02:47 -0500

Seen: 663 times

Last updated: Apr 10 '14