KevinTheJedi Remember I'm working on my local machine with MAMP.
Could you explain more your suggestion?

Another consideration on this error:
IOError: /Users/myuser/www/project-name/osticket/upload/osTicketAttachments/b/b56944cb4722cc5cda9d1e23a3ea7fbc: Unable to open for reading Migrated 0 files

It says it's unable to read the file b56944cb4722cc5cda9d1e23a3ea7fbc but there is no file in that folder. No file in any folders. So the problem could be that it can't write

Thanks

It sounds like a permissions issue to me. Like it cannot write to that folder. Check the permissions on the folder.

Hi
I have a similar problem.

For instance

(root)/attachments/r/rgURzeAHNhxNAMcE2WuqRrsqCe9KmGI0: Unable to read from file

#0 (root)/include/class.file.php(123): FilesystemStorage->passthru()
#1 (root)/include/class.file.php(283): AttachmentFile->sendData()
#2 (root)/file.php(67): AttachmentFile->download()
#3 {main}

I think it's a problem with uppercase and lowercase letters.

    I think it does.
    For example:

    Example 1

    (root)/attachments/P/P0Kr5omJ9Ic-gMyGGEqbk93DanvNWbfo: Unable to read from file

    #0 (root)/include/class.file.php(123): FilesystemStorage->passthru()
    #1 (root)/include/class.file.php(283): AttachmentFile->sendData()
    #2 (root)/file.php(67): AttachmentFile->download()
    #3 {main}

    https://<url helpdesk>

    It does create a 'P' (uppercase) folder (with different permissions) while i already have a 'p' (lowercase) folder. No files in the 'P' folder.

    Example 2

    (root)/attachments/j/jhLNlIgkUH26HUWfDdi4gGwY1AmWwp78: Unable to read from file

    #0 (root)/include/class.file.php(123): FilesystemStorage->passthru()
    #1 (root)/include/class.file.php(283): AttachmentFile->sendData()
    #2 (root)/file.php(67): AttachmentFile->download()
    #3 {main}

    https://<url helpdesk>


    It does create a 'j' (lowercase) folder (with different permissions) while i already have a 'J' (uppercase) folder. No files in the 'j' folder.

    Setup
    osTicket versie v1.17.2 (8fbc7ee)
    Web Server Software Apache/2.4.52 (Ubuntu)
    MySQLversie 10.6.11
    PHPversie 8.0.27
    Attachments on the filesystem plugin v0.3

      stiman

      Yea but if the file starts with a lowercase letter it should go into the lowercase letter folder and vice versa so it should have no issues with finding that file. Also, the permissions on the newer folders are indeed correct, should be 0751.

      Cheers.

        OOH, i see. I did a backup of my old osTicket on Windows en placed it back. All my letter folder where merged by this backup.

        Ok, after some manual work (creating 2 folder per letter (for example 'a' and 'A') and switching over the files starting with a lowercase letter into the lowercase letter folder and vice versa, i have no more errors.

        These are the linux command i used (in example 'a' and 'A'):

        1. first create all missing folders

        2. move correct files to folders

        3. when in folder 'a' >
          find . -name '[[:upper:]]*' -exec mv -t ../A {} +

        4. when in folder 'A'
          find . -name '[[:lower:]]*' -exec mv -t ../a {} +

        You can mark this as solved

        7 months later

        Had the same issue when migrating from AWS to Azure. Upper and lower case files were somehow in the same folder even though i did a direct copy. Moving them to the forrect case sensitive folder was the fix for me as well! Thanks

        Write a Reply...