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

Problem starting the docker image #133

Open
MatsGej opened this issue Jan 4, 2023 · 5 comments
Open

Problem starting the docker image #133

MatsGej opened this issue Jan 4, 2023 · 5 comments

Comments

@MatsGej
Copy link

MatsGej commented Jan 4, 2023

It tries to run run.sh and get this error
2023-01-04 23:41:59 ops-api | run.sh: line 5: syntax error near unexpected token elif' '023-01-04 23:41:59 ops-api | run.sh: line 5: elif [[ ! -z "$INIT_DB" ]]; then

I assume something is not setup correctly, but what have I been missing?

Thanks
Mats

@TheGreatRefrigerator
Copy link
Contributor

@MichaelsJP did you mistake this for an ors backend issue? There doesn't seem to be any work done on this poiservice issue

@effnstfn
Copy link

I am running into the same error when trying to run. Has there been any solution/fix?

@MatsGej
Copy link
Author

MatsGej commented Oct 31, 2023

I think it can be the cr/lf problem. Try running it in a linux virtual machine

@effnstfn
Copy link

effnstfn commented Oct 31, 2023

Managed to get this to work eventually.

Fixed issues in the code using https://www.shellcheck.net/

And then fixed the cr/lf issue using VS Code, instructions from ChatGPT for anyone with same problem:

  1. Open the File: Open the file you want to convert in VS Code.
  2. View Line Ending Type: Look in the status bar at the bottom of the VS Code window. You’ll see an indicator showing the current line ending type used in the file - either CRLF (for \r\n, Windows-style) or LF (for \n, Unix-style).
  3. Change Line Endings:
  • Click on the CRLF or LF indicator in the status bar.
  • A menu will pop up at the top, allowing you to switch between CRLF (Carriage Return + Line Feed) and LF (Line Feed).
  • Select the desired line ending type. If you’re converting to Unix style, choose LF.
  1. Save the File: After changing the line endings, save the file. The file will now have the new line endings.

@Papuszkin
Copy link

I've encountered the same issue and your fix worked. If more people get this error maybe it would be a good idea to update run.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants