PTCInc / thingworx-gitbackup-extension

[Unofficial/Not supported] ThingWorx GitBackup Extension for storing your ThingWorx application code in a Git repository
MIT License
25 stars 11 forks source link

gitHub on Thingworx 9.3.7-b1432 #51

Closed YassinAbukar closed 2 months ago

YassinAbukar commented 9 months ago

We are currently facing issues with the GitHub extension. Despite our attempts to resolve it, the problem persists.

We initially attempted to re-import the extension from our production server, which is functioning correctly, but unfortunately, the issue remains unresolved. Furthermore, creating a new instance did not yield any positive results.

here's a list of the errors we're getting.

08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, github2_thing, Services, GetFilteredDirectoryListing. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, github2_thing, Services, GetCurrentBranch. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, github2_thing, Services, GetBranchList. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, github2_thing, Services, GetConfiguration. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, github2_thing, Services, GetFilteredDirectoryListing. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, github2_thing, Services, GetCurrentBranch. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:55 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, github2_thing, Services, GetBranchList. Error from the server: "Thing [github2_thing] is not running"
08:28:55 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, github2_thing, Services, GetConfiguration. Error from the server: "Thing [github2_thing] is not running"
08:28:59 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetCurrentBranch, Things, gitHubThingworx, Services, GetCurrentBranch. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetConfiguration, Things, gitHubThingworx, Services, GetConfiguration. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Runtime exception handling data update for binding {"Id":"4be575d2-49a2-433d-b275-2dc637a915eb","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetBranchList","SourceSection":"DynamicThingTemplates_GitBackupTemplate","TargetArea":"UI","TargetId":"dhxlist-476","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:59 ERROR - Error in invoking service DynamicThingTemplates_GitBackupTemplate, GetBranchList, Things, gitHubThingworx, Services, GetBranchList. Error from the server: "Thing [gitHubThingworx] is not running"
08:28:59 ERROR - Runtime exception handling data update for binding {"Id":"a925e560-e0ed-4cff-8539-bb48d023ef82","PropertyMaps":[{"SourceProperty":"","SourcePropertyBaseType":"INFOTABLE","SourcePropertyType":"InfoTable","TargetProperty":"Data","TargetPropertyBaseType":"INFOTABLE","TargetPropertyType":"property"}],"SourceArea":"Data","SourceDetails":"AllData","SourceId":"GetFilteredDirectoryListing","SourceSection":"DynamicThingShapes_Git.Utility.ThingShape","TargetArea":"UI","TargetId":"Tree-153","TargetSection":"","isBoundToSelectedRows":false}
Exception: Cannot read properties of undefined (reading 'length')
08:28:59 ERROR - Error in invoking service DynamicThingShapes_Git.Utility.ThingShape, GetFilteredDirectoryListing, Things, gitHubThingworx, Services, GetFilteredDirectoryListing. Error from the server: "Thing [gitHubThingworx] is not running"

![image](https://github.com/PTCInc/thingworx-gitbackup-extension/assets/75070361/d1e9e88f-2c00-4626-aac0-d634de03a8b3)
vrosu commented 9 months ago

Hi @YassinAbukar ,

  1. What GitBackup extension version are you using ?
  2. Can you please add the entries from the ErrorLog and ScriptErrorLog.log file after you restart the Thing?
  3. Have you used the Extension in the way it is explained in the UserGuide ?
YassinAbukar commented 9 months ago

Hi @vrosu ,

1) we are using the 4.1.0. 2) after running the service restartThing in gitHubThingworx no entry can be found in either applicationLog or scriptLog. oddly when we try to disable the thing we get the error message : Thing [gitHub Thingworx] is not running. and the thing stays enabled. 3) yes, on the other environments on which we are running 9.3.7-b1432 is working fine.

On the server where we are having problems we are running the 9.2.1-b112. can it be caused by a ghostEntity/value ?

vrosu commented 9 months ago

Hi @YassinAbukar , I observed that at point 2 you mentioned the ApplicationLog and ScriptLog, but if you read my original question at point 2 I asked about another log file, ErrorLog and ScriptErrorLog files. Can you please send those? Another observation is that on point 3 you replied that the extension works fine on 9.3.7, but my question was if you used the extension as explained in the User Guide. The reason of my asking this is because, from time to time, I see customers creating manually the GitThing, or importing directly from another system, while the user guide requires you to use the User Interface (key here is to know that the act of opening the Main Mashup first time is doing certain critical settings.)

You'll see in the 4.1.0 User Guide two topics:

  1. Git extension 4.1.0 was launched in 07.10.2020, when the last ThingWorx version that was launched was 9.0
  2. As of a result of the point above, the 4.1.0 version was tested only with ThingWorx 9.0 as the highest version. Considering the points above, it is technically possible that there's a 9.2.1 specific issue that triggers the issue you exhibit (issue not present in 9.3.7). However, I personally doubt this is happening, as the extension is fairly reliable.

Summarizing -Please attach the log files I've asked about -Restarting the server - try and do it if possible, but I still would like to find out what's the cause of that error - that's why I'm asking about those log files.

vrosu commented 9 months ago

Hi @YassinAbukar. Any news regarding this issue? Did you manage to solve it on your end?

YassinAbukar commented 8 months ago

Hi @vrosu , I apologize for the late response I didn't recive any notification. We've tried to restart the server but it didn't help. As for the version we are using. Dev Server : ThingWorx 9.2.1-b112 here`s the Error Log. ErrorLog.zip

On the other Environments (QA and Prod) we are currently using ThingWorx 9.3.7-b1432, and it`s working fine.

vrosu commented 6 months ago

I do not see other error outside of "Thing [github2_thing] is not running ". If you can enable stacktracing for the logs and resend the ErrorLog.log after you try and save the file it might shed some light.