In my httpd error log I find a lot of invalid path requests invoked by a cron job or scheduled simpletest being executed periodically.
find: /data/mediamosa/mnt/data/simpletest/still_links//ticket: No such file or directory
find: /data/mediamosa/mnt/still_links//ticket: No such file or directory
The last double trailing slashes are remarkable '//ticket'. But even after changing it to a single slash the directory path is invalid.
Where is this configured so I can change it? Should I have manually created these directories?
Comments
It was a bug. I have fixed it
Posted by forgacs on May 17th, 2011 - 10:24It was a bug. I have fixed it in the 3.x branch.
If you want to fix it in your MediaMosa you should go to sites/all/modules/mediamosa/core/ticket/mediamosa_ticket.class.inc file ticket_cleanup() function.
Insert this two mkdir here:
// Clean up the still ticket styles.
mediamosa_io::mkdir($ticket_still_location . mediamosa_settings::STILL_LINK_STYLE_LOCATION . DIRECTORY_SEPARATOR);
...
// Clean up the stills.
mediamosa_io::mkdir($ticket_still_location . self::TICKET_PATH);
mediamosa_io::exec(
strtr(
'find @ticket_still_location@ticket_path. -maxdepth 1 -mindepth 1 ! -name "*.asx" -name "@wildmatch" -type l -mmin +@ticket_expiration -delete',
...
Hi forgacs,I'm trying to
Posted by UvA-Tom on February 10th, 2012 - 12:36Hi forgacs,
I'm trying to apply your solution but I don't know exactly where to insert what. My mediamosa version is 2.3.17, the file is /sites/all/modules/mediamosa/core/ticket/mediamosa_ticket.inc
Here is the original code section:
// Set the still location.
$ticket_still_location = mediamosa_configuration_storage::ticket_still_location_get();
// Clean up the stills.
mediamosa_io::exec(
strtr(
'find @ticket_still_location/. -maxdepth 1 -mindepth 1 ! -name "*.asx" -name "@wildmatch" -type l -mmin +@ticket_expiration -delete',
array(
'@ticket_still_location' => $ticket_still_location,
'@wildmatch' => str_repeat('?', mediamosa_settings::UUID_LENGTH),
'@ticket_expiration' => (int)(mediamosa_settings::TICKET_EXPIRATION_STILL / 60),
)
)
);
// Clean up the stills.
mediamosa_io::exec(
strtr(
'find @ticket_still_location/@ticket_path. -maxdepth 1 -mindepth 1 ! -name "*.asx" -name "@wildmatch" -type l -mmin +@ticket_expiration -delete',
array(
'@ticket_path' => self::TICKET_PATH,
'@ticket_still_location' => $ticket_still_location,
'@wildmatch' => str_repeat('?', mediamosa_settings::UUID_LENGTH),
'@ticket_expiration' => (int)(mediamosa_settings::TICKET_EXPIRATION_STILL / 60),
)
)
);
Do you have a patch file for this?
Thank your for your help.
Tom, I have created and
Posted by forgacs on February 15th, 2012 - 15:41Tom,
I have created and attached a patch for you. Would you test it?
Hello Forgacs, I've tested
Posted by UvA-Tom on February 28th, 2012 - 14:51Hello Forgacs,
I've tested your patch and it seems to be working. The error log doesn't contain 'no such file or directory' anymore. Thank you very much for this.
Bye, Tom