Page 1 of 1

SOLVED: advanced download error

Posted: Sat May 15, 2010 10:14 am
by rampage537
I go to the pictures section and then into an album - then I go to advanced and change to download mode
in download mode I select say 5 pictures and download as a tar - then I get the error msg

here is the error

Code: Select all

reated archive doesnt exists Archiver returned an error! Return value was: 2 Is the /sql/tmp/ directory writeable? tar -cf "tmp/linpha_download_dc313t7bdvghs8597squ89fdi7_0.tar" "albums/pictures/2010/DSCN2942.JPG" "albums/pictures/2010/DSCN2935.JPG" "albums/pictures/2010/DSCN0548.JPG" "albums/pictures/2010/DSCN2951.JPG" "albums/pictures/2010/2000 006.jpg" "albums/pictures/2010/DSCN2947.JPG" "albums/pictures/2010/DSCN2944.JPG" "albums/pictures/2010/DSCN2953.JPG" "albums/pictures/2010/DSCN2948.JPG" "albums/pictures/2010/DSCF3346.JPG" "albums/pictures/2010/DSCN2957.JPG" "albums/pictures/2010/DSC01468.JPG" "albums/pictures/2010/DSCN2937.JPG" "albums/pictures/2010/DSCN2936.JPG" "albums/pictures/2010/DSCN2943.JPG" Array ( )

Re: advanced download error

Posted: Sat May 15, 2010 10:20 am
by kmharris1980
Hi I have the same error - got the following msg:

Created archive doesnt exists
Archiver returned an error!
Return value was: 2
Is the /sql/tmp/ directory writeable?
tar -cf "tmp/linpha_download_h2irdb0m2r6o27qhjni6eai272_2.tar" "albums/pictures/2002/2002_01_10 109.jpg" "albums/pictures/2002/2002_01_10 108.jpg" "albums/pictures/2002/2002_01_10 107.jpg" Array
(
)


Anyone have any ideas or sugestions - a permission issue somewhere?

Thanks.

Re: advanced download error

Posted: Sat May 15, 2010 12:00 pm
by rampage537
got it to work, it appears that the /tmp folder is missing

here is what i did

as root

Code: Select all

mkdir /var/hda/web-apps/linpha/html/sql/tmp chown apache /var/hda/web-apps/linpha/html/sql/tmp chgrp users /var/hda/web-apps/linpha/html/sql/tmp chmod 777 /var/hda/web-apps/linpha/html/sql/tmp
Download mode worked after doing this

Re: advanced download error

Posted: Sat May 15, 2010 1:33 pm
by gboudreau
App install updated to create that directory, and two others (caches) that were missing.
Also fixed a couple of warnings that appeared on screen due to the use of deprecated function like ereg().

Re: advanced download error

Posted: Sat May 15, 2010 1:41 pm
by rampage537
thanks gboudreau for the fix :)

Re: advanced download error

Posted: Sun May 16, 2010 6:44 am
by kmharris1980
Thanks so much for the fix guys awesome work. I've got to say the support I have had from the Amahi community has been fantastic.