skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
357 stars 132 forks source link

System reboots #97

Closed Sledge0001 closed 9 months ago

Sledge0001 commented 9 months ago

System reboots unexpectedly between 4-10 hours using stock settings on firmware v2.0.7

Issue does not occur on firmware 2.0 4.

purpleninja21 commented 9 months ago

I do have the same issue. But it reboots after 23 hours. Link for context https://damus.io/note1wkgnm62hy55n68h5ccypxajce4z9jvppt3ew4cpj6tcp64s8ffrqsvd5ml

skot commented 9 months ago

System reboots unexpectedly between 4-10 hours using stock settings on firmware v2.0.7

Issue does not occur on firmware 2.0 4.

Is this with Ocean pool also?

Sledge0001 commented 9 months ago

CK's pool.

qubyt3 commented 9 months ago

CK's pool.

Odd I've let one of my Bitaxe 1366 with firmware v.2.0.7 run on CK pool for the last 3 days straight no problem.

Were you able to capture the log when your device reboots?

Sledge0001 commented 9 months ago

Unfortunately I did not. But it seems to happen only on 2.0.7 it's very stable going back to 2.0.4

purpleninja21 commented 9 months ago

Also just switched from ocean to the https://solo.ckpool.org and it's like restarting every 15 minutes none stop. I tried to re flash the latest firmware again but same issue

purpleninja21 commented 9 months ago

Also just switched from ocean to the https://solo.ckpool.org and it's like restarting every 15 minutes none stop. I tried to re flash the latest firmware again but same issue

Update. 14 hours it's running none stop but I already have a first signs that restart is coming. I can't access dashboard via IP. I bought Bitaxe 204 from open source miner com. Attached photo of the board. Maybe will be helpful. image

benjamin-wilson commented 9 months ago

Are you leaving the dashboard open on a computer?

Can you screenshot the whole AxeOS home page please. If you can capture the crash in the logs that would also be helpful

purpleninja21 commented 9 months ago

No I don't leave it open. And can't access it right now: says that "Safari can't open the page because the network connection was lost" tried to turn on/off wifi on my phone and laptop same issue.

skot commented 9 months ago

this sounds like a networking issue maybe? Can you connect to your router and confirm the bitaxe has an IP on your network?

benjamin-wilson commented 9 months ago

How far away is the bitaxe from your wireless access point?

purpleninja21 commented 9 months ago

Connected devices from router page. espressif is Bitaxe All good on my end image

skot commented 9 months ago

and when you connect to it's IP in your browser, you get the error? I wonder if the bitaxe is restarting.

Can you connect the Bitaxe's USB port to your Mac and use a serial terminal program like CoolTerm to get the logs? use 115200 baud.

Sledge0001 commented 9 months ago

So here's something interesting the 2 xBitAxe's I have from Opensourceminer.com are on 2.0.7 and are stable. The 1 got from altairtech has the issues with 2.0.7

benjamin-wilson commented 9 months ago

So here's something interesting the 2 xBitAxe's I have from Opensourceminer.com are on 2.0.7 and are stable. The 1 got from altairtech has the issues with 2.0.7

Well I made all of them ;) Can you screenshot the AxeOS dashboard on the one with issues?

Sledge0001 commented 9 months ago

20240131_112150 20240131_112218

Here's the one that's acting odd on 2.0.7 :)

benjamin-wilson commented 9 months ago

How did you update to 207? Please screenshot AxeOS

Sledge0001 commented 9 months ago

17067295812422223052997492265710 17067295415858403048997014709002

Firmware was updated via the AxeOS ui

Sledge0001 commented 9 months ago

I'll try the firmware update again and see if I experience the issue again.

benjamin-wilson commented 9 months ago

Ok, please screenshot the overview section again when it's updated

Sledge0001 commented 9 months ago

17067304057481232468430978432454

purpleninja21 commented 9 months ago

I was late. It restarted again while I was figuring out how to use minicom. But seems like I found the error in log image

Sledge0001 commented 9 months ago

17067308225428597156168692981611 And it just crashed.

It states low voltage on the power side for just a few seconds during the reboot.

20240131_115603

purpleninja21 commented 9 months ago

I was late. It restarted again while I was figuring out how to use minicom. But seems like I found the error in log image

image

benjamin-wilson commented 9 months ago

What is being used for power supplies?

benjamin-wilson commented 9 months ago

Oh @Sledge0001 change your vcore to 1200, this is the default. It looks like it changed in the update?

Sledge0001 commented 9 months ago

Oh @Sledge0001 change your vcore to 1200, this is the default. It looks like it changed in the update?

That's where it's set as per the ui. 17067346664112091804107494252842

I've reset it lower, saved and rebooted. Then set it back to default saved and rebooted let's see what this does.

monster4866 commented 9 months ago

u need a better power supply, i have 8 bitaxe, all came with a chep power supply, u need above +5000mv, good 5100-5300mv

https://github.com/skot/bitaxe/issues/118#issuecomment-1904615683

purpleninja21 commented 9 months ago

I heard that I can burn it if more powerful power supply

monster4866 commented 9 months ago

I heard that I can burn it if more powerful power supply

thats why mr volta invented volt ;)

u should plug only a 5v supply in it

Sledge0001 commented 9 months ago

Over 24 hours online with no rebooting!

purpleninja21 commented 9 months ago

24 hours another one reboot! Ordering this one power supply in hope that gonna fix the issue! https://a.co/d/5srOIj4

I received this one with Bitaxe: https://opensourceminer.com/products/5v-5a-power-supply

purpleninja21 commented 9 months ago

24 hours another one reboot! Ordering this one power supply in hope that gonna fix the issue! https://a.co/d/5srOIj4

I received this one with Bitaxe: https://opensourceminer.com/products/5v-5a-power-supply

I know Benjamin check this thread as well since he was active on here. Your website where I bought the Bitaxe can't be reached! In my email I simply asked to ship back the Bitaxe I bought from you to test it and here what is your website responding to me. image

benjamin-wilson commented 9 months ago

24 hours another one reboot! Ordering this one power supply in hope that gonna fix the issue! https://a.co/d/5srOIj4 I received this one with Bitaxe: https://opensourceminer.com/products/5v-5a-power-supply

I know Benjamin check this thread as well since he was active on here. Your website where I bought the Bitaxe can't be reached! In my email I simply asked to ship back the Bitaxe I bought from you to test it and here what is your website responding to me. image

You can email me directly: admin@opensourceminer.com if you want to discuss any issues with your order.

purpleninja21 commented 9 months ago

Was able to cut the log file during restart. Here is log file. bitaxe log restarts.txt

purpleninja21 commented 9 months ago

Was able to cut the log file during restart. Here is log file.

bitaxe log restarts.txt

After another 17 hours it has restarted. According to the Ben I have wifi network connection issues. I doubt that this is the case. I did a restart of the modem, talked with the Comcast and everything is healthy. At some point the best difficulty stops going up and it restarts.

benjamin-wilson commented 9 months ago

I am also investigating a possible memory leak that might be causing this issue.

purpleninja21 commented 9 months ago

Was able to cut the log file during restart. Here is log file.

bitaxe log restarts.txt

After another 17 hours it has restarted. According to the Ben I have wifi network connection issues. I doubt that this is the case. I did a restart of the modem, talked with the Comcast and everything is healthy. At some point the best difficulty stops going up and it restarts.

UPDATE! I have tried 2.0.7 and 2.0.6 versions of firmware and device is restarting within ~24 hours. After Ben's suggestion to roll back to 2.0.4 device isn't crashing and hashing over 24 hours now. The only conclusion what I can make now is that it's not my wifi network connection issue. Might be something with firmware and I am not only the one have this issue. imageimageimageimageimageimageimageimage

benjamin-wilson commented 9 months ago

PXL_20240206_180034572 PXL_20240206_180059840 PXL_20240206_180109486

2.0.7 Going strong, no memory leaks.

purpleninja21 commented 9 months ago

Is this 204 board you have ? Wait few more hours 🤷‍♂️ Is it ok if I will just be running it on the old firmware? P.S. This guy got his Bitaxe from Dcentral few days ago and also had his device restarted on the latest firmware.

https://damus.io/note15n2ymj3ym6lqjylrvpa5u25fjzkl4s2ru7e48f4j2p7qnkkxxj2q7dkmmc

qubyt3 commented 9 months ago

I removed what I said based on @benjamin-wilson comment.

purpleninja21 commented 9 months ago

@yeg0rpetrov I can't help but notice on your home screen the board version is missing...

I'm wondering if with all your troubleshooting something went missing...

Possibly flashing your device with some basic manufacturing data to the NVS partition with the correct firmware and a proper config.cvs file might solve your issue.

  1. Download Skot ESB-Miner repo from Git to your downloads and unzip it. ./Downloads/ESP-Miner-207

  2. Download the esp-miner-factory-204-v2.0.7.bin and place in the ESP-Miner folder ./Downloads/ESP-Miner-207/

  3. Open VS Code, Copy and Paste config.cvs.example and rename the copied file to: config.cvs

  4. Open config.cvs file and edit the following fields:

key,type,encoding,value

main,namespace,,

wifissid,data,string,myssid

wifipass,data,string,mypass

stratumurl,data,string,solo.ckpool.org

stratumport,data,u16,3333

stratumuser,data,string,mywallet ID+workername

stratumpass,data,string,x

asicfrequency,data,u16,485

asicvoltage,data,u16,1200

asicmodel,data,string,BM1366

devicemodel,data,string,ultra

boardversion,data,string,v2.0.4

flipscreen,data,u16,1

invertfanpol,data,u16,1

autofanspeed,data,u16,1

fanspeed,data,u16,100

--> HIT CTRL-S and SAVE

  1. Connect your bitaxe

  2. Select the correct port it connected to (bottom left), select the workspace folder you're working from when prompt

  3. Open a terminal and type: bitaxetool --port /dev/cu.usbmodem1101 (or wtv port your Bitaxe is connected to) --config ./config.cvs --firmware ./esp-miner-factory-204-v2.0.7.bin

note: Bitaxetool need python version 3.11.7 or earlier, it will not work with the latest python v3.12

Your bitaxe will flash, reboot and start hashing again. Report back your finding. Take a particular attention the Heap memory: is it steadily going down, or hovering +- a couple 1000 bytes.

I think WantClue has good tutorial on hes Youtube channel on how to do this, Bitaxe V2 a new update.

Hope this help, let us know if you have any questions. :)

The board version probably missing cause I downgraded firmware to the 2.0.4 🤔 Seems like a hell of steps 😄Thank you, will try to do re flash in that way.

benjamin-wilson commented 9 months ago

@yeg0rpetrov I can't help but notice on your home screen the board version is missing... I'm wondering if with all your troubleshooting something went missing... Possibly flashing your device with some basic manufacturing data to the NVS partition with the correct firmware and a proper config.cvs file might solve your issue.

  1. Download Skot ESB-Miner repo from Git to your downloads and unzip it. ./Downloads/ESP-Miner-207
  2. Download the esp-miner-factory-204-v2.0.7.bin and place in the ESP-Miner folder ./Downloads/ESP-Miner-207/
  3. Open VS Code, Copy and Paste config.cvs.example and rename the copied file to: config.cvs
  4. Open config.cvs file and edit the following fields:

key,type,encoding,value main,namespace,, wifissid,data,string,myssid wifipass,data,string,mypass stratumurl,data,string,solo.ckpool.org stratumport,data,u16,3333 stratumuser,data,string,mywallet ID+workername stratumpass,data,string,x asicfrequency,data,u16,485 asicvoltage,data,u16,1200 asicmodel,data,string,BM1366 devicemodel,data,string,ultra boardversion,data,string,v2.0.4 flipscreen,data,u16,1 invertfanpol,data,u16,1 autofanspeed,data,u16,1 fanspeed,data,u16,100 --> HIT CTRL-S and SAVE

  1. Connect your bitaxe
  2. Select the correct port it connected to (bottom left), select the workspace folder you're working from when prompt
  3. Open a terminal and type: bitaxetool --port /dev/cu.usbmodem1101 (or wtv port your Bitaxe is connected to) --config ./config.cvs --firmware ./esp-miner-factory-204-v2.0.7.bin

note: Bitaxetool need python version 3.11.7 or earlier, it will not work with the latest python v3.12 Your bitaxe will flash, reboot and start hashing again. Report back your finding. Take a particular attention the Heap memory: is it steadily going down, or hovering +- a couple 1000 bytes. I think WantClue has good tutorial on hes Youtube channel on how to do this, Bitaxe V2 a new update. Hope this help, let us know if you have any questions. :)

The board version probably missing cause I downgraded firmware to the 2.0.4 🤔 Seems like a hell of steps 😄Thank you, will try to do re flash in that way.

Please don't do that, it's incorrect

purpleninja21 commented 9 months ago

Damn! 1 day and 8 hours it restarted again on 2.0.4 I give up image

benjamin-wilson commented 9 months ago

Okay it seems conclusive now. This is a network/wireless radio issue. I'm closing the issue.