Errno::EISDIR (Is a directory - /srv/www/redmine-files/):
Added by Terence Mill over 11 years ago
Always when i try to save any file (attachment) i get the error message
Errno::EISDIR (Is a directory - /srv/www/redmine-files/):
Why is that not working? I have all needed rights and the error message doesn't make sense. Of course its a a directory, what else? Is there missing some filename? subPath ..
cd /srv/www/redmine-files/ ll -a drwxrwxr-x 6 myuser users 286720 27. Mai 18:50 redmine-files
ll -a /home/myuser/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -rwxr-xr-x 1 myuser users 103826 8. Mär 11:20 /home/myuser/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
Starting redmine 2.3.2 server
/home/myuser/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/myuser/.rvm/gems/ruby-2.0.0-p0/gems/ruby-debug-ide-0.4.17.beta17/bin/rdebug-ide --port 42716 --dispatcher-port 50618 -- /home/myuser/Dev_WK/redmine-2.3/script/rails server webrick -b 172.16.107.23 -p 3001 -e production
Replies (2)
RE: Errno::EISDIR (Is a directory - /srv/www/redmine-files/): - Added by Michele Bollini almost 11 years ago
I have exactly the same problem with the v. 2.4.2.
This is what it comes out from the production log
Started POST "/uploads.js?attachment_id=1&filename=viacard.pdf" for <IP Address> at 2014-02-18 18:25:13 +0100 Processing by AttachmentsController#upload as JS Parameters: {"attachment_id"=>"1", "filename"=>"viacard.pdf"} Current user: michele.bollini@met.it (id=1) Completed 500 Internal Server Error in 14.9ms Errno::EISDIR (Is a directory - /opt/redmine-2.4.2/files/): app/controllers/attachments_controller.rb:88:in `upload'
screenshot.png (106 KB) screenshot.png |
RE: Errno::EISDIR (Is a directory - /srv/www/redmine-files/): - Added by Maicon Zucco almost 10 years ago
Hi,
I have exactly the same problem with the v. 2.5.2.
I implemented the solution above:
- Create a empty file on Redmine file dir:
bitnami@tijuca:~$ cd /opt/bitnami/apps/redmine/htdocs/files/ bitnami@tijuca:~$ > empty_file.txt bitnami@tijuca:/opt/bitnami/apps/redmine/htdocs/files$ ls -lh empty_file.txt -rw-r--r-- 1 bitnami bitnami 0 Dez 10 15:44 empty_file.txt
- Define the default value for column disk_filename:
ALTER TABLE `bitnami_redmine`.`attachments` CHANGE COLUMN `disk_filename` `disk_filename` VARCHAR(255) NOT NULL DEFAULT 'empty_file.txt' ;
- Update the actually empty data on column disk_filename:
update attachments set Disk_filename = 'empty_file.txt' where Disk_filename = ''; 16:09:45 update attachments set Disk_filename = 'empty_file.txt' where Disk_filename = '' 73 row(s) affected Rows matched: 73 Changed: 73 Warnings: 0 0.082 sec
Not like a charm, but works.