Problems using galleryadd.pl

Blazer0x

Joined: 2005-10-17
Posts: 12
Posted: Sat, 2009-11-14 12:23

If anyone could help me figure this out I would much appreciate it. Here is my full sanitized debug output:

Quote:
# /usr/local/bin/galleryadd.pl -G2 -q -g http://gallery.mysite.com/ -u xxx -p xxx -a 108 -C "test" /tmp/test.jpg
Error: could not upload image - unknown error

200
GalleryStatus Object
(
[_stack] =>
[_errorCode] => 5
[_errorMessage] =>
[_stackTrace] => Array
(
[0] => Array
(
[file] => /htdocs/apps/gallery2/modules/remote/GalleryRemote.inc
[line] => 516
[function] => error
[class] => GalleryCoreApi
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => 4
)

)

[1] => Array
(
[file] => /htdocs/apps/gallery2/modules/remote/GalleryRemote.inc
[line] => 129
[function] => addDataItem
[class] => GalleryRemoteController
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => Array
(
[protocol_version] => 2.5
[cmd] => add-item
[set_albumName] =>
[caption] => test
)

[1] => GalleryRemoteProperties Object
(
[_map] => Array
(
[status] => 403
[status_text] => Upload failed\: ''.
)

)

)

)

[2] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 250
[function] => handleRequest
[class] => GalleryRemoteController
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => Array
(
[protocol_version] => 2.5
[cmd] => add-item
[set_albumName] =>
[caption] => test
)

)

)
[3] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 104
[function] => _GalleryMain
[args] => Array
(
[0] =>
)

)

[4] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 88
[function] => GalleryMain
[args] => Array
(
)

)

)

)
GalleryStatus Object
(
[_stack] =>
[_errorCode] => 5
[_errorMessage] =>
[_stackTrace] => Array
(
[0] => Array
(
[file] => /htdocs/apps/gallery2/modules/remote/GalleryRemote.inc
[line] => 516
[function] => error
[class] => GalleryCoreApi
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => 4
)

)

[1] => Array
(
[file] => /htdocs/apps/gallery2/modules/remote/GalleryRemote.inc
[line] => 129
[function] => addDataItem
[class] => GalleryRemoteController
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => Array
(
[protocol_version] => 2.5
[cmd] => add-item
[set_albumName] =>
[caption] => test
)

[1] => GalleryRemoteProperties Object
(
[_map] => Array
(
[status] => 403
[status_text] => Upload failed\: ''.
[status_debug] => 1
)

)

)

)

[2] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 250
[function] => handleRequest
[class] => GalleryRemoteController
[object] => GalleryRemoteController Object
(
[_optionInstances] =>
)

[type] => ->
[args] => Array
(
[0] => Array
(
[protocol_version] => 2.5
[cmd] => add-item
[set_albumName] =>
[caption] => test
)

)

)

[3] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 104
[function] => _GalleryMain
[args] => Array
(
[0] =>
)

)

[4] => Array
(
[file] => /htdocs/apps/gallery2/main.php
[line] => 88
[function] => GalleryMain
[args] => Array
(
)

)

)

)
#__GR2PROTO__
status=403
status_text=Upload failed\: ''.
status_debug=1
debug_user=xxx
debug_time=0.002s
auth_token=bb9bahf00d14

I have tried all the usual things like clearing sessions, turning off caching, etc.

 
FeriCyde
FeriCyde's picture

Joined: 2010-01-03
Posts: 5
Posted: Mon, 2010-01-04 03:36

I had some similar problems with some pictures -- may not be related to your problems but essentially it had an issue with either the file size or format -- I ran the images through jpegtopnm and back (pnmtojpeg) and the resultant (much smaller and translated) jpegs went right into the gallery.

My guess -- something in the file format is screwy -- the pictures were all taken with a camera that I no longer use. I did a lot of experimenting to come to the conclusion here, so it's either a size issue (not likely, is my guess) or format (very likely).