backupandrestoreassetscloud's People
backupandrestoreassetscloud's Issues
attribute type Syntax error
HEllo,
I am running Python 3.6.8 and i got this error during the import, I don't have any issue with the backup. i am hoping you might shed some light.
python importAssets.py -f importAssets-config.json
File "importAssets.py", line 162
match attribute['type']:
^
SyntaxError: invalid syntax
I just execute the file without config and got this
[root@adminlmon BackupAndRestoreAssets]# python importAssets.py
File "importAssets.py", line 162
match attribute['type']:
^
SyntaxError: invalid syntax
objectIdTranslate
Hi,
i face an issue in restoring (it resored ~40% of object):
and stopped on:
2022-06-20 12:48:56,551 root INFO [71] Creating object: Server 99 [Servers]
2022-06-20 12:49:03,799 root ERROR [592] Unhandled error
'id'
Traceback (most recent call last):
File "C:...\importObjectSchema.py", line 414, in
objectIdTranslate[oldObject['id']]=newObject['id']
KeyError: 'id'
2022-06-20 12:49:03,799 root INFO [595] ------------End of Run------------
Traceback (most recent call last):
File "C:\temp\backup\backup\importObjectSchema.py", line 414, in
objectIdTranslate[oldObject['id']]=newObject['id']
KeyError: 'id'
Fixes for consideration
Hi Rudy, the latest ping from the feature page for Insight @ Atlassian made me realize you were interested in any changes that I'd have to make to get the scripts to work.
I has to fix some things such as missing atlassian APIs, and handling of import failures to prefer loss of some data to not being able to import anything (corrupt import). Something is better than nothing.
Didn't open a PR, as I assume you'd want to look at each type of change and decide if it fits into your ambition of the project.
The changes are in a develop branch with commits on top of your latest main.
Feel free to incorporate whatever you find relevant.
insight module missing
Hi Rudy, did you forget to commit the insight
module?
Backup script fails on the initial line, where it tries to import such a module.
$ python backupInsight.py
Traceback (most recent call last):
File "/Users/user/src/insights/backupAndRestoreInsightCloud/backupInsight.py", line 1, in <module>
from insight import insightConnect
ModuleNotFoundError: No module named 'insight'
'str' object has no attribute 'append'
We're trying to use your scripts to backup an Object scheme to import in our Sandbox environment.
After some succesful tests with test schemes we now want to do the same with our main scheme but stumble on the following error
2022-07-06 16:15:08,430 root INFO [28] -----------Start of Run-----------
2022-07-06 16:15:09,312 root INFO [74] Start backup of:
2022-07-06 16:15:09,312 root INFO [76] IAM [AOS]
2022-07-06 16:15:09,313 root INFO [82] - objectschema
2022-07-06 16:15:09,662 root INFO [87] - object schema properties
2022-07-06 16:15:10,117 root INFO [92] - global referencetypes
2022-07-06 16:15:10,469 root INFO [97] - global statustypes
2022-07-06 16:15:10,857 root INFO [103] - schema referencetypes
2022-07-06 16:15:11,308 root INFO [108] - schema statustypes
2022-07-06 16:15:11,676 root INFO [114] - objecttypes [10]
2022-07-06 16:15:11,677 root INFO [120] - 'Team' [1/10]:
2022-07-06 16:15:12,145 root INFO [123] - attributes [11]
2022-07-06 16:15:12,856 root INFO [128] - object types [19]
2022-07-06 16:15:13,775 root INFO [142] - data
2022-07-06 16:15:14,976 root INFO [154] - history
2022-07-06 16:15:15,774 root INFO [166] - comments
2022-07-06 16:15:15,774 root INFO [120] - 'App Journeys' [2/10]:
2022-07-06 16:15:16,105 root INFO [123] - attributes [10]
2022-07-06 16:15:18,275 root INFO [128] - object types [60]
2022-07-06 16:15:20,055 root INFO [142] - data
2022-07-06 16:15:22,526 root INFO [154] - history
2022-07-06 16:15:24,166 root INFO [166] - comments
2022-07-06 16:15:24,167 root INFO [120] - 'Application' [3/10]:
2022-07-06 16:15:24,524 root INFO [123] - attributes [18]
2022-07-06 16:15:26,971 root INFO [128] - object types [51]
2022-07-06 16:15:28,662 root INFO [142] - data
2022-07-06 16:15:31,172 root INFO [154] - history
2022-07-06 16:15:32,747 root INFO [166] - comments
2022-07-06 16:15:32,748 root INFO [120] - 'Web Journeys' [4/10]:
2022-07-06 16:15:33,103 root INFO [123] - attributes [10]
2022-07-06 16:15:33,599 root INFO [128] - object types [9]
2022-07-06 16:15:34,076 root INFO [142] - data
2022-07-06 16:15:34,741 root INFO [154] - history
2022-07-06 16:15:35,218 root INFO [166] - comments
2022-07-06 16:15:35,218 root INFO [120] - 'Person' [5/10]:
2022-07-06 16:15:35,655 root INFO [123] - attributes [7]
2022-07-06 16:15:43,157 root INFO [128] - object types [276]
2022-07-06 16:15:52,153 root ERROR [175] Unhandled error
'str' object has no attribute 'append'
Traceback (most recent call last):
File "C:\temp\backupAndRestoreInsightCloud-main\backupInsight.py", line 139, in <module>
objectId, objectData = future.result()
File "C:\Users\manuv\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\_base.py", line 439, in result
return self.__get_result()
File "C:\Users\manuv\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\_base.py", line 391, in __get_result
raise self._exception
File "C:\Users\manuv\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\temp\backupAndRestoreInsightCloud-main\backupInsight.py", line 31, in getObjectData
objectData = myInsight.getObjectData(object)
File "C:\temp\backupAndRestoreInsightCloud-main\insight.py", line 857, in getObjectData
attributeValue.append(value['displayValue'])
AttributeError: 'str' object has no attribute 'append'
2022-07-06 16:15:52,156 root INFO [178] ------------End of Run------------
We looked at what could be different between the object types that did succeed (such as Team) but so far have not found differences that seem to indicate the cause of the issue.
Also tried with different api keys so far
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.