torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
107 stars 24 forks source link

Getting "/bin/sh: git: not found <WARN:Cron:RealmCurrency> No active accounts to run the cron" while running the Code Redeems #34

Closed lebeastmode closed 4 months ago

lebeastmode commented 4 months ago

Just trying to use the code redemption for starrail and zzz and getting the following output Does it mean its working?

2024-07-14 15:55:34 > start
2024-07-14 15:55:34 > node index.js
2024-07-14 15:55:34 
2024-07-14 15:55:35 2024-07-15 06:55:35 <INFO:System> Log level set to info
2024-07-14 15:55:35 2024-07-15 06:55:35 <INFO:Client> Loading configuration data
2024-07-14 15:55:35 2024-07-15 06:55:35 <INFO:Client> Loaded 5 configuration entries
2024-07-14 15:55:35 2024-07-15 06:55:35 <WARN:Client> Skipping discord platform (inactive)
2024-07-14 15:55:35 2024-07-15 06:55:35 <WARN:Client> Skipping telegram platform (inactive)
2024-07-14 15:55:35 2024-07-15 06:55:35 <WARN:Client> Skipping webhook platform (inactive)
2024-07-14 15:55:35 2024-07-15 06:55:35 <INFO:Cron> Initialized 9 cron jobs
2024-07-14 15:55:35 2024-07-15 06:55:35 <WARN:Client> Skipping honkai account (inactive)
2024-07-14 15:55:35 2024-07-15 06:55:35 <WARN:Client> Skipping genshin account (inactive)
2024-07-14 15:55:37 2024-07-15 06:55:37 <INFO:ZenlessZoneZero> Logged into (removed) Phaethon (NA)
2024-07-14 15:55:37 2024-07-15 06:55:37 <INFO:StarRail> Logged into (removed) Trailblazer (NA)
2024-07-14 15:55:37 2024-07-15 06:55:37 <INFO:Client> Initialize completed (2411.33943ms)
2024-07-14 15:56:00 /bin/sh: git: not found
2024-07-14 16:00:00 2024-07-15 07:00:00 <WARN:Cron:RealmCurrency> No active accounts to run the cron
FlamingFox911 commented 4 months ago

I have a PR (#35) that resolve this. Problem was caused by the Alpine image not including git by default. It needs to be explicitly installed during docker build.

Note: This only resolves the git issue, not the warning.

torikushiii commented 4 months ago

yes, everything runs just fine. the git error was for versioning but not needed, and RealmCurrency is a cronjob that is specific for genshin which is not needed as well since you didn't have any genshin account, so you can safely ignore those.