dubinc / dub

Open-source link management infrastructure
https://dub.co
GNU Affero General Public License v3.0
16.86k stars 1.72k forks source link

Issue with tb push command when setting up local development environment #630

Closed Vipul-7 closed 4 months ago

Vipul-7 commented 4 months ago

I'm reaching out to report an issue I encountered while setting up the local development environment for dub using the guide provided here.

After successfully authenticating to Tinybird, I attempted to push my changes using the tb push command. However, I encountered the following error: Error: ** Failed running ./endpoints/timeseries.pipe: ** Failed pushing pipe timeseries: There is already a Node with name "timeseries". Pipe and Data Source names must be globally unique

It seems that there is a conflict with the node name "timeseries", as it's already in use. According to the documentation, pipe and data source names must be globally unique.

I have followed the steps outlined in the guide carefully, but I'm unsure how to resolve this issue. Could anyone please provide guidance on how to address this problem and successfully push my changes?

@steven-tey can you please help me with this?

linear[bot] commented 4 months ago

ENG-193 Issue with tb push command when setting up local development environment

Vipul-7 commented 4 months ago

Can anyone please look at this issue as I'm having trouble in between during the code setup?

Uzaifm127 commented 4 months ago

This is not a problem, but a mistake done by you. here is how:

This is the exact error I faced in the past while setting up codebase locally. here is the solution for this:

  1. You have to install the tinybird cli using pip. You can either go with pip or use python virtual environment (mentioned in the docs of tinybird).
  2. Run tb --help command to check if the CLI is installed properly or not.
  3. Move to the packages/tinybird and authenticate yourself with your admin auth token. Run tb auth --token to do this.
  4. You must use your admin auth token which is recommended for cli to authenticate. If you use any other token, then it will be failed.

    Screenshot (154)

Now, Run the tb push command and the tinybird setup will be completed.

Note: Re-install the complete codebase of dub using git clone command before proceeding with the above method.

steven-tey commented 4 months ago

You might also need to remove the existing timeseries pipe in Tinybird for this to work @Vipul-7

Vipul-7 commented 4 months ago

Thank you @Uzaifm127 and @steven-tey