problem with server_add

sousha

Joined: 2009-06-28
Posts: 5
Posted: Sun, 2009-06-28 06:08

hi.

i'm using g3 pre beta2 (git). when i try to import a directory using server_add, no album is created and no pictures are imported. but gallery says, that the import was successful. if i shorten the filenames, import works fine. has anybody an idea?

thanks in advance,
markus

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-06-28 09:16
Quote:
if i shorten the filenames

How about giving an example, including full path?

/path/to/import/directory/filename.jpg
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sousha

Joined: 2009-06-28
Posts: 5
Posted: Sun, 2009-06-28 09:30

The path ist /mnt/test/2008_07_24-BA-Eupen/2-Kart. It is the same path for the original files and the shorten ones. I just renamed them for the test.

The Filenames are all like these two ones: Betriebsausflug_8829_2R.JPG or Betriebsausflug_8841_Ausw.JPG. In the directory, there are 449 files.

 
sousha

Joined: 2009-06-28
Posts: 5
Posted: Sun, 2009-06-28 09:43

The shorten names are like BA_8829_2R.JPG or BA_8841_Ausw.JPG.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-06-28 10:13

So a full path to an image would be:
/mnt/test/2008_07_24-BA-Eupen/2-Kart/Betriebsausflug_8841_Ausw.JPG

I find it hard to believe that Gallery is choking on a 66 character path.

The path alone to my upload directory is 50 characters with the full path of an image I just imported being 78 characters

/var/www/XXXXX/XXXXXX/XXXXXXXXXXXXXXXXXXXXX/upload/ImageNameToImport_Stuff.jpg

Have you looked in gallery3/var/logs to see if there are any log files and more information? Perhaps it could be out test is mounted maybe, I don't know much about mounting in Linux having to search every time I need to do it...
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sousha

Joined: 2009-06-28
Posts: 5
Posted: Sun, 2009-06-28 11:15

I've just followed another idea. I moved 35 of the 449 files to another directory and the import worked fine. Then I removed the 414 files and moved the 35 files back into the directory and the import worked fine, too. So the mount, the path, the filenames and the files themselves seem to be ok.

I wonder if there is a (memory)limit in collecting all the necessary information of the files to import.

 
krak
krak's picture

Joined: 2009-06-23
Posts: 5
Posted: Tue, 2009-06-30 11:46

I experience the problems only with a large amount pictures (14000 or one year 6000). When I limited the number pictures (+/- 200), it will succeed.

After selected a directory on the server (with subfolders) from the server I see the progress bar indicates a little bit, stalls for a moment (1 - 2 minutes). I guess it is indexing.

When it starts to fail, I see at the status area in my browser for moment (5 - 8 sec) reading / waiting directories. After this it says 'done' and returns. Now I see the same as before I chosen 'add from server'.

When it doesn't fail, I see the progress bar slowly grows. It will take 60 - 120 minutes (shared hosting). Sometimes it complains about reload javascript, but it continues after 'Ok'.

Structure of the directory:
source: \home\username\data\allefotos\canon\2008\01\2008_01_01
target: \home\username\public_html\galleryb1\var (default gallery 3 Beta 1)

Modules installed:
Inst. Name
- Akismet
V Comments
V Exif Data
- Gallery2 Import
V Gallery 3
V Image Block
V Info
V Notification
V Organize
- Recaptcha
V RSS
V Search
V Server Add
V Slideshow
V Tags
- Users and Groups

Browsers firefox 3.0.4 (Windows and Mac)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-07-12 16:48

server_add just had a complete rewrite. Try the latest code!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
sousha

Joined: 2009-06-28
Posts: 5
Posted: Tue, 2009-07-14 13:14

Hi,

the new code works fine. I've just imported about 15000 pictures at once without any problems.

Great thanks to the developpers.
Markus

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-07-14 13:38

Awesome! thanks, Markus!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!