Hi, all.Periodically we are getting the following message from osTicket, please tell us what the reason for this error message may be:(root)/files/L/LCknL5weP-FTuun8R0XTvUjUckAUoytE: Unable to open for reading#0 (root)/include/class.file.php(424): FilesystemStorage->write('?PNG????????IHD...')#1 (root)/include/class.thread.php(546): AttachmentFile->save(Array)#2 (root)/include/class.thread.php(523): ThreadEntry->saveAttachment(Array)#3 (root)/include/class.thread.php(510): ThreadEntry->importAttachment(Array)#4 (root)/include/class.thread.php(1089): ThreadEntry->importAttachments(Array)#5 (root)/include/class.thread.php(1122): ThreadEntry->create(Array)#6 (root)/include/class.thread.php(1229): ThreadEntry->add(Array)#7 (root)/include/class.thread.php(1207): Response->add(Array, Array)#8 (root)/include/class.thread.php(176): Response->create(Array, Array)#9 (root)/include/class.ticket.php(1828): Thread->addResponse(Array, Array)#10 (root)/scp/tickets.php(82): Ticket->postReply(Array, Array, '1')#11 {main}Thank you in advanceBest regardsZholaman 

It looks like it tried to open a file (for reading) and could not.

9 days later

Hi, I analyzed this problem and I found that this message is rise every time when somebody respond with picture in message body.

So when a client sends an email with an inline (html) image it causes this error in your system?What email client are they using?

Hi, I mean about messages (answers) from osTicket. When a client sends answer with an inline (html) image from osTicket it causes this error. Please review another one. I can't find source of this problem:

================ Start ======================

(root)/files/5/5AeR9xXdQQnsVjwvUjo8wpjBYPVpS0TI: Unable to open for reading

#0 (root)/include/class.file.php(424): FilesystemStorage->write('?PNG????????IHD...')

#1 (root)/include/class.attachment.php(153): AttachmentFile->save(Array)

#2 (root)/include/ajax.draft.php(125): GenericAttachments->save(Array)

#3 (root)/include/ajax.draft.php(273): DraftAjaxAPI->_uploadInlineImage(Object(Draft))

#4 : DraftAjaxAPI->uploadInlineImage('8170')

#5 (root)/include/class.dispatcher.php(145): call_user_func_array(Array, Array)

#6 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('8170/attach', Array)

#7 (root)/include/class.dispatcher.php(120): Dispatcher->resolve('8170/attach', Array)

#8 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('/draft/8170/att...', NULL)

#9 (root)/scp/ajax.php(186): Dispatcher->resolve('/draft/8170/att...')

#10 {main}

http://osticket.servicedesk.zhaikmunai.kz/upload

================ End =======================

Thank you very much in advance!

HAve you checked the file permissions on yor PHP temporary folder?

7 days later

Hi, yes I checked. The temporary and file folder have 777 permission.

I'm out of ideas.  I will ask the devs to take a look at this thread.

The error is explaining that PHP cannot WRITE to a file in the `(root)/files/5` folder. (Sorry for the confusing error message.) The `5` folder is created automatically to prevent the `files` folder from growing very large, since most filesystems don't tolerate extremely large directories well.It would seem that the automatic permissions created on the new folder don't allow writes by the Apache / PHP process. I would suggest using posix ACLs or the setgid bit on the `(root)/files` folder to assist in allowing PHP write access to the new folders automatically.

OK, I will try.Let me clarify: In our case the root folder is (contains osTicket files) or (created for attached files) ?As I understand root folder is .Thanks!

I did the following. I changed folder owner on to apache.

And set sgid bit on folder (root)/files/

Write a Reply...