No such file or directory

13May2011

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

It 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

Hi 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

Tom,

I have created and attached a patch for you. Would you test it?

AttachmentSize
no_such_file.txt 1.38 KB

Hello Forgacs, I've tested

Hello 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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.