Hi all, I am a new user, and am trying to get an instance of the calculation engine running locally. I am building on Ubuntu 22.04.3 via WSL on Windows 11.
I’ve followed the quick start guide and the installation instructions as described on the Calculation Engine documentation page.
I am able to execute all the steps up through launching the application, which appears to succeed at first, but results in several containers immediately crashing or perpetually restarting.
When I check the logs, I am greeted with the same message repeated over and over:
celery-worker-1 | /bin/env: ‘bash\r’: No such file or directory
celery-worker-1 | /bin/env: use -[v]S to pass options in shebang lines
It should be noted that I had to change the line endings of launch.sh from CRLF to LF in order to launch the containers, I suspect it may be a similar issue with file/line formatting.
Has anyone experienced this or is there anyone that might know how to best address this? Thanks in advance!
Thank you for the feedback and for bringing this up!
It really looks like the issue may be related to the file formatting of your launch.sh, due to the differences in line ending in Windows vs Unix. The file should use LF line endings by default. If you are building on Ubuntu via WSL, LF should indeed be the default, so you typically shouldn’t need to change anything.
However, please note that you only need to follow the steps outlined in the User quickstart guide to use the Calculation Engine (CE).
The Developer installation steps is primarily for developers working on testing and modifying the CE. There’s no need to build it on your local machine unless you’re planning to contribute to the development of the system.
We’ll make sure to clarify this in the documentation.
Thanks for your response! As you correctly suspected, the line endings were the problem. I was trying to build and run the CE on WSL, but I had pulled the repo initially through git bash, which had changed the line endings to CRLF automatically. Deleting and re-pulling the repo while in my WSL terminal the entire time fixed the issue.
Also, sorry for the confusion – my ultimate goal is to be a contributing developer, so that is why I am trying to build the CE locally. For now, however, I am just trying to follow the tutorial and get familiar with the workflows!