upload error: upload failed: ".

uplate

Joined: 2005-05-04
Posts: 23
Posted: Sun, 2006-08-06 17:58

I can no longer upload photos via Gallery Remote. I am getting this error when I try:upload error: upload failed: ":
I have seen this error in the forums, but there seems to be no good solution other than to ask the webhost to restart the server. If anyone else here uses PowWeb as their server, could you try uploading photos via Gallery Remote to see if this is a problem with my configuration or with PowWeb. The Gallery2 codex database says this error is a problem with improperly configured locale. I'm not sure what that entails and the codex does not provide an in depth explanation or solution.

PHP4.4.2
Gallery2
Apache1.3

Login or register to post comments
uplate

Joined: 2005-05-04
Posts: 23
Posted: Tue, 2006-10-17 14:41

bump

Login or register to post comments
uplate

Joined: 2005-05-04
Posts: 23
Posted: Fri, 2006-12-01 06:30

I am still struggling with this issue. Neither gallery remote or the web-based upload form works. I've upgraded my gallery to 2.1.2, fooled around with php.ini, all with no luck. The solutions I've tried have been changing php max size and post values, but all my photos I've been trying to upload are less than 1mB, so that's really not the issue. I've also tried this solution:

http://codex.gallery2.org/index.php/Gallery2:FAQ#Where_I_should_see_dates_I_see_.22Wrong_charset.2C_cannot_convert.22_or_.22Illegal_character_encoding.22_or_.22Illegal_recode_request.22.._what_is_wrong.3F

What could this issue be related to?

Login or register to post comments
rso

Joined: 2006-05-15
Posts: 6
Posted: Sat, 2006-12-02 13:36

Hi,
I have the same problem, I posted the details of my installation under this thread:

http://gallery.menalto.com/node/56773

This problem seems to be very common under different platforms.
I hope somebody will work on it, I have some 3 GB of photos to upload :)

Best,
Richard

Login or register to post comments
wdekreij

Joined: 2006-04-09
Posts: 106
Posted: Wed, 2006-12-06 21:22
rso wrote:
Hi,
I have the same problem, I posted the dhtails of my installation under this thread:

http://gallery.menalto.com/node/56773

This problem seems to be very common under different platforms.
I hope somebody will work on it, I have some 3 GB of photos to upload :)

Best,
Richard

Is this also an common issue on Windows systems?

Login or register to post comments
joelfarris
joelfarris's picture

Joined: 2006-02-20
Posts: 15
Posted: Sun, 2007-04-01 22:14

No, it's not a Windows only error. I get the same problem when using Gallery Remote 1.5.1-b30 on Mac OS 10.4.9. The Gallery Remote program goes through the motions, but announces, "Upload failed" after each image. The files seem to be fully uploaded, and Gallery App even sees that X number of new images have been created, but they all have broken-image icons. This one's weird!
--
Joel Farris
"And that's the way it oughta be!"

Login or register to post comments
aidanlister

Joined: 2005-12-07
Posts: 56
Posted: Fri, 2007-04-06 07:35

Same problem here, but sporadically.

I can upload say 300 photos, 20 may pop up with this error. Just clicking upload again fixes the problem too.

Login or register to post comments
joelfarris
joelfarris's picture

Joined: 2006-02-20
Posts: 15
Posted: Fri, 2007-04-06 13:53

Ok, that's a little different from my error. I can upload 100 photos, and 100 of them will show a Gallery Remote error. They're all on the server as files too. Unusable, unviewable files.
--
Joel Farris
"And that's the way it oughta be!"

Login or register to post comments
Rescue9

Joined: 2007-05-02
Posts: 3
Posted: Wed, 2007-05-02 02:13

I had this error myself. My problem was the fact that I was trying to upload files that were too big for my installation. My php.ini was set for an upload of 2M, but I wanted to upload 7M pictures. There is a bit of information on this in the gallery faq. Try this information.

http://codex.gallery2.org/Gallery2:FAQ#Why_can.27t_I_upload_big_files_.28over_a_megabyte_or_two.29.3F

AB

Login or register to post comments
blackbox42

Joined: 2005-06-11
Posts: 6
Posted: Sun, 2008-06-29 17:12

I'm getting this same error. Uploading from a Windows box with the lastest version of Gallery Remote to a Debian box with the latest version of Gallery. I've tried both file and database locking. Neither work. Every fifth image uploads (on average).

Here is my debug output:

2008-06-29 13:08:17 [<no session id>] file_exists(/home/blackbox/album_store/cache/module/_all/0/0/GalleryFactoryHelper_loadR
egistry.inc)
2008-06-29 13:08:17 [<no session id>] Unimplemented: GalleryUrlGenerator
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] getParameter session.lifetime for core plugin
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/cache/module/core/0/0/0.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] getParameter session.inactivityTimeout for core plugin
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SET NAMES &quot;utf8&quot; &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/cache/module/_all/0/0/GallerySt
orage_describeMap.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g
_id='5ea24d3312d3809f42d20d94f9b18e7b' &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] controller remote.GalleryRemote, view
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] Loading plugin core
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] Class not defined, trying to include it.
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/var/www/g2/modules/core/module.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] core plugin successfully instantiated
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/versions.dat)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file(/home/blackbox/album_store/versions.dat, )
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] [1214759297] can't guarantee 5 -- extending!
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/cache/entity/0/0/6.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] Loading plugin remote
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] Class not defined, trying to include it.
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/var/www/g2/modules/remote/module.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] remote plugin successfully instantiated
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] Check the version of the remote plugin
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/cache/module/_all/0/0/GalleryPl
uginHelper_fetchPluginStatus.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] The version of the remote plugin is ok
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/var/www/g2/modules/remote/GalleryRemote.inc)
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] GR Command: add-item
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 6
ORDER BY
g2_Group.g_groupName
LIMIT 2147483647 &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_module, g_permission, g_description, g_bits, g_flags FROM g2_PermissionSetMap &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql):
SELECT DISTINCT
g2_AccessMap.g_accessListId
FROM
g2_AccessMap
WHERE
g2_AccessMap.g_userOrGroupId IN (6,4,2,3)
AND
g2_AccessMap.g_permission &amp; 1 = 1
&nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_itemId FROM g2_AccessSubscriberMap WHERE g_itemId=33846 AND g_accessListId IN (33780,10,33433,7340,31183,33
830,15637,33828,15882,15886,15881,15880,15829,33847) LIMIT 1 &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql):
SELECT DISTINCT
g2_AccessMap.g_accessListId
FROM
g2_AccessMap
WHERE
g2_AccessMap.g_userOrGroupId IN (6,4,2,3)
AND
g2_AccessMap.g_permission &amp; 16 = 16
&nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_itemId FROM g2_AccessSubscriberMap WHERE g_itemId=33846 AND g_accessListId IN (33780,10,33433,7340,31183,33
830,15637,33828,15882,15886,15881,15880,15829,33847) LIMIT 1 &nbsp;
<hr />

2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] getParameter lock.system for core plugin
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): update g2_SequenceLock set id=LAST_INSERT_ID(id+1); &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): INSERT INTO g2_Lock (g_lockId, g_request, g_freshUntil) VALUES(2, 1, 1214759327) &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_lockId FROM g2_Lock WHERE g_request=1 ORDER BY g_lockId ASC LIMIT 1 &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT COUNT(*) FROM g2_Lock WHERE g_writeEntityId IN (33846) &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): INSERT INTO g2_Lock (g_lockId, g_readEntityId, g_freshUntil) VALUES (2, 33846, 1214759328) &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): DELETE FROM g2_Lock WHERE g_lockId=2 AND g_request=1 &nbsp;
<hr />

2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/home/blackbox/album_store/cache/module/_all/0/0/GalleryMi
meTypeHelper_mimeData.inc)
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] getParameter misc.markup for core plugin
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] is_uploaded_file()
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] file_exists(/var/www/g2/modules/core/classes/GalleryPhotoItem.class)
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] Loading plugin remote
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] remote plugin successfully instantiated
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] Check the version of the remote plugin
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] The version of the remote plugin is ok
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] Loading plugin remote
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] remote plugin successfully instantiated
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] Check the version of the remote plugin
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] The version of the remote plugin is ok
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] Lock id 2 was left hanging!
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): DELETE FROM g2_Lock WHERE g_lockId IN (2) &nbsp;
<hr />

Login or register to post comments
blackbox42

Joined: 2005-06-11
Posts: 6
Posted: Sun, 2008-06-29 17:37

Blah, this ended up being a problem with my max upload size (I upgraded to php5 recently). Gallery Remote should at least give you the same error as the "From Web Browser" tab of Add items. Just stating "upload failed" without stating why it failed is a serious bug.

Login or register to post comments
humblemumble

Joined: 2009-05-13
Posts: 1
Posted: Wed, 2009-05-13 21:04

Hi,

on my box this was issue with php unable to write to system tmp dir.

To fix this , check via phpinfo() where the tmp is set and make sure the correct permissions are setup for web server user to be able to write to that folder. In my case i had separate logical volume mounted as /tmp but with root:root 755 owner/rights which disallowed php to use it.

Also good way to debug possible related issues is to setup logging in php.ini, fe :
log_errors = On
error_log = /var/log/apache2/php-errors.log

as there was nothing logged in http logs or sa output of gallery remote client.

hth
hm

Login or register to post comments
dkerlee

Joined: 2005-06-09
Posts: 13
Posted: Sun, 2009-09-20 23:59

.

Login or register to post comments
sodageek

Joined: 2009-12-14
Posts: 2
Posted: Mon, 2009-12-14 20:40

Following the phpinfo suggestion fixed it for me. I had the post_max_size set properly but also need to adjust the post_max_size set as well. This was on a Windows box.

Login or register to post comments