• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Support
  • label Docker

Docker error during Misago installation on localhost (Windows)

Indexohmany
Aug. 8, 2024
chat_bubble_outline 9
  • check_circle
  • link
    Indexohmany
    Members 17 posts
    Aug. 8, 2024, 11:15 a.m. Aug. 8, 2024, 11:15 a.m.
    link

    I get an error message with the

    docker compose up
    

    comand when I'm trying to install and use misago as dev mod. Here's the error message:

    => ERROR [misago 8/8] RUN ./dev bootstrap_plugins                                                     0.4s 
    ------
     > [misago 8/8] RUN ./dev bootstrap_plugins:
    0.385 /bin/sh: 1: ./dev: not found
    ------
    failed to solve: process "/bin/sh -c ./dev bootstrap_plugins" did not complete successfully: exit code: 127
    

    please can someone help me to figure out what's wrong and how to solve it ?

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 8, 2024, 3:03 p.m. Aug. 8, 2024, 3:03 p.m.
    link

    /bin/sh: 1: ./dev: not found looks like bash script was executed by shell interpreter instead of bash. I would need to reproduce this on my machine first to confirm its an issue.

  • link
    Indexohmany
    Members 17 posts
    Aug. 8, 2024, 4:46 p.m. Aug. 8, 2024, 4:46 p.m.
    link

    But I used a Git Bash, not a shell

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 8, 2024, 6:30 p.m. Aug. 8, 2024, 6:30 p.m.
    link

    It's what sh in /bin/sh stands for.

  • link
    Indexohmany
    Members 17 posts
    Aug. 9, 2024, 5:53 p.m. Aug. 9, 2024, 5:53 p.m.
    link

    But can you help me on how to go about solving this? I can't connect to the forum server page at all. I'm not used to using docker so I'm a bit unprepared.

    2.png

    PNG, 110.3 KB, uploaded by Indexohmany on Aug. 9, 2024.

    1.png

    PNG, 167.6 KB, uploaded by Indexohmany on Aug. 9, 2024.

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 9, 2024, 6:21 p.m. Aug. 9, 2024, 6:21 p.m.
    link
    check_box

    Marked as best answer by Aug. 9, 2024, 6:50 p.m..

    So I've googled it and it looks like this issue is caused by you being on Windows. When you did git clone it replaced line endings from unix ones (LF) to windows ones (CRLF). Those windows line endings are syntax errors within linux containers, causing the error you see.

    You need to disable line endings conversion in your git. I don't have Windows so I am unable to help here, but here's question about it on Reddit.

    Good luck!

  • link
    Indexohmany
    Members 17 posts
    Aug. 9, 2024, 6:26 p.m. Aug. 9, 2024, 6:26 p.m.
    link

    Ohh I got the point now. I'll search about how to solve this situation.

    thank you

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 9, 2024, 6:27 p.m. Aug. 9, 2024, 6:27 p.m.
    link

    I will try to make a clean setup of Misago on my Mac to see if installation instruction in readme is still valid just to be sure.

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 9, 2024, 6:34 p.m. Aug. 9, 2024, 6:34 p.m.
    link

    It works and installs for me. But as an experiment I've changed line endings in dev file to windows format and tried another installation. This resulted in exact same error you've got:

    Zrzut ekranu 2024-08-9 o 18.33.32.png

    Zrzut ekranu 2024-08-9 o 18.33.32.png

    PNG, 46.2 KB, uploaded by rafalp on Aug. 9, 2024.

  • link
    rafalp
    Project Lead 2027 posts
    Aug. 9, 2024, 6:50 p.m. Aug. 9, 2024, 6:50 p.m.
    link

    Added mention of this to the readme.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago