shopify app stops working all of a sudden


I have a shopify app deployed and running fine on the server for a while. It suddenly stops working today. I can still deploy it successfully, but the app keeps exiting and system keeps restarting as I can see in the monitor log as below:

2024-02-01T19:50:51.343 app[6e824232b233d8] iad [info] [ 0.049177] PCI: Fatal: No config space access function found

2024-02-01T19:50:51.526 app[6e824232b233d8] iad [info] INFO Starting init (commit: bfa79be)…

2024-02-01T19:50:51.536 app[6e824232b233d8] iad [info] INFO Preparing to run: /entrypoint as root

2024-02-01T19:50:51.542 app[6e824232b233d8] iad [info] INFO [fly api proxy] listening at /.fly/api

2024-02-01T19:50:51.548 app[6e824232b233d8] iad [info] 2024/02/01 19:50:51 listening on [fdaa:2:770f:a7b:239:91d3:1d5e:2]:22 (DNS: [fdaa::3]:53)

2024-02-01T19:50:51.551 app[6e824232b233d8] iad [info] /usr/bin/env: ‘sh\r’: No such file or directory

2024-02-01T19:50:51.560 runner[6e824232b233d8] iad [info] Machine started in 600ms

2024-02-01T19:50:52.543 app[6e824232b233d8] iad [info] INFO Main child exited normally with code: 127

2024-02-01T19:50:52.543 app[6e824232b233d8] iad [info] INFO Starting clean up.

2024-02-01T19:50:52.545 app[6e824232b233d8] iad [info] WARN hallpass exited, pid: 307, status: signal: 15 (SIGTERM)

2024-02-01T19:50:52.549 app[6e824232b233d8] iad [info] 2024/02/01 19:50:52 listening on [fdaa:2:770f:a7b:239:91d3:1d5e:2]:22 (DNS: [fdaa::3]:53)

2024-02-01T19:50:53.545 app[6e824232b233d8] iad [info] [ 2.247589] reboot: Restarting system

2024-02-01T19:50:53.633 runner[6e824232b233d8] iad [info] machine has reached its max restart count (10)

Any idea what might be wrong here? I wonder if this is casued by something on my side or this is
on FLY.IO servers?

This looks like a line ending issue where \r is not supposed to be included.

If you’re using git and windows or working with someone who is, then have a look at the core.autocrlf setting in the git docs (Configuring Git to handle line endings - GitHub Docs or by scrolling down here Git - Git Configuration).

I use git on windows. I am the only one working on this repository. The core.autocrlf seetting is set to true which is the way it is supposed to be on windows.

It has been working fine unitl yesterday. I even rolled back the code to the previous version which was deployed and working fine before. But I still got the same error now.

any other suggestions what might be wrong here? thanks!


To be sure it’s not the line ending, apparently in Notepad++ (or your choice of editor) you can do:

View > Show symbol > Show all characters
… which should show the line ending being used, and a possible fix (assuming you have a backup copy!) …
Edit > EOL Conversion → Unix, and then save the file.

Since when you deploy, it will run on a machine that will take ‘sh\r’ literally as it’s written.

I would assume there is some kind of script with that as its first line e.g

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