You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked with both the methods
1 creating dockerfile and run it and export content
2) setting up the local environment and then try to export content from dev env
But I am failing during exporting the content from dev looker instance with below error.
Kindly suggest why its failing as I have setup locally as per the Readme file.
ldeploy content export --env dev --ini looker.ini --folders Folders --local-target ./Looker
{"levelname": "INFO", "module": "deploy_content_export", "funcName": "main", "message": "Exporting content", "env": "dev", "folders": ["Folders/shared folders/Test123"], "dashboards": null, "looks": null, "local_target": "./Looker", "timestamp": "2023-11-29T06:52:44.762856Z"}
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/serialize.py", line 66, in deserialize
data = json.loads(data)
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 90, in _return
sdk_error = self.deserialize(data=value, structure=error.SDKError) # type: ignore
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/serialize.py", line 68, in deserialize
raise DeserializeError(f"Bad json {ex}")
looker_sdk.rtl.serialize.DeserializeError: Bad json Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/ldeploy", line 8, in
sys.exit(main())
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/cli.py", line 46, in main
args.func(args)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 164, in main
send_export(
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 116, in send_export
folder_list = recurse_folders(fid, folder_list, sdk, debug)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 96, in recurse_folders
space = sdk.folder(str(folder_id))
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/sdk/api40/methods.py", line 5888, in folder
self.get(
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 149, in get
return self._return(response, structure)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 92, in _return
raise error.SDKError(value)
looker_sdk.error.SDKError:
<div class="message">
<img width="210" height="84" src=https://wwwstatic-a.lookercdn.com/logos/looker_all_white.svg alt="Looker">
<h1>Looker is unavailable.</h1>
<h2>If you typed in a URL, double-check the spelling.</h2>
<h2>This may also be due to a temporary condition such as an outage, <a href=https://docs.looker.com/relnotes/hosted-maintenance-hours>scheduled maintenance</a> or upgrade.</h2>
<br>
<h3>
If this message persists or you have any concerns, <br> contact us from
<a href=https://help.looker.com/>help.looker.com</a> and we'll respond promptly.
</h3>
</div>
The text was updated successfully, but these errors were encountered:
I checked with both the methods
1 creating dockerfile and run it and export content
2) setting up the local environment and then try to export content from dev env
But I am failing during exporting the content from dev looker instance with below error.
Kindly suggest why its failing as I have setup locally as per the Readme file.
ubuntu@ip-172-31-6-67:~/Looker$ sudo docker run ldeploy -v /local/path/to/ldeploy/settings:/ldeploy_settings -v /local/path/to/ldeploy/output:/ldeploy_output ldeploy content export --ini /ldeploy_settings/looker.ini --local-target /ldeploy_output -v --boards Boards
usage: ldeploy [-h] [-v]
{boards,code,connections,content,permission_sets,model_sets,roles,groups,group_in_group,role_to_group,user_attributes}
...
ldeploy: error: argument {boards,code,connections,content,permission_sets,model_sets,roles,groups,group_in_group,role_to_group,user_attributes}: invalid choice: '/local/path/to/ldeploy/settings:/ldeploy_settings' (choose from 'boards', 'code', 'connections', 'content', 'permission_sets', 'model_sets', 'roles', 'groups', 'group_in_group', 'role_to_group', 'user_attributes')
ldeploy content export --env dev --ini looker.ini --folders Folders --local-target ./Looker
{"levelname": "INFO", "module": "deploy_content_export", "funcName": "main", "message": "Exporting content", "env": "dev", "folders": ["Folders/shared folders/Test123"], "dashboards": null, "looks": null, "local_target": "./Looker", "timestamp": "2023-11-29T06:52:44.762856Z"}
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/serialize.py", line 66, in deserialize
data = json.loads(data)
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 90, in _return
sdk_error = self.deserialize(data=value, structure=error.SDKError) # type: ignore
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/serialize.py", line 68, in deserialize
raise DeserializeError(f"Bad json {ex}")
looker_sdk.rtl.serialize.DeserializeError: Bad json Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
<title>Looker Not Found (404)</title>File "/home/ubuntu/.local/bin/ldeploy", line 8, in
sys.exit(main())
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/cli.py", line 46, in main
args.func(args)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 164, in main
send_export(
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 116, in send_export
folder_list = recurse_folders(fid, folder_list, sdk, debug)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_deployer/commands/deploy_content_export.py", line 96, in recurse_folders
space = sdk.folder(str(folder_id))
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/sdk/api40/methods.py", line 5888, in folder
self.get(
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 149, in get
return self._return(response, structure)
File "/home/ubuntu/.local/lib/python3.10/site-packages/looker_sdk/rtl/api_methods.py", line 92, in _return
raise error.SDKError(value)
looker_sdk.error.SDKError:
The text was updated successfully, but these errors were encountered: