Steven,
Also, can you send us a server log excerpt for this delete?
--cro
On Jan 28, 2009, at 11:43 AM, C. R. Oldham wrote:
Steven,
Thanks for the detailed stacktrace. This is interesting, it really
sounds like a difference between Solaris and the Mac. If I have a
minute today I'll look at the paperclipped source and see if I can
figure out what's going on. It's acting like the extension is
trying to delete the directory before all the files have been
removed. Maybe Solaris throws an EEXIST when an rmdir is attempted
on a non-empty directory but Linux/Mac throws something else, or
nothing.
Unfortunately I don't have access to a Solaris machine to test on.
Solaris has a reputation for being "different"--most of the Mac and
Linux command line tools and libraries are pretty similar, but the
Solaris libraries have been their own forever. The first thing I
would do when encountering a Solaris box that I was responsible for
was to install most of the Gnu suite.
--cro
On Jan 28, 2009, at 11:29 AM, Steven Southard wrote:
I really like this extension. I can see a lot of good in it that
my clients would like but not being able to delete files is a
problem. It works great on my Mac but then when I upload it to
Joyent's Solaris servers it just doesn't delete all the files. I
don't really understand what the problem is. It's something to do
with the folder or files existing maybe when they shouldn't be. It
seems to be related more to the environment and paperclip then the
extension itself.
The problem is I get an application error and in the logs it says:
Errno::EEXIST (File exists - /users/home/..../web/public/assets/7):
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:264:in `rmdir'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `each'
/usr/local/lib/ruby/1.8/fileutils.rb:263:in `rmdir'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/
paperclip/storage.rb:62:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/
paperclip/storage.rb:52:in `each'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/
paperclip/storage.rb:52:in `flush_deletes'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/
paperclip.rb:301:in `send'
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/
paperclip.rb:301:in `destroy_attached_files'
I wish I understood this better or knew how to work around it. On
my mac it seems to delete all the files and the folder without
issue. On Joyent it deletes one file and causes an application
error. If I refresh 4 times it will delete all the files and
continue on but without deleting the folder.
I'm using the most recent release of paperclipped and I've tried it
with 0.6.9 and .7rc2 but it doesn't work. I can't believe I'm the
only experiencing this problem or at least that will experience it.
It's a good extension and to those out there that are able to use
it I'm envious. I hope someone is able to fix this someday and
I'll try it again.
By the way, is there a clean way to remove the paperclipped
extension?
Steven
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant