question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot execute ephemeral nodes remotely!

See original GitHub issue

Expected behavior

I am attempting to use the “Execute dbt SQL” button. Everything else on my system seems to work well.

Actual behavior

Pressing the button brings up the result preview window and eventually shows an error that says "cannot execute ephemeral nodes remotely!'. The model is not ephemeral.

Steps To Reproduce

Dispatched SQL

{{ config(materialized = 'table') }}

WITH shop_keys AS (
    SELECT
        shop_id,
        shop_subdomain
    FROM
        {{ ref('stg_shops') }}
),

step_runs AS (
    SELECT
        _id AS step_run_id,
        COALESCE(metadata:parents[0]:"task_id", _id) AS workflow_run_id,
        metadata:automation:"_id"::varchar AS workflow_id,
        uuid AS shop_subdomain,
        created_at AS run_at_utc,
        {{ pacific_timestamp("_created_at") }} AS run_at_pt,
        metadata:"trigger":"trigger_type"::string AS trigger_type,
        status NOT IN ('ready', 'skip') AS is_executed,
        (
            metadata:"trigger":"trigger_type" = 'input'
            AND (metadata:"unbillable_reason" IS NULL OR metadata:"unbillable_reason"::string != 'unbilled_automation_entitlement')
            AND 'STATUS' NOT IN ('ready', 'skip')
        ) != FALSE as is_billable,
        metadata:"unbillable_reason"::string AS unbillable_reason,
        COALESCE(metadata:"child_fails", 0) AS child_failures,
        status
    FROM
        {{ source('mesa_mongo', 'tasks') }}
    WHERE NOT("__HEVO__MARKED_DELETED")

),

final AS (
    SELECT
        shop_keys.shop_id,
        step_runs.*
    FROM step_runs
    INNER JOIN shop_keys USING (shop_subdomain)
)

SELECT * FROM final

Log output/Screenshots

Screenshot

{
  "message": "cannot execute ephemeral nodes remotely!",
  "data": "Traceback (most recent call last):\n  File \"<string>\", line 73, in <module>\n  File \"/Users/jon/.virtualenvs/mesa_dbt-zcon/lib/python3.10/site-packages/dbt_osmosis/core/osmosis.py\", line 360, in execute_sql\n    return execute_sql(self.dbt, self.config.project_root, sql)\n  File \"/Users/jon/.virtualenvs/mesa_dbt-zcon/lib/python3.10/site-packages/dbt/lib.py\", line 176, in execute_sql\n    return runner.safe_run(manifest)\n  File \"/Users/jon/.virtualenvs/mesa_dbt-zcon/lib/python3.10/site-packages/dbt/task/base.py\", line 407, in safe_run\n    result = self.ephemeral_result(ctx.node, started, ctx.timing)\n  File \"/Users/jon/.virtualenvs/mesa_dbt-zcon/lib/python3.10/site-packages/dbt/task/sql.py\", line 53, in ephemeral_result\n    raise dbt.exceptions.NotImplementedException(\"cannot execute ephemeral nodes remotely!\")\ndbt.exceptions.NotImplementedException: cannot execute ephemeral nodes remotely!\n"
}

Operating System

MacOS 13.0

dbt version

1.2.2 & 1.3.0-rc

dbt Adapter

snowflake

dbt Power User version

v0.7.9

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pawanyadavnitkcommented, Oct 11, 2022

Facing the same issue

0reactions
mdesmetcommented, Oct 26, 2022

Latest version doesn’t require any additional dependencies except dbt so closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FR: Set ephemeral node deletion timeout · Issue #4943 - GitHub
I'm using tailscale to cluster some machines, and using magic DNS for node discovery. Nodes can be deleted in such a way that...
Read more >
Ephemeral nodes - Tailscale
Ephemeral nodes differ from regular nodes in a few ways: They are auto-removed from your network after a short period of inactivity. The...
Read more >
Why empheral node does not deleted from zookeeper after ...
I have pass 5*1000 as sessiontimeoutinms and 15*1000 as connectiontimeoutinms. This method is able to create the EPHEMERAL node in my zookeeper ...
Read more >
ZooKeeper Programmer's Guide
Local sessions cannot create ephemeral nodes. Once a local session is lost, users cannot re-establish it using the session-id/password, the session and its ......
Read more >
Ephemeral OS disks - Azure Virtual Machines - Microsoft Learn
Ephemeral OS disks are created on the local virtual machine (VM) storage and not saved to the remote Azure Storage. Ephemeral OS disks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found