Changes aren't showing after deploy

Currently I’m making an update to my app for Shopify but for some reason it is not updating. It’s like the app is not being updated. Checking the version logs, they are saying they are pending.

I’m unsure how to fix this issue.

Screenshot of the table columns.

Are you using Apps V2? You can check by running:

flyctl orgs apps-v2 show <org slug>

For Apps V2 the status is not updated at the moment (even though the changes are deployed). This is currently being fixed.

Screen Shot 2023-04-12 at 9.51.14 am

This is what is returned. However it still seems as though I have an older version of my app live and not one of the newest ones.

I re-deployed the app with the changes as a new app, and I still am not seeing changes that have been made. Such as text I have updated is not appearing. When I check the app in dev mode it’s there, but when I deploy to fly.io it is not. Below is my logs, they don’t seem to show an error.

2023-04-12T02:02:52.184 runner[73287357bd7685] syd [info] Pulling container image registry.fly.io/mn-checkout-upgrade:deployment-01GXSK4AFNKZE6FWQWWPTSK9NS

2023-04-12T02:02:57.358 runner[73287357bd7685] syd [info] Unpacking image

2023-04-12T02:03:01.842 runner[73287357bd7685] syd [info] Configuring firecracker

2023-04-12T02:03:02.267 app[73287357bd7685] syd [info] Starting init (commit: e878f33)...

2023-04-12T02:03:02.286 app[73287357bd7685] syd [info] Preparing to run: `docker-entrypoint.sh npm run serve` as root

2023-04-12T02:03:02.302 app[73287357bd7685] syd [info] 2023/04/12 02:03:02 listening on [fdaa:1:c625:a7b:8566:11d7:50d1:2]:22 (DNS: [fdaa::3]:53)

2023-04-12T02:03:03.180 app[73287357bd7685] syd [info] > serve

2023-04-12T02:03:03.180 app[73287357bd7685] syd [info] > cross-env NODE_ENV=production node index.js

2023-04-12T02:03:03.780 app[73287357bd7685] syd [info] [shopify-api/INFO] version 6.1.0, environment Node v18.15.0

2023-04-12T02:04:59.363 runner[73287357bd7685] syd [info] Pulling container image registry.fly.io/mn-checkout-upgrade:deployment-01GXSK9931JX8R1PEFQKS0H1HK

2023-04-12T02:05:00.555 runner[73287357bd7685] syd [info] Unpacking image

2023-04-12T02:05:04.634 runner[73287357bd7685] syd [info] Configuring firecracker

2023-04-12T02:05:04.862 app[73287357bd7685] syd [info] Sending signal SIGINT to main child process w/ PID 513

2023-04-12T02:05:05.443 app[73287357bd7685] syd [info] Starting clean up.

2023-04-12T02:05:06.442 app[73287357bd7685] syd [info] [ 124.250711] reboot: Restarting system

2023-04-12T02:05:07.573 app[73287357bd7685] syd [info] Starting init (commit: e878f33)...

2023-04-12T02:05:07.591 app[73287357bd7685] syd [info] Preparing to run: `docker-entrypoint.sh npm run serve` as root

2023-04-12T02:05:07.608 app[73287357bd7685] syd [info] 2023/04/12 02:05:07 listening on [fdaa:1:c625:a7b:8566:11d7:50d1:2]:22 (DNS: [fdaa::3]:53)

2023-04-12T02:05:08.568 app[73287357bd7685] syd [info] > serve

2023-04-12T02:05:08.568 app[73287357bd7685] syd [info] > cross-env NODE_ENV=production node index.js

2023-04-12T02:05:09.206 app[73287357bd7685] syd [info] [shopify-api/INFO] version 6.1.0, environment Node v18.15.0

2023-04-12T02:06:55.897 app[73287357bd7685] syd [info] [shopify-api/INFO] Processing webhook request | {apiVersion: 2023-01, domain: muscle-nation-dev-store.myshopify.com, topic: app/uninstalled, webhookId: 165046f9-d9bd-4567-bab0-6a052401574b}

2023-04-12T02:06:55.906 app[73287357bd7685] syd [info] [shopify-app/INFO] Webhook processed, returned status code 200

2023-04-12T02:07:59.740 app[73287357bd7685] syd [info] [shopify-app/INFO] Running ensureInstalledOnShop

2023-04-12T02:07:59.742 app[73287357bd7685] syd [info] [shopify-api/INFO] Beginning OAuth | {shop: muscle-nation-dev-store.myshopify.com, isOnline: false, callbackPath: /api/auth/callback}

2023-04-12T02:08:05.384 app[73287357bd7685] syd [info] [shopify-app/INFO] Handling request to complete OAuth process

2023-04-12T02:08:05.385 app[73287357bd7685] syd [info] [shopify-api/INFO] Completing OAuth | {shop: muscle-nation-dev-store.myshopify.com}

2023-04-12T02:08:05.909 app[73287357bd7685] syd [info] [shopify-api/INFO] Creating new session | {shop: muscle-nation-dev-store.myshopify.com, isOnline: false}

2023-04-12T02:08:05.913 app[73287357bd7685] syd [info] [shopify-api/INFO] Registering webhooks | {shop: muscle-nation-dev-store.myshopify.com}

2023-04-12T02:08:08.882 app[73287357bd7685] syd [info] [shopify-app/INFO] Running ensureInstalledOnShop

2023-04-12T02:08:08.883 app[73287357bd7685] syd [info] [shopify-app/INFO] App is installed and ready to load | {shop: muscle-nation-dev-store.myshopify.com}

2023-04-12T02:08:09.089 app[73287357bd7685] syd [info] [shopify-app/INFO] Running ensureInstalledOnShop

2023-04-12T02:08:09.090 app[73287357bd7685] syd [info] [shopify-app/ERROR] ensureInstalledOnShop did not receive a shop query argument | {shop: undefined}

2023-04-12T02:08:09.192 app[73287357bd7685] syd [info] [shopify-app/INFO] Running validateAuthenticatedSession

2023-04-12T02:08:09.490 app[73287357bd7685] syd [info] [shopify-app/INFO] Request session has a valid access token | {shop: muscle-nation-dev-store.myshopify.com}

2023-04-12T02:20:54.933 runner[73287357bd7685] syd [info] Pulling container image registry.fly.io/mn-checkout-upgrade:deployment-01GXSM6W3WR2NBB8ZZAE324YMM

2023-04-12T02:20:56.098 runner[73287357bd7685] syd [info] Unpacking image

2023-04-12T02:20:56.311 runner[73287357bd7685] syd [info] Configuring firecracker

2023-04-12T02:20:56.760 app[73287357bd7685] syd [info] Sending signal SIGINT to main child process w/ PID 513

2023-04-12T02:20:57.712 app[73287357bd7685] syd [info] Starting clean up.

2023-04-12T02:20:58.713 app[73287357bd7685] syd [info] [ 951.194651] reboot: Restarting system

2023-04-12T02:20:59.944 app[73287357bd7685] syd [info] Starting init (commit: e878f33)...

2023-04-12T02:20:59.964 app[73287357bd7685] syd [info] Preparing to run: `docker-entrypoint.sh npm run serve` as root

2023-04-12T02:20:59.982 app[73287357bd7685] syd [info] 2023/04/12 02:20:59 listening on [fdaa:1:c625:a7b:8566:11d7:50d1:2]:22 (DNS: [fdaa::3]:53)

2023-04-12T02:21:00.870 app[73287357bd7685] syd [info] > serve

2023-04-12T02:21:00.870 app[73287357bd7685] syd [info] > cross-env NODE_ENV=production node index.js

2023-04-12T02:21:01.488 app[73287357bd7685] syd [info] [shopify-api/INFO] version 6.1.0, environment Node v18.15.0

The log looks fine. Different docker images are deployed each time.
Can you share your fly.toml please?

One other quick thing (since this was the solution to recent forum post with similar symptoms): if you haven’t already, try clearing your browser cache.

app = "mn-checkout-upgrade"
kill_timeout = 0
primary_region = "syd"

[env]
  HOST = "https://mn-checkout-upgrade.fly.dev"
  PORT = "8080"
  SCOPES = "write_products,write_discounts,unauthenticated_read_product_listings,read_price_rules,read_discounts"
  SHOPIFY_API_KEY = "###############"

[[services]]
  protocol = ""
  internal_port = 8080

  [[services.ports]]
    port = 80
    handlers = ["http"]
    force_https = true

  [[services.ports]]
    port = 443
    handlers = ["tls", "http"]

I have tried clearing the cache and incognito to no affect.

https://mn-checkout-upgrade.fly.dev doesn’t seem to respond at all.
What do you see in the logs (flyctl logs) when you try to make a request to the app?:

curl https://mn-checkout-upgrade.fly.dev

Restarted the machine as it was crashing. It’s now doing this. Wasn’t the other day.

2023-04-13T23:18:45.396 app[73287357bd7685] syd [info] > serve

2023-04-13T23:18:45.396 app[73287357bd7685] syd [info] > cross-env NODE_ENV=production node index.js

2023-04-13T23:18:46.011 app[73287357bd7685] syd [info] [shopify-api/INFO] version 6.1.0, environment Node v18.15.0

2023-04-13T23:18:47.119 proxy[73287357bd7685] syd [error] instance refused connection. is your app listening on 0.0.0.0:8080? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)

2023-04-13T23:18:49.129 proxy[73287357bd7685] syd [warn] Failed to proxy HTTP request (error: no known healthy instances found for route tcp/443. (hint: is your app shutdown? is there an ongoing deployment with a volume or using the 'immediate' strategy? if not, this could be a delayed state issue)). Retrying in 1000 ms (attempt 50)

2023-04-13T23:18:57.136 proxy[73287357bd7685] syd [error] instance refused connection. is your app listening on 0.0.0.0:8080? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)

Alright, added additional machine and moved PORT from 8080 to 8081. Updated version of app is still not coming through. This is the logs:

2023-04-13T23:52:58.313 app[73287357bd7685] syd [info] > serve

2023-04-13T23:52:58.313 app[73287357bd7685] syd [info] > cross-env NODE_ENV=production node index.js

2023-04-13T23:52:58.972 app[73287357bd7685] syd [info] [shopify-api/INFO] version 6.1.0, environment Node v18.16.0

2023-04-13T23:54:50.343 app[73287357bd7685] syd [info] [shopify-app/INFO] Running ensureInstalledOnShop

2023-04-13T23:54:50.344 app[73287357bd7685] syd [info] [shopify-app/ERROR] ensureInstalledOnShop did not receive a shop query argument | {shop: undefined}

2023-04-13T23:54:50.500 app[73287357bd7685] syd [info] [shopify-app/INFO] Running ensureInstalledOnShop

This looks like a problem with shopify-app-js:

That only appears if I call the URL outside a Shopify store which is normal. When I go to the store where the app is installed, it is showing the app working, but an older version without the changes.

You can check which docker image is deployed using fly machines status <id>.

Also, fresh flyctl now updates release status for Apps V2, so fly releases should show correct information.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.