MRColorR / money4band

A multi platform, self updating, lightweight docker stack that use compose to run many passive income applications like Honeygain, EarnApp, IPRoyal Pawns, PacketStream, Peer2Profit, Repocket, Earnfm, Proxyrack, Bitping, PacketShare, etc. that pay you in USD or crypto to share unused internet bandwidth. It includes an auto updater and web dashboard
https://github.com/MRColorR/money4band#-join-the-money4band-community-on-discord
GNU General Public License v3.0
244 stars 39 forks source link

Problem with CPU limit latest version #78

Closed dorel14 closed 10 months ago

dorel14 commented 10 months ago

Describe the bug Hello I download the latest version , and i have this message when launchaing 5) start apps

parsing /opt/money4band-2.7.5/docker-compose.yaml: error while interpolating services.earnapp.cpus: failed to cast to expected type: strconv.ParseFloat: parsing "1,2": invalid syntax
Error starting Docker stack. Please check the configuration and try again.
Now press enter to go back to the menu

Device (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Download latest
  2. Set up .env file with auto set up
  3. Try to start apps

Expected behavior I thought everything will start

For information when i test

locale -k LC_NUMERIC

i got

decimal_point=","
thousands_sep=" "
grouping=3
numeric-decimal-point-wc=44
numeric-thousands-sep-wc=8239
numeric-codeset="UTF-8"
MRColorR commented 10 months ago

Thank you, I'll look into it

MRColorR commented 10 months ago

yes the error message you're encountering (parsing "1,2": invalid syntax) suggests a locale issue as the script expects a dot (.) as the decimal separator, but the system locale is using a comma (,).

Could you help me test a possible solution?: to enforce a consistent locale setting for number parsing set the LC_NUMERIC environment variable to C (which uses a dot as the decimal separator) at the start of the script after the shebang. so please try to edit the first lines of the script so it looks like this:

 #!/usr/bin/env bash
 export LC_NUMERIC="C"

and report back if this solves your issue

dorel14 commented 10 months ago

Hi , it seems to be OK , no more error message with this locale

MRColorR commented 10 months ago

Glad to hear that, the next release will contain this patch among other improvements.