Not working on my Pi4 2G - I think

So, I’m building out 7 Pi 4 (2G), 16GB SD. I created an application on my dashboard and added one of the Pi 4s. This Pi has a screen attached as I’d like to see the UI. Then downloaded the OS, imaged the SD, etc. and booted the Pi. I cloned rosetta-at-home from GitHub, installed the CLI tools, logged in to balena with the CLI, switched to my local git directory where I have rosetta-at-home and pushed it out to my device. Push came back successful. I enabled public URL and restarted for good measure. However, I’m getting errors (see below) and it looks like the services are actually starting. I also tried to SSH into BOINC to see if I could enable the UI and that errors. Trying to hit the public URL also give the “tunneling socket could not be established: 500” error.

What am I doing wrong?

19.04.20 21:11:43 (-0700) Restarting service 'boinc-client sha256:***
19.04.20 21:10:41 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:11:43 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:11:43 (-0700) Restarting service 'ui sha256:***
19.04.20 21:10:41 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:10:41 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:11:43 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:11:43 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:11:44 (-0700) Service exited 'boinc-client sha256:***
19.04.20 21:11:44 (-0700) Service exited 'ui sha256:***
19.04.20 21:12:45 (-0700) Restarting service 'boinc-client sha256:***
19.04.20 21:11:43 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:12:45 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:12:45 (-0700) Restarting service ‘ui sha256:17efb27881c073743bd618170b461510e61cfda12b14c382e7b7edacc15a2bd1’
19.04.20 21:11:43 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:11:43 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:12:45 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:12:45 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:12:46 (-0700) Service exited 'boinc-client sha256:***
19.04.20 21:12:46 (-0700) Service exited 'ui sha256:***
19.04.20 21:13:47 (-0700) Restarting service 'boinc-client sha256:***
19.04.20 21:12:45 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:13:47 (-0700) boinc-client /usr/app/start.sh: line 17: syntax error: unexpected end of file
19.04.20 21:13:47 (-0700) Restarting service 'ui sha256:
19.04.20 21:12:45 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:12:45 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:13:47 (-0700) ui /usr/bin/entry.sh: /usr/app/start.sh: /bin/bash^M: bad interpreter: No such file or directory
19.04.20 21:13:47 (-0700) ui /usr/bin/entry.sh: line 59: /usr/app/start.sh: Success
19.04.20 21:13:48 (-0700) Service exited 'boinc-client sha256:***
19.04.20 21:13:48 (-0700) Service exited 'ui sha256:***

hey @BladeRunner,
Welcome to the forums and thanks for using foldforcovid.

From the message above, I think you are hitting CRLF line endings issues.

Can you please confirm the following:

  1. You are using balena CLI on a Windows computer

  2. Are you seeing any warnings like the one below when doing a balena push ?

    [Warn] CRLF (Windows) line endings detected in file: <path>
    
  3. If the above are true, can you try the solution mentioned here:
    piHole webinterface not reachable

Thanks

Hi,
Yes I’m using CLI on Windows 10 and yes, I do see that error. Let me try your suggestion and I’ll let you know.
Thanks

Ok. That was the issue for sure. I couldn’t figure out how to change the GitHub Desktop settings since it doesn’t seem to have a CLI. So I downloaded the zip instead and did a push again. I did get the line feed error on the main.go file for some reason but it still seemed to work. I think before I add the rest of the Pi’s, I’ll set up a Linux environment to use.
Thanks again!

@BladeRunner the CLI has an option --convert-eol to handle this very situation; I’m surprised it didn’t give a notification of this when you pushed but perhaps you’re running an older version; more info here.

It did give me a notification. However, this is my first time using the tool and I didn’t see the warning until it was pointed out to me. Also, thanks for the pointer to the CLI options. I’ll try that on my next push.

1 Like