Can't upload images

165 views
Skip to first unread message

Roy C

unread,
Jun 21, 2017, 12:20:01 PM6/21/17
to Canvas LMS Users
The images are going into /canvas/tmp/files but they will not updating on the webpage.


Here are the results:

#382 Permission denied @ rb_sysopen - /tmp/attachment_fu/20170621-4399-f7j8rb82420...

category: Errno::EACCES
created at: 2017-06-21 09:56:42 -0600

attempts: 2 
handler: --- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:Attachment 38 method: :create_thumbnail_size args: - :thumb fail_cb: permanent_fail_cb: 
hostname: ip-
id: 2570 
job_tag: Attachment#create_thumbnail_size 
max_attempts: 15 
pid: 4399 
priority: 10 
process_type: BackgroundJob 
run_at: 2017-06-21 15:56:40 UTC 
source: 
strand: attachment_thumbnail_10000000000038_thumb 
worker_name: ip- 
---------------------------------------------------
I ran sudo chown canvasuser:canvasuser -R /tmp/attachment_fu and sudo chown canvasuser:canvasuser -R /var/canvas/tmp

Any ideas?

Irsandi Hasan

unread,
Jun 27, 2017, 1:05:49 PM6/27/17
to Canvas LMS Users
i've same problem, trying fixing permission & ownership /var/canvas/tmp/
but, the problem still appear, but I can't find any error in my log, it's weird...

Antonio Miguel Cobos Fernández

unread,
May 22, 2023, 4:20:31 AM5/22/23
to Canvas LMS Users
I have the same error. is it fixed?

Andrey Gangan

unread,
May 22, 2023, 4:55:06 AM5/22/23
to Canvas LMS Users
try to remove  /tmp/attachment_fu
it's in system tmp, not in project's tmp folder

понедельник, 22 мая 2023 г. в 11:20:31 UTC+3, Antonio Miguel Cobos Fernández:

Antonio Miguel Cobos Fernández

unread,
May 22, 2023, 5:23:26 AM5/22/23
to Canvas LMS Users
it was that, I was changing the project folder, not the system folder

thank you so much

Andrey Gangan

unread,
May 22, 2023, 5:28:01 AM5/22/23
to Canvas LMS Users
how did you change this temp upload folder?

понедельник, 22 мая 2023 г. в 12:23:26 UTC+3, Antonio Miguel Cobos Fernández:

Antonio Miguel Cobos Fernández

unread,
May 22, 2023, 5:40:29 AM5/22/23
to Canvas LMS Users
i change the folder with: chown -R www-data:www-data attachment_fu/

I suppose that in the first installation it was created with the wrong owner and then it has not been modified until executing this command

Andrey Gangan

unread,
May 22, 2023, 5:41:39 AM5/22/23
to Canvas LMS Users
so fixed?

понедельник, 22 мая 2023 г. в 12:40:29 UTC+3, Antonio Miguel Cobos Fernández:

Antonio Miguel Cobos Fernández

unread,
May 22, 2023, 5:46:24 AM5/22/23
to Canvas LMS Users
yes, is working
Reply all
Reply to author
Forward
0 new messages