Skip to content

looker_deployer is not working #147

Description

@harsjadh

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.

  1. 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')

  2. 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:

<title>Looker Not Found (404)</title>
<!-- @@@@@@@@@@@@@ FAVICONS @@@@@@@@@@@@@ -->

<link rel="apple-touch-icon-precomposed" sizes="57x57" href=https://wwwstatic-b.lookercdn.com/favicon/apple-touch-icon-57x57.png />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href=https://wwwstatic-c.lookercdn.com/favicon/apple-touch-icon-114x114.png />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href=https://wwwstatic-d.lookercdn.com/favicon/apple-touch-icon-72x72.png />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href=https://wwwstatic-a.lookercdn.com/favicon/apple-touch-icon-144x144.png />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href=https://wwwstatic-b.lookercdn.com/favicon/apple-touch-icon-60x60.png />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href=https://wwwstatic-c.lookercdn.com/favicon/apple-touch-icon-120x120.png />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href=https://wwwstatic-d.lookercdn.com/favicon/apple-touch-icon-76x76.png />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href=https://wwwstatic-a.lookercdn.com/favicon/apple-touch-icon-152x152.png />
<link rel="icon" type="image/png" href=https://wwwstatic-b.lookercdn.com/favicon/favicon-196x196.png sizes="196x196" />
<link rel="icon" type="image/png" href=https://wwwstatic-c.lookercdn.com/favicon/favicon-96x96.png sizes="96x96" />
<link rel="icon" type="image/png" href=https://wwwstatic-d.lookercdn.com/favicon/favicon-32x32.png sizes="32x32" />
<link rel="icon" type="image/png" href=https://wwwstatic-a.lookercdn.com/favicon/favicon-16x16.png sizes="16x16" />
<link rel="icon" type="image/png" href=https://wwwstatic-b.lookercdn.com/favicon/favicon-128.png sizes="128x128" />
<meta name="application-name" content="Looker"/>
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content=https://wwwstatic-c.lookercdn.com/favicon/mstile-144x144.png />
<meta name="msapplication-square70x70logo" content=https://wwwstatic-d.lookercdn.com/favicon/mstile-70x70.png />
<meta name="msapplication-square150x150logo" content=https://wwwstatic-a.lookercdn.com/favicon/mstile-150x150.png />
<meta name="msapplication-wide310x150logo" content=https://wwwstatic-b.lookercdn.com/favicon/mstile-310x150.png />
<meta name="msapplication-square310x310logo" content=https://wwwstatic-c.lookercdn.com/favicon/mstile-310x310.png />

<style type="text/css">
    body {
        background-color: #2e343f;
        color: white;
        height: auto;
        font-family: Open Sans, Helvetica, Arial, sans-serif;
    }
    .message {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        margin-top: 135px;
        text-align: center;
    }
    h2, h3 {
        font-weight: normal;
    }
    a {
        color: white;
    }
</style>
<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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions