-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied @ unlink_internal #133
Comments
I've used an interactive console and called the |
Sounds like a file permissions issue. Unfortunately I know absolutely nothing about file permissions on Windows, so I'm of no help to you here :( |
Yeah, seems so. I am just wondering why the |
Could it be that you're running the console process as a different user/group or something than the server? |
My setup is much simpler than that: the app is running on my local Windows machine. I've added the better_errors gem (https://github.com/charliesome/better_errors) that provides an interactive console in the browser so it should work as the same user (as it is the same Ruby process). I've found an even stranger thing. Here is the output from the console:
so it works from time to time.... Will try to research that further. |
Any progress on this? Would be nice to see a resolution on this issue, but I don't know how we can proceed from here. |
@jnicklas Unfortunately, no. If you have time to hack on this, there are free VMs with Windows here: https://www.modern.ie/en-us/virtualization-tools#downloads |
I'm closing this issue for now. I have neither the time nor the expertise to look into this. I'll reopen this if it becomes evident that other people are having the same problem. Please comment here if you feel this needs to be reopened. |
Not sure if this is helpful, but I had the same problem using Jekyll on Windows when trying to build a file with no extension (called |
Hm, maybe. However manual creation of such files works and what bothers me is that it also works from time to time in the console... |
I'm also getting this error using Devise and Refile. Using Ruby 2.1.5, Rails 4.2.3, Windows 7 x64 (aka RoR on hard mode) |
I'm also getting this error on Refile. Using Ruby 2.1.5 32-bit (RailsInstaller 3.1.0), Rails 4.2.4, Windows 10 x64 |
Same, don't known why but change file_system.rb in windows like below will at least temp solve it by leaving some tmp file at # Delete a file from this backend
#
# @param [Sring] id The id of the file
# @return [void]
verify_id def delete(id)
FileUtils.rm(path(id)) if exists?(id) && !Gem.win_platform?
end |
More elegent solution maybe for ruby 2.3 is using new File::SHARE_DELETE when open file. |
Hi, unfortunately I'm having the same issue. |
@Lexvum running
|
@Eric-Guo It works, thanks for your direction. |
Hello.
I've just integrated the gem into my project and I am getting the
Permission denied @ unlink_internal
error while trying to upload the file. I have a very basic setup: a User model (with Devise) that has an avatar column. Model:View:
I've also added the
avatar
to the list of permitted params.Full stack trace:
So the error seems to appear when the gem tries to remove the cache file
F:/rails/my/sitepoint/Synergy/tmp/uploads/cache/3051ff6b0198659c654e52df592264d7bce83341723f5b35c629fee2a3f0
The file
3051ff6b0198659c654e52df592264d7bce83341723f5b35c629fee2a3f0
does exist in the directory and I have even provided all permissions for everyone on this directory.Using Ruby 2.1.5, Rails 4.2.0. Working on Windows 7 x64.
The text was updated successfully, but these errors were encountered: