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: PHP4.4.2 |
|
| Login or register to post comments |

Posts: 23
bump
Posts: 23
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?
Posts: 6
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
Posts: 106
Is this also an common issue on Windows systems?
Posts: 15
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!"
Posts: 56
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.
Posts: 15
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!"
Posts: 3
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
Posts: 6
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 "utf8"
<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'
<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
<hr />
2008-06-29 13:08:17 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT g_module, g_permission, g_description, g_bits, g_flags FROM g2_PermissionSetMap
<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 & 1 = 1
<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
<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 & 16 = 16
<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
<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);
<hr />
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): INSERT INTO g2_Lock (g_lockId, g_request, g_freshUntil) VALUES(2, 1, 1214759327)
<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
<hr />
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): SELECT COUNT(*) FROM g2_Lock WHERE g_writeEntityId IN (33846)
<hr />
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): INSERT INTO g2_Lock (g_lockId, g_readEntityId, g_freshUntil) VALUES (2, 33846, 1214759328)
<hr />
2008-06-29 13:08:18 [5ea24d3312d3809f42d20d94f9b18e7b] <hr />
(mysql): DELETE FROM g2_Lock WHERE g_lockId=2 AND g_request=1
<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)
<hr />
Posts: 6
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.
Posts: 1
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
Posts: 13
.