Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    I Fixed Mine

    Scheduled Pinned Locked Moved Helium Hotspot
    5 Posts 2 Posters 200 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jason Timmins
      last edited by

      Hi Guys,

      I fixed my miner, but only with the help of this article...

      https://zolder.io/hacking-my-helium-crypto-miner/

      The author had his apart, found the console/SSH login credentials (user: ubuntu, password: ubuntu) and then dissected the Linux installation.

      Here's what was the matter with mine, when Docker tried to start it moaned about...

      3 matches found based on name: network ubuntu_default is ambiguous
      

      You can view the Docker networks using this command...

      docker network ls
      

      Sure enough it showed multiple entries for the 'ubuntu_default' network...

      root@pycom-miner:/home/ubuntu# docker network ls
      NETWORK ID     NAME             DRIVER    SCOPE
      8aec6b6f5e90   bridge           bridge    local
      188661078b8f   host             host      local
      9afa4799c04c   none             null      local
      40522c0fa720   ubuntu_default   bridge    local
      b42ea5ebc1ad   ubuntu_default   bridge    local
      ca1d3391bf71   ubuntu_default   bridge    local
      

      I removed all but one of those 'ubuntu_default' networks using...

      docker network rm <NETWORK ID>
      

      So I did...

      root@pycom-miner:/home/ubuntu# docker network rm b42ea5ebc1ad
      b42ea5ebc1ad
      root@pycom-miner:/home/ubuntu# docker network rm ca1d3391bf71
      ca1d3391bf71
      

      This seemed to tidy things up a bit and allowed to the update to run. It took my miner from 1.0.5 to 1.0.7.

      It's now doing OK. My local LoRaWAN devices are now connecting to this hotspot and I'm expecting the Helium Explorer to start reporting activity again soon.

      Pro Tip: I was struggling to get the USB-C console to work with a USB-A to USB-C cable. Once I switched to using a USB-C port on my laptop with a USB-C to USB-C cable (at 115,200 baud for the serial terminal in PuTTY), I got a reliable connection and was able to watch the device boot. I was also able to sign-in using ubuntu/ubuntu.

      Pro Tip - Auto Updating: The miner will check for updates from Pycom every 5 minutes but not until the miner has been on for 30 minutes. You can see details of the updating mechanism in the article mentioned above.

      Anyway, I hope that helps. I took mine apart to do all this but, as long as you can reach it via SSH, you can login remotely and fix the installation from there.

      D 1 Reply Last reply Reply Quote 3
      • D Offline
        DC @Jason Timmins
        last edited by

        @Jason-Timmins
        Very nice! Thanks for the info. I will check on the one that has constant disk activity to see if that's the issue. It hasn't updated to the version with the web dashboard even though it is hooked up to WiFi and idling on my desk for a week. It is not onboarded yet - I just wanted to have it update before I onboard/assert and install it.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jason Timmins @DC
          last edited by

          @DC
          It won't update until it's provisioned (I assume that means 'part of the blockchain'), there's a bit of code in the update script that blocks that...

          if [ ! -f /etc/provisioning.txt ]; then
              exit 0
          fi
          

          That's saying... if there's no provisioning file, exit the update script immediately, so no updates happen until it's provisioned.

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            DC @Jason Timmins
            last edited by DC

            @Jason-Timmins
            I logged in and found the same - three ubuntu_default bridges. I deleted two of them then issued a reboot. I then onboarded the hotspot, but didn't assert its location yet. We'll see if this works. Great sleuthing!

            Now that I can log in via ssh, I can properly halt them or reboot them without pulling the plug. YAY!

            UPDATE: It works now and has updated to the version with the web interface.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              Jason Timmins @DC
              last edited by

              @DC
              That's great. I'm glad my tip helped and that you got it working and updating.

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom