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

OCCP Stack not working for Windows Machines #151

Closed
Igor-SBx opened this issue Nov 18, 2024 · 5 comments
Closed

OCCP Stack not working for Windows Machines #151

Igor-SBx opened this issue Nov 18, 2024 · 5 comments

Comments

@Igor-SBx
Copy link

Igor-SBx commented Nov 18, 2024

I've been trying to create the OCCP Stack with my Windows machine but I keep getting this error to create the Amazon Elastic Container Service:

/bin/sh: line 1: /home/appuser/ocpp-gateway/run-server.sh: cannot execute: required file not found

Some other issues like this, mentioned that it was caused by the CRLF file termination on Windows machines, but I tried:

  • Convert CRLF to LF through .gitattributes
  • Convert CRLF to LF by using vscode
  • Clone the git repo and deploy right away, without opening any file in my machine

But none of these steps take any effect, could you please provide guidance?

logs: log-events-viewer-result.csv

@galinsky
Copy link
Collaborator

I'm not sure I understand what you're trying to do. Are you using a Windows machine to deploy the solution to AWS, or are you attempting to run the code locally on your Windows machine?

@Igor-SBx
Copy link
Author

I was trying to deploy OCCP Stack by using cdk following this guide. But the container created in Amazon Elastic Container Service returned this error:

/bin/sh: line 1: /home/appuser/ocpp-gateway/run-server.sh: cannot execute: required file not found

@galinsky
Copy link
Collaborator

galinsky commented Dec 7, 2024

during the cdk deploy stage you will be presented with the output of the docker build process. can you include the output of that here?

@Igor-SBx
Copy link
Author

I fixed this error by updating the CLRF file termination by LF and cleaning my build cache.

The build is passing but the process is not streamlined for Windows users and there are some complaints about this on other forums as well. Maybe, it's worth adding a script to parse this file termination in Windows machines before it goes to the build itself.

It took some days to get this finally working on my Windows machine and probably many people have been in the same situation. Another CloudStack version to run specifically from Windows machines would substantially improve my experience

@galinsky
Copy link
Collaborator

You should be able to control line endings by properly configuring your git, see: https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings?platform=windows

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

2 participants