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

Server system stopped working after recent update. #1249

Closed
Yamanipanuchi opened this issue Nov 16, 2020 · 14 comments
Closed

Server system stopped working after recent update. #1249

Yamanipanuchi opened this issue Nov 16, 2020 · 14 comments

Comments

@Yamanipanuchi
Copy link

user@miningserver:~/RainbowMiner$ sudo ./start.sh
Transcript started, output file is .\Logs\RainbowMiner_2020-11-16_18-54-58.txt
__________ .__ . _____ .
_
____ _____ || _ | ______ _ / \ || ____ ___________
| /_ \ | |/ | __ \ / _ \ / / / \ / | |/ _/ __ _ __
| | \ / __ | | | \ _\ ( <
> ) / Y \ | | \ /| | /
|
|_ /(____ /
|| / /_/ /_/_|__ /|| /__ >__|
/ / / / / / /

Starting v4.6.4.9! Please wait..

Detecting devices ..
Initialize configuration ..
Write-Log : Please check your configuration: Conversion from JSON failed with error: Invalid character after parsing property name. Expected ':' but got: ". Path 'DisableMSIAmonitor', line 69, position 3.
At /home/user/RainbowMiner/Modules/Core.psm1:291 char:9

  •     Write-Log -Level Error "Please check your configuration: $($_ ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Log

Write-Log : is invalid. Cannot continue.
At /home/user/RainbowMiner/Modules/Core.psm1:459 char:9

  •     Write-Log -Level Error "$($Session.ConfigFiles["Config"].Path ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Log

Transcript stopped, output file is /home/user/RainbowMiner/Logs/RainbowMiner_2020-11-16_18-54-58.txt
user@miningserver:~/RainbowMiner$

@RainbowMiner
Copy link
Owner

It looks like your config.txt contains some syntax error. Would you please look into the config.txt and inspect the line with DisableMSIAmonitor?
The error message says, there is a ":" missing.

@RainbowMiner
Copy link
Owner

Could you please upload your config.txt (please remove the secret API keys) - do you have more than one config.txt, e.g. for clients in subfolders?

@Yamanipanuchi
Copy link
Author

config.txt

@Yamanipanuchi
Copy link
Author

Yes, I have other Configs.

@Yamanipanuchi
Copy link
Author

I checked all of them, DisableMSIAmonitor is the same in each one.

@RainbowMiner
Copy link
Owner

Was this a single version step update?
v4.6.4.8 -> v4.6.4.9

And, which Powershell version are you using?

@RainbowMiner
Copy link
Owner

Could you also please upload the current .\Logs\RainbowMiner_2020-11-16.txt ? This is a pretty strange issue.

@Yamanipanuchi
Copy link
Author

It was a single step.

user@miningserver:~/RainbowMiner$ pwsh
PowerShell 6.2.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

PS /home/user/RainbowMiner>

RainbowMiner_2020-11-16.txt

@Yamanipanuchi
Copy link
Author

I do see some of my other rigs upgraded with no issue. So I may be an isolated issue. Just want to make sure you have the info quickly though.

@RainbowMiner
Copy link
Owner

How weird! It really seems to have a problem with the config.txt parsing, for whatever reason. I'll quickly setup a linux test system and give your config a shot.
What you could do, is to upgrade Powershell to v7.0.3. I'll add an upgrade script later. But these are the steps:

wget https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-7.0.3-linux-x64.tar.gz -O /tmp/powershell.tar.gz
sudo rm -f /usr/bin/pwsh
sudo mkdir -p /opt/microsoft/powershell/7
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
sudo chmod +x /opt/microsoft/powershell/7/pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
sudo rm -rf /tmp/powershell.tar.gz

@Yamanipanuchi
Copy link
Author

Cool, Ya I followed your steps there.. Upgraded. Of course I tried it just in case. Same outcome.

@RainbowMiner
Copy link
Owner

Ok, could you please now upload all other config.txt in all subdirectories of ./Config ?
Explanation: the parser reads through all subdirectories and looks, if it can find another config.txt.

@Yamanipanuchi
Copy link
Author

Got it. I slowly removed each sub config until the script ran. That lead me to the config that was bad and sure enough there was a typo in one.

@RainbowMiner
Copy link
Owner

Very good :) I have updated the error checking for that parser at startup. Now you will see a warning message, but the system will still start.

RainbowMiner added a commit that referenced this issue Nov 16, 2020
- change startup parser to show warnings instead of error, if sub-config files contain JSON syntax errors. But system will still start (issue #1249)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants