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

bug: reNgine Installation failed: "sudo ./install.sh -n" | "unknown shorthand flag: 'f' in -f" | make: *** [Makefile:17: certs] Error 125 #1291

Closed
1 task done
0xKayala opened this issue Jun 27, 2024 · 9 comments · Fixed by #1302
Assignees
Labels
bug Something isn't working release/2.1.1

Comments

@0xKayala
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After cloning the rengine repo and changing the "POSTGRES_PASSWORD" password and giving the execution permissions with the command: "chmod +x install.sh". I have executed the following command: sudo ./install.sh -n, but I got an error at "unknown shorthand flag: 'f' in -f" and "make: *** [Makefile:17: certs] Error 125".

I have attached the screenshots for reference, please kindly look into it and let me know the possible resolution so that I can work on it to fix the issue from my end.

Reference Screenshots:

rengine 001
rengine 002
rengine 003

Expected Behavior

It needs to be executed without any issues.

Steps To Reproduce

Followed the required steps:

  1. git clone https://github.com/yogeshojha/rengine && cd rengine
  2. nano .env
  3. chmod +x install.sh
  4. sudo ./install.sh or sudo ./install.sh -n

Environment

- reNgine: 2.1.0
- OS: Linux kali 6.8.11-amd64
- Python: 3.11.9
- Docker Engine: 
- Docker Compose: 20.10.25+dfsg1

Anything else?

No response

@0xKayala 0xKayala added the bug Something isn't working label Jun 27, 2024
Copy link
Contributor

👋 Hi @0xKayala,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@purpleracc00n
Copy link

Had this issue myself, it appeared to be caused by the "docker compose" command in make.bat and Makefile. I changed it to docker-compose and it worked for me. Think it has to do with the docker compose versions.

@yogeshojha
Copy link
Owner

Hi @0xKayala @purpleracc00n which version of docker compose you have?

@purpleracc00n
Copy link

─$ docker version
Client:
Version: 20.10.25+dfsg1
API version: 1.41
Go version: go1.21.3
Git commit: b82b9f3
Built: Wed Oct 18 17:36:27 2023
OS/Arch: linux/amd64
Context: default
Experimental: true

Server:
Engine:
Version: 20.10.25+dfsg1
API version: 1.41 (minimum version 1.12)
Go version: go1.21.3
Git commit: 5df983c
Built: Wed Oct 18 17:36:27 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24ds1
GitCommit: 1.6.24
ds1-1
runc:
Version: 1.1.10+ds1
GitCommit: 1.1.10+ds1-1
docker-init:
Version: 0.19.0
GitCommit:

Docker Compose version v2.5.0

@sunyyer
Copy link

sunyyer commented Jul 4, 2024

My solution is to modify the -f configurations in the Makefile and replace them with docker-compose. Because the new version is no longer needed, but the earlier version is still needed.

@calincoj
Copy link

calincoj commented Jul 4, 2024

Had this issue too, just replace all "docker compose" in make.bat and Makefile with docker-compose

@Rho-9-Official
Copy link

Had this issue too, just replace all "docker compose" in make.bat and Makefile with docker-compose

just tried that, looks like it's working.

@yogeshojha
Copy link
Owner

Thank you @0xKayala for reporting this. Yes we should make this available for both v1 and v2 versions of docker compose. While it is recommended to update to v2 of docker compose but supporting both versions makes sense.

As suggested by @calincoj and @Rho-9-Official I have made changes to makefile, to check for version and use apt command.

I would appreciate if someone of you could test this #1302

yogeshojha added a commit that referenced this issue Jul 7, 2024
…n-failed-sudo-installsh-n-|-unknown-shorthand-flag-f-in-f-|-make-makefile17-certs-error-125

Fix #1291 Refactor Makefiles for windows/linux to accomodate both v1 and v2 of docker compose
@hetvaishnav1106
Copy link

Checking Docker status
#########################################################################
Docker is running.

#########################################################################
Installing reNgine
#########################################################################
.env:38: *** missing separator. Stop.

reNgine installation failed!!

i am getting this error during installation . what should i do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/2.1.1
Projects
None yet
7 participants