Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

synchronize of all albums fails with HTTP 500 - GSP 2.5
aksnet
#1 Posted : Thursday, 23 June 2011 8:01:33 AM(UTC)
Rank: Member

Joined: 27/01/2011(UTC)
Posts: 17
Location: Germany

Hi Roger,
i have installed 2.5 from scratch cause an update from 2.4.6 failed. I tried a few things but finally i killed the IIS entry, deleted the GSP folder and deleted the SQL Server Database.

I installed GSP 2.5 then via the webinstaller which worked perfectly.
So i'm not longer using my SQL2008r2 server for the Database.

I can logon and configure everything as previous so everything seems fine.
I then configured my images data folder , the compressed and thumbnail folder.
To really start from scratch i also cleared both folders.

Finally i started the synchronisation which ran some time but then stopps with HTTP ERROR 500



################################################

Synchronize album

Synchronization error

Estimated time left:

0 min 0 secs (22829 of 22829 objects synchronized)

Synch rate: 563.9 objects/sec

Status: Synchronization error

Processing: $ - other categories\Auto Pictures\CLIO\treffen\IMG_1811.JPG

Error: System.ArgumentException: Der Wert liegt außerhalb des erwarteten Bereichs.

HTTP Status: 500

Stack trace:

bei System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle) bei System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache) bei System.Windows.Media.Imaging.BitmapDecoder.Create(Stream bitmapStream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption) bei GalleryServerPro.Business.WpfMetadataExtractor.GetBitmapMetadata(String imageFilePath) bei GalleryServerPro.Business.WpfMetadataExtractor.AddWpfBitmapMetadata(String imageFilePath, IGalleryObjectMetadataItemCollection metadataItems) bei GalleryServerPro.Business.Metadata.MediaObjectMetadataExtractor.GetGalleryObjectMetadataItemCollection() bei GalleryServerPro.Business.Image..ctor(Int32 id, IAlbum parentAlbum, String title, String hashKey, String thumbnailFilename, Int32 thumbnailWidth, Int32 thumbnailHeight, Int32 thumbnailSizeKb, String optimizedFilename, Int32 optimizedWidth, Int32 optimizedHeight, Int32 optimizedSizeKb, String originalFilename, Int32 originalWidth, Int32 originalHeight, Int32 originalSizeKb, Int32 sequence, String createdByUsername, DateTime dateAdded, String lastModifiedByUsername, DateTime dateLastModified, Boolean isPrivate, Boolean isInflated, FileInfo imageFile) bei GalleryServerPro.Business.Image..ctor(FileInfo imageFile, IAlbum parentAlbum) bei GalleryServerPro.Business.Factory.CreateImageInstance(FileInfo imageFile, IAlbum parentAlbum) bei GalleryServerPro.Business.Factory.CreateLocalMediaObjectInstance(FileInfo mediaObjectFile, IAlbum parentAlbum) bei GalleryServerPro.Business.SynchronizationManager.CreateNewMediaObject(IAlbum album, FileInfo file) bei GalleryServerPro.Business.SynchronizationManager.SynchronizeMediaObjectFiles(DirectoryInfo directory, IAlbum album) bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum) bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum) bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum) bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum) bei GalleryServerPro.Business.SynchronizationManager.Synchronize(String synchId, IAlbum album, String userName) bei Gsp.Gallery.Synchronize(Int32 albumId, String synchId, Boolean isRecursive, Boolean overwriteThumb, Boolean overwriteOpt, Boolean regenerateMetadata)
################################################

My System is a Windows 7 64bit Server, all available updates via windows updates are installed .net4 is installed.

ffmpeg.exe and imagemagick is installed.
i have jpg and avi files in my data storage.

Can you help me? Which data do you need for debugging?
aksnet
#2 Posted : Thursday, 23 June 2011 8:34:57 AM(UTC)
Rank: Member

Joined: 27/01/2011(UTC)
Posts: 17
Location: Germany

seems this user has the same issue:
http://forum.galleryserv...--quite-the-process.aspx
Billsey
#3 Posted : Thursday, 23 June 2011 9:00:28 AM(UTC)
Rank: Member

Joined: 22/06/2011(UTC)
Posts: 7
Location: Oregon, USA

I removed the offending files (moved the whole directory, had to restart IIS to remove the file lock on the bad one) and was able to get the synchronization to continue. It ran all night and seems to be hung at the finish. It says it's done all the files but still has the Cancel button. Tonight I'll move the bad directory back, except for the one file, and see if I can do all except the one...
Billsey
#4 Posted : Thursday, 23 June 2011 11:19:43 AM(UTC)
Rank: Member

Joined: 22/06/2011(UTC)
Posts: 7
Location: Oregon, USA

I found two files in the first directory that caused the problem, moving them out of the system allowed the synchronization to continue. I'll attach those two pictures here.
Billsey attached the following image(s):
Billsey attached the following image(s): Norway 004.jpg
Billsey attached the following image(s): Norway 006.jpg
aksnet
#5 Posted : Thursday, 23 June 2011 11:55:02 AM(UTC)
Rank: Member

Joined: 27/01/2011(UTC)
Posts: 17
Location: Germany

hi,
good hint ! will try this as well, but there seems to be still a problem with 2.5 cause exact the same folders were working with the 2.4 version very fine.

so hopefully roger find something to sort this out.
Billsey
#6 Posted : Thursday, 23 June 2011 12:19:27 PM(UTC)
Rank: Member

Joined: 22/06/2011(UTC)
Posts: 7
Location: Oregon, USA

I thought it might be a version conflict with ImageMagick or FFmpeg. I installed the binary pack and also refreshed the versions I had installed on the server. ImageMagick went from 6.6.1 to 6.7.0 and FFmpeg went from a 2009 build to the 6-22-2011 build. I'm not sure if GSP uses the version that is located in the bin directory first or the version that's installed globally, but the problem still exists on selected image files.
jeff
#7 Posted : Thursday, 23 June 2011 12:25:30 PM(UTC)
Rank: Member

Joined: 20/06/2011(UTC)
Posts: 9
Location: United Kingdom

Hi, If you disable the metadata setting in your admin control panel the sync works, this way you can still run the sync function and shows its one or more of your pics is causing the problem. I believe roger has a patch for this as he solved the very same issue for me.
Jeff.
Roger Martin
#8 Posted : Thursday, 23 June 2011 12:30:27 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

This is a bug that I fixed and released in a patch. Read about it in this blog post.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
jeff
#9 Posted : Thursday, 23 June 2011 12:51:13 PM(UTC)
Rank: Member

Joined: 20/06/2011(UTC)
Posts: 9
Location: United Kingdom

Forgot to mention when the latest patch blog post is applied to gsp and you run sync you may find as I did duplicate images for each item you had tried to upload, hope that makes sense!
Jeff.
Roger Martin
#10 Posted : Thursday, 23 June 2011 12:59:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Yeah, that probably happens because the file is copied to the directory before the failure occurs and is never deleted, so it is "discovered" by the next sync.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.