Continuous Integration Error

Larry Wildey asked on August 23, 2018 17:16

We are attempting to serialize objects after enabling continuous integration and the process fails at a report and returns the attached error. This is a brand new blank azure portal site that has had almost no changes. We are attempting the setup for shared development between a team of 4 developers using their local machines and SQL express to develop and then migrate the site to Azure using VSTS source control.

Message: Serialization of object type "Report graph" (reporting.reportgraph) failed for object "graph" (GraphID: 1881). See inner exception for further details.

Exception type: CMS.ContinuousIntegration.ObjectTypeSerializationException Stack trace: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreSingleObjectTypeObject(FileSystemStoreJob storeJob, ObjectTypeInfo typeInfo, String objectType, BaseInfo info, Int32 counter, Int32 total) at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.<>c__DisplayClass8_0.b__0(BaseInfo info) at CMS.ContinuousIntegration.Internal.AbstractFileSystemJob.CancellableForEach[T](CancellationToken cancellationToken, IEnumerable1 collection, Action2 action) at CMS.ContinuousIntegration.Internal.AbstractFileSystemJob.CancellableForEach[T](CancellationToken cancellationToken, IEnumerable1 collection, Action1 action) at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreAllObjectTypeObjects(String objectType, Int32 counter, Int32 total) at CMS.ContinuousIntegration.Internal.AbstractFileSystemJob.CancellableForEach[T](CancellationToken cancellationToken, IEnumerable1 collection, Action2 action) at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreObjects() at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.RunInternal(CancellationToken cancellationToken) at CMS.ContinuousIntegration.Internal.AbstractFileSystemAllJob.Run(Nullable`1 cancellationToken)

Message: Serialization of the object CMS.Reporting.ReportGraphInfo (reporting.reportgraph) - graph has failed.

Exception type: CMS.ContinuousIntegration.ObjectSerializationException Stack trace: at CMS.ContinuousIntegration.Internal.AbstractSingleObjectJob.Run(BaseInfo baseInfo) at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreSingleObjectTypeObject(FileSystemStoreJob storeJob, ObjectTypeInfo typeInfo, String objectType, BaseInfo info, Int32 counter, Int32 total)

Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Exception type: System.IO.PathTooLongException Stack trace: at System.IO.PathHelper.GetFullPathName() at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at CMS.AzureStorage.FileStream.InitFileStream() at CMS.AzureStorage.FileStream..ctor(String path, FileMode mode, FileAccess access, IDateTimeNowService dateTimeNowService) at CMS.AzureStorage.File.Open(String path, FileMode mode, FileAccess access) at CMS.IO.File.Open(String path, FileMode mode, FileAccess access) at CMS.ContinuousIntegration.FileSystemWriter.GetFileCryptoStream(String relativePath, HashAlgorithm hashAlgorithm) at CMS.ContinuousIntegration.FileSystemWriter.StoreToFile(String relativePath, Action`1 fileStreamWriteAction) at CMS.ContinuousIntegration.Internal.AbstractSingleObjectJob.Run(BaseInfo baseInfo)

Recent Answers


Ilesh Mistry answered on August 24, 2018 00:23 (last edited on August 24, 2018 00:35)

Hi Larry

I would first try to follow the steps in the documentation regarding running Kentico CI. This section in the documentation is a good starting point enable ci

If this is all done as described, with scheduled tasks switched off. Then you should serialise the objects again.

Another thing to look at is where your storing this repository/file system? What is your path to the AppData folder? E.g. c:/repos/sitename/cms/appdata? Or is it longer? If it is longer try putting it in a shorter path and then run Kentico CI serialise objects.

If it still fails please message back.

0 votesVote for this answer Mark as a Correct answer

Larry Wildey answered on August 24, 2018 06:18

  1. Already disabled scheduled tasks.
  2. Can't rename my file path

We had another developer try to setup continuous integration and follow the same steps and it worked fine on their laptop. So now they are going to check in the code and we will start from there. I may look at what their file path is but it seems like this would be a horrible bug if the problem is related to the file path I chose for my project being 2 characters too long.

Anyway, problem solved for now thanks for the suggestions.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.