While I was on vacation, my CommonsHelper stopped working for direct upload. Here's what happens:
* CommonsHelper (PHP) downloads an image to /tmp * CommonsHelper invokes upload bot written in Perl * Perl dies: Can't open file /tmp/chHHaikY-dir/dummy.jpg : No such file or directory at /opt/ts/perl/5.10/lib/vendor_perl/5.10/LWP/UserAgent.pm line 394
However, the file exists at that point in time (this one still does on wolfsbane, feel free to check), and is readable for everyone.
Any idea what's going on?
Magnus
On Fri, Sep 4, 2009 at 11:12 AM, Magnus Manske magnusmanske@googlemail.comwrote:
While I was on vacation, my CommonsHelper stopped working for direct upload. Here's what happens:
- CommonsHelper (PHP) downloads an image to /tmp
- CommonsHelper invokes upload bot written in Perl
- Perl dies:
Can't open file /tmp/chHHaikY-dir/dummy.jpg : No such file or directory at /opt/ts/perl/5.10/lib/vendor_perl/5.10/LWP/UserAgent.pm line 394
However, the file exists at that point in time (this one still does on wolfsbane, feel free to check), and is readable for everyone.
Any idea what's going on?
Yup. PHP exits and deletes the temp file before perl bot can start. Use http://de.php.net/move_uploaded_file($_FILES%5B%27userfile%27%5D%5B%27tmp_na..."); to prevent PHP from deleting the temp file.
Marco
On Fri, Sep 4, 2009 at 11:12 AM, Magnus Manske magnusmanske@googlemail.comwrote:
However, the file exists at that point in time (this one still does on wolfsbane, feel free to check), and is readable for everyone.
Oh sorry, overread this one. Maybe it is because commonshelper and your bot run on different servers or access rights are somehow else broken? River, can you please take a look at this?
Marco
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Marco Schuster:
River, can you please take a look at this?
we have 5 Toolserver admins who are quite capable of investigating problems; not everything has to be done by me.
- river.
On Fri, Sep 4, 2009 at 12:07 PM, River Tarnell river@loreley.flyingparchment.org.uk wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Marco Schuster:
River, can you please take a look at this?
we have 5 Toolserver admins who are quite capable of investigating problems; not everything has to be done by me.
If it's nothing obvious (probably related to the Solaris switch), I'll file a JIRA bug.
Cheers, Magnus
toolserver-l@lists.wikimedia.org