Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 2 tasks
coderzawad opened this issue Sep 27, 2024 · 12 comments
Closed
1 of 2 tasks
Labels
Area: @shopify/app @shopify/app package issues State: Waiting for feedback Type: Bug Something isn't working

Comments

@coderzawad
Copy link

coderzawad commented Sep 27, 2024

Please confirm that you have:

  • 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

@coderzawad coderzawad added the Type: Bug Something isn't working label Sep 27, 2024
@sillycube
Copy link

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

@coderzawad
Copy link
Author

But it was working fine with the local cli installed before

@isaacroldan
Copy link
Contributor

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

@coderzawad
Copy link
Author

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.

@coderzawad
Copy link
Author

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

@coderzawad
Copy link
Author

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 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

@isaacroldan
Copy link
Contributor

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

@coderzawad
Copy link
Author

I am using npm and i use global cli

@coderzawad
Copy link
Author

And maybe if u want i can contact u in discord

@coderzawad
Copy link
Author

It is better

@isaacroldan
Copy link
Contributor

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

@coderzawad
Copy link
Author

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 changed to arch linux and it works fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/app @shopify/app package issues State: Waiting for feedback Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants