Error in PKP PN Plugin: Unable to create a temporary file with directory, prefix bagit_

Hi,

All deposits in PKP PLN are showing Error in the status with the message: “Unable to create a temporary file with directory, prefix bagit_”

Any idea how to fix this?

What application are you using?
OJS 3.3.0-17
PKP|PN (PKP Preservation Network) Plugin v2.0.4.5

Hi!

The application is failing to create a temporary file on your system, perhaps the /tmp folder has no space available, you might also check the permissions.

Additionally, please save the lines below on a file test.php in the main directory of your journal:

<?php
print_r([tempnam('', 'bagit_'), tempnam(sys_get_temp_dir(), 'bagit_')]);

Access it on the browser (or run php test.php), then share the output and remove the file. It will be helpful to understand if it’s something that we can fix on the underlying library.

Best,
Jonas Raoni

Hi,
the output is:

Array
(
    [0] => /tmp/phptmp/bagit_70yzzg
    [1] => /tmp/phptmp/bagit_5A9tca
)

Thanks,
Jose Manuel

Hey,
Any ideas on this? I’m stuck and can’t figure it out.
Thanks!

Hi,

we were running some tests, and in one of them, the plugin packaged the issues correctly, and they all moved to the “In Progress” status. Also, the packaged files are showing up just fine in the folder files/journals/1/pln.

Looks like the problem is resolved, this thread can be close.

Thanks!!!

Hi!

Sorry for the delay, I had a long vacation and just now I’m catching up with the messages :slight_smile:

Great that it works.

Best,
Jonas Raoni