cli icon indicating copy to clipboard operation
cli copied to clipboard

[Bug]: When i run shopify app dev and also it is the latest version it is stuck

Open Iweisc opened this issue 1 year ago • 10 comments

Please confirm that you have:

  • [x] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • [ ] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

When i run the shopify app dev command it should work. It was working but when i updated my shopify cli version it stopped working

Actual behavior

It iis stuck at this Image

Verbose output

2024-09-27T04:53:11.394Z: Running command app dev 2024-09-27T04:53:11.419Z: Getting a random port... 2024-09-27T04:53:11.431Z: Random port obtained: 50246 2024-09-27T04:53:11.456Z: version check failed, reinstalling

nothing shows after this

Reproduction steps

The way i produced it was :-

Upgrade to the latest shopify cli and then done!

Operating System

Windows 11

Shopify CLI version (check your project's package.json if you're not sure)

Latest shopify version

Shell

windows powershell

Node version (run node -v if you're not sure)

v20.17.0

What language and version are you using in your application?

Node

Iweisc avatar Sep 27 '24 04:09 Iweisc

I think you didn't delete the local CLI before installing the global CLI?

sillycube avatar Sep 27 '24 09:09 sillycube

But it was working fine with the local cli installed before

Iweisc avatar Sep 27 '24 09:09 Iweisc

Can you post more of the verbose output? seems like it's trying to install cloudflared and maybe is failing there

isaacroldan avatar Sep 27 '24 13:09 isaacroldan

Can you post more of the verbose output? seems like it's trying to install cloudflared and maybe is failing there

I randomly fixed it. I changed projects and it was fixed for some odd reason.

Iweisc avatar Sep 30 '24 06:09 Iweisc

Well again i got it when ever i install a new package it stops working

Iweisc avatar Sep 30 '24 07:09 Iweisc

THese are the logs that i could find 2024-09-30T07:12:22.788Z: Running command app dev 2024-09-30T07:12:22.820Z: Getting a random port... 2024-09-30T07:12:22.834Z: Random port obtained: 55508 2024-09-30T07:12:22.878Z: cloudflared already installed, skipping 2024-09-30T07:12:22.891Z: Running system process: · Command: C:/Users/Dev Zawad/AppData/Roaming/npm/node_modules/@shopify/cli/bin/cloudflared.exe tunnel --url http://localhost:55508 --no-autoupdate · Working directory: C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler

2024-09-30T07:12:22.906Z: Reading cached app information for directory C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler... 2024-09-30T07:12:22.908Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:22.918Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:22.930Z: 2024-09-30T07:12:22Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps 2024-09-30T07:12:22Z INF Requesting new quick Tunnel on trycloudflare.com...

2024-09-30T07:12:23.140Z: Reading cached app information for directory C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler... 2024-09-30T07:12:23.143Z: Reading cached app information for directory C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler... 2024-09-30T07:12:23.145Z: Reading cached app information for directory C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler... 2024-09-30T07:12:23.146Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:23.149Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:23.280Z: Ensuring that the user is authenticated with the Partners API with the following scopes: []

2024-09-30T07:12:23.281Z: Getting session store... 2024-09-30T07:12:23.284Z: Validating existing session against the scopes: [ "openid", "https://api.shopify.com/auth/shop.admin.graphql", "https://api.shopify.com/auth/shop.admin.themes", "https://api.shopify.com/auth/partners.collaborator-relationships.readonly", "https://api.shopify.com/auth/shop.storefront-renderer.devtools", "https://api.shopify.com/auth/partners.app.cli.access", "https://api.shopify.com/auth/destinations.readonly" ] For applications: { "partnersApi": { "scopes": [] } }

2024-09-30T07:12:23.287Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection 2024-09-30T07:12:23.288Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:23.711Z: Request to https://accounts.shopify.com/oauth/introspection completed in 420 ms With response headers:

  • cache-control: no-cache, no-store, private, must-revalidate, max-age=0
  • content-type: application/json; charset=utf-8
  • etag: W/"0579dfbee53f764b4863f9451ac387ff"
  • server-timing: processing;dur=35, socket_queue;dur=0.973, edge;dur=1.015, util;dur=0.15, cfRequestDuration;dur=342.999935
  • x-request-id: 33915189-82df-46c0-a1c8-18d8d4eb22eb-1727680343

2024-09-30T07:12:23.716Z: The identity token is valid: true 2024-09-30T07:12:23.717Z: The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2024-09-30T07:12:23.718Z: Verifying that the user has a Partner organization 2024-09-30T07:12:23.719Z: Confirmed partner account exists from cache 2024-09-30T07:12:23.721Z: Getting partner account info from cache 2024-09-30T07:12:23.748Z: Sending "Partners" GraphQL request: query FindApp($apiKey: String!) { app(apiKey: $apiKey) { id title apiKey organizationId apiSecretKeys { secret } appType grantedScopes applicationUrl redirectUrlWhitelist requestedAccessScopes webhookApiVersion embedded posEmbedded preferencesUrl gdprWebhooks { customerDeletionUrl customerDataRequestUrl shopDeletionUrl } appProxy { subPath subPathPrefix url } developmentStorePreviewEnabled disabledFlags } }

With variables: { "apiKey": "*****" }

With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:24.468Z: Request to https://partners.shopify.com/api/cli/graphql completed in 713 ms With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"a738088b135ae646f8a2924ac1b7fb9e"
  • server-timing: processing;dur=358, socket_queue;dur=2.941, util;dur=0.3, cfRequestDuration;dur=654.999971
  • x-request-id: b8f57f9a-0922-4d8d-a76c-918293e1c0c2-1727680343

2024-09-30T07:12:24.506Z: Sending "Partners" GraphQL request: query FindOrganization($id: ID!) { organizations(id: $id, first: 1) { nodes { id businessName } } }

With variables: { "id": "3842301" }

With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:24.896Z: Request to https://partners.shopify.com/api/cli/graphql completed in 387 ms With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"eb072b2f7b2407b1ca684c852410aecf"
  • server-timing: processing;dur=69, socket_queue;dur=7.05, util;dur=0.7, cfRequestDuration;dur=368.999958
  • x-request-id: 2fffae59-9386-4f49-a593-e262fd290241-1727680344

2024-09-30T07:12:24.946Z: Sending "Partners" GraphQL request: query FindOrganization($orgId: ID!, $shopDomain: String) { organizations(id: $orgId, first: 1) { nodes { id businessName stores(shopDomain: $shopDomain, first: 1, archived: false) { nodes { shopId link shopDomain shopName transferDisabled convertableToPartnerTest } } } } }

With variables: { "orgId": "3842301", "shopDomain": "archbtw.myshopify.com" }

With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:25.366Z: Request to https://partners.shopify.com/api/cli/graphql completed in 417 ms With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"85a85c4fea81da1b9bde872631284367"
  • server-timing: processing;dur=111, socket_queue;dur=1.413, util;dur=0.7, cfRequestDuration;dur=398.999929
  • x-request-id: de9c11c9-596b-4ccd-a32f-fcb2ed0b29bc-1727680345

2024-09-30T07:12:25.400Z: Sending "Partners" GraphQL request: query fetchSpecifications($api_key: String!) { extensionSpecifications(apiKey: $api_key) { name externalName externalIdentifier identifier gated experience options { managementExperience registrationLimit } features { argo { surface } } validationSchema { jsonSchema } } }

With variables: { "api_key": "2b8c014c61b5cd9be05086a0f479018e" }

With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:25.811Z: Request to https://partners.shopify.com/api/cli/graphql completed in 407 ms With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"e957a9d438cb9914eacebd3af28d03a4"
  • server-timing: processing;dur=93, socket_queue;dur=2.263, util;dur=0.3, cfRequestDuration;dur=389.999866
  • x-request-id: 657f533f-8eed-498f-a927-b6b75b30d34d-1727680345

2024-09-30T07:12:25.826Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation 2024-09-30T07:12:25.827Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management 2024-09-30T07:12:25.872Z: Sending "Partners" GraphQL request: query activeAppVersion($apiKey: String!) { app(apiKey: $apiKey) { activeAppVersion { appModuleVersions { registrationId registrationUuid registrationTitle type config specification { identifier name experience options { managementExperience } } } } } }

With variables: { "apiKey": "*****" }

With request headers:

  • User-Agent: Shopify CLI; v=3.67.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-09-30T07:12:26.517Z: Request to https://partners.shopify.com/api/cli/graphql completed in 640 ms With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"fdd6f27ffa5bcb48d3a78e7a63acec59"
  • server-timing: processing;dur=309, socket_queue;dur=2.273, util;dur=0.2, cfRequestDuration;dur=611.000061
  • x-request-id: 9d5f6554-b783-40bd-b8a5-b3118cfc9283-1727680345

2024-09-30T07:12:26.537Z: Reading cached app information for directory C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler... 2024-09-30T07:12:26.539Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:26.540Z: Reading the content of file at shopify.app.toml... 2024-09-30T07:12:26.683Z: Reading the content of file at package.json... 2024-09-30T07:12:26.685Z: Reading the content of file at package.json... 2024-09-30T07:12:26.700Z: Running system process: · Command: npm prefix · Working directory: C:/Users/Dev Zawad/Documents/GitHub/shopify-product-bundler

2024-09-30T07:12:27.031Z: Obtaining the dependency manager in directory C:\Users\Dev Zawad\Documents\GitHub\shopify-product-bundler... ╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ You are running a global installation of Shopify CLI │ │ │ │ This project has Shopify CLI as a local dependency in package.json. If you prefer to use that version, run the │ │ command with your package manager (e.g. npm run shopify). │ │ │ │ For more information, see Shopify CLI documentation [1] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ [1] https://shopify.dev/docs/apps/tools/cli

2024-09-30T07:12:27.413Z: Reading the content of file at web/shopify.web.toml... 2024-09-30T07:12:27.414Z: Reading the content of file at web/frontend/shopify.web.toml... 2024-09-30T07:12:29.033Z: 2024-09-30T07:12:29Z INF +--------------------------------------------------------------------------------------------+ 2024-09-30T07:12:29Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): | 2024-09-30T07:12:29Z INF | https://ins-ideas-beginners-elements.trycloudflare.com | 2024-09-30T07:12:29Z INF +--------------------------------------------------------------------------------------------+

2024-09-30T07:12:29.037Z: 2024-09-30T07:12:29Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp] 2024-09-30T07:12:29Z INF Version 2024.8.2 2024-09-30T07:12:29Z INF GOOS: windows, GOVersion: go1.22.2-devel-cf, GoArch: amd64 2024-09-30T07:12:29Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:55508] 2024-09-30T07:12:29Z INF cloudflared will not automatically update on Windows systems. 2024-09-30T07:12:29Z INF Generated Connector ID: 0eabb793-facf-4537-ad78-bad176546926

2024-09-30T07:12:29.132Z: 2024-09-30T07:12:29Z INF Initial protocol quic 2024-09-30T07:12:29Z INF ICMP proxy will use 192.168.11.218 as source for IPv4

2024-09-30T07:12:29.173Z: 2024-09-30T07:12:29Z INF ICMP proxy will use fe80::62c8:97ce:d509:e16e in zone Ethernet as source for IPv6

2024-09-30T07:12:29.181Z: 2024-09-30T07:12:29Z INF cloudflared does not support loading the system root certificate pool on Windows. Please use --origin-ca-pool <PATH> to specify the path to the certificate pool

2024-09-30T07:12:29.184Z: 2024-09-30T07:12:29Z INF Starting metrics server on 127.0.0.1:55524/metrics

2024-09-30T07:12:29.841Z: 2024-09-30T07:12:29Z WRN Your version 2024.8.2 is outdated. We recommend upgrading it to 2024.9.1

2024-09-30T07:12:30.248Z: 2024-09-30T07:12:30Z INF Registered tunnel connection connIndex=0 connection=d838c2fe-7daf-4cbe-bc95-698efed351d1 event=0 ip=198.41.200.193 location=bom11 protocol=quic

Iweisc avatar Sep 30 '24 07:09 Iweisc

Did you try removing the local copy of the CLI? Does this happen using the Global CLI always? Are you using NPM or YARN?

isaacroldan avatar Sep 30 '24 12:09 isaacroldan

I am using npm and i use global cli

Iweisc avatar Sep 30 '24 16:09 Iweisc

And maybe if u want i can contact u in discord

Iweisc avatar Sep 30 '24 16:09 Iweisc

It is better

Iweisc avatar Sep 30 '24 16:09 Iweisc

Hi @coderzawad, we don't offer that kind of support, this seems more likely related to an issue in your environment/configuration, but is hard to say.

If it fails after adding a new dependency, try to do an npm clean && npm i or even clean up the node_modules folder and do a full re-install of dependencies.

The verbose log looks fine, there are no errors there

isaacroldan avatar Oct 15 '24 09:10 isaacroldan

Hi @coderzawad, we don't offer that kind of support, this seems more likely related to an issue in your environment/configuration, but is hard to say.

If it fails after adding a new dependency, try to do an npm clean && npm i or even clean up the node_modules folder and do a full re-install of dependencies.

The verbose log looks fine, there are no errors there

I did everything didn't work so i switched to arch linux and it works fine now

Iweisc avatar Oct 15 '24 14:10 Iweisc