Code Monkey home page Code Monkey logo

Comments (11)

kingram6865 avatar kingram6865 commented on August 16, 2024 2

We had to clear the ms-dos carriage returns in app-entrypoint.sh.
After that, no more ":invalid option" errors.
Points 2 and 3 were not relevant to our issue.
Chances are, there is a bash script that was edited in windows, and depending on the editor
the file was converted and "\r" was embedded.
The fact that @tmrocha89 resolved the issue by switching to an Ubuntu environment suggests that this would be a root issue for that error.
It's cryptic, so it took some time to track down.

As usual, friggin Windoze.

from tutor.

regisb avatar regisb commented on August 16, 2024

The : invalid option message makes me think there's a typo somewhere in your docker-compose file, probably in the lms or the cms sections. Could you post your docker-compose file here?

from tutor.

tmrocha89 avatar tmrocha89 commented on August 16, 2024

No, I don-t believe that is some error on my docker-compose.
With docker I'm able to start all external services. So I did and tried to start lms from terminal (without using docker-compose) and I face the same problem.

But the time I tried to start lms from terminal I didn't try to mount the volumes.
And I'm doing this on a windows machine.

Link to the docker-compose file: https://github.com/tmrocha89/openedx-docker/blob/ginkgo2/docker-compose.yml

from tutor.

regisb avatar regisb commented on August 16, 2024

Indeed, I can't seem to find an error in the docker-compose file.
Maybe the error is related to volumes? I am not familiar with docker under windows. Can you try to comment out all the volume declarations in the docker-compose file and then run "make lms". If it doesn't work please paste the exact output here. If it does, try to uncomment the volume declarations one by one until it doesn't work anymore.

from tutor.

tmrocha89 avatar tmrocha89 commented on August 16, 2024

I tested on ubuntu 16.04 machine and everything work as expected.
I'll check this weekend (probably), but this seems to be a problem with Windows.
edit:
I updated the issue's title.

from tutor.

regisb avatar regisb commented on August 16, 2024

Thanks! I'm sorry I can't help you more, but I don't have a Windows machine... Please report your findings!

from tutor.

regisb avatar regisb commented on August 16, 2024

@tmrocha89 did you make progress about windows support? If not, can I close this?

from tutor.

tmrocha89 avatar tmrocha89 commented on August 16, 2024

No I didn't. I end up switching to Ubuntu.
Yes, you can close this issue. But there are some changes needed in the project to be windows compatible, for example, the way to get the user id USERID ?= $$(id -u).
Thank you for your support

from tutor.

regisb avatar regisb commented on August 16, 2024

@tmrocha89 Unfortunately I don't have time to test this project under windows :-/ But thanks for the comment about USERID: I should take that into account if I decide that we should support windows.

from tutor.

stackedsax avatar stackedsax commented on August 16, 2024

We ran into this error. It was related to Windows line-endings. Remove all \r's and you'll be better.

from tutor.

regisb avatar regisb commented on August 16, 2024

@stackedsax thanks for your input!

  1. In which file(s) did you remove the \r end of line characters?
  2. Can you confirm that tutor works on windows?
  3. How did you install make?

from tutor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.