Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: yonydouna on December 23, 2018, 10:11:55 PM



Title: "Cannot find Signature"... What's this?
Post by: yonydouna on December 23, 2018, 10:11:55 PM
I have a D3 that some time ago I installed the latest version of blissz firmware and it went great, recently I had to reinstall the original bitmain firmware for maintenance issues and when I'm going to reinstall the Blissz firmware I get a message that says "Cannot find Signature !!!", does anyone know how to fix it?

It is urgent for me to have Blissz's firmware since bitmain has a lot of problems, thanks. Cry Cry


Title: Re: "Cannot find Signature"... What's this?
Post by: BitMaxz on December 23, 2018, 10:42:21 PM
Have you tried to check the firmware first if its compatible with your D3 it might be incompatible that is why it shows "cannot find Signature"

You must flash your miner with a correct firmware if you flash it with incompatible firmware it might brick your miner or it may cause more errors.

I suggest you to always use the firmware from bitmain for safety purposes.


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 23, 2018, 11:12:47 PM
Have you tried to check the firmware first if its compatible with your D3 it might be incompatible that is why it shows "cannot find Signature"

You must flash your miner with a correct firmware if you flash it with incompatible firmware it might brick your miner or it may cause more errors.

I suggest you to always use the firmware from bitmain for safety purposes.
I'm sure it's compatible because that firmware I had previously installed in the ASIC and I was mining with it for almost 3 months, only for maintenance issues I had to install the previous one and now when I try to reinstall the Blissz version, I get with this message


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 24, 2018, 03:28:24 AM
this happened because you installed the the latest D3 firmware which has the signature check function which the current blissz you trying to flush doesn't match with.

you have 3 solutions for this, i will start with the easiest.

1- hard reset your miner " not through the web" but with by pressing the reset bottom for 5 seconds

2-find an older/different version of the D3 firmware, flush it, and then flush blissz

3- long story but 100% guaranteed to work.


modify the current firmware on your miner by using putty SSH.

get to the upgrade.cgi file and you will find a  function related to md5 check ,which checks the signature before installing it, you need to either delete it or comment it, if you don't know how to do it,send the code and i'll modify it for you.




*edit > please move your topic to the mining support. you will get more people trying to help there. you can do so by using clicking the "move topic" bottom found on the bottom left side .


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 24, 2018, 07:09:12 AM
this happened because you installed the the latest D3 firmware which has the signature check function which the current blissz you trying to flush doesn't match with.

you have 3 solutions for this, i will start with the easiest.

1- hard reset your miner " not through the web" but with by pressing the reset bottom for 5 seconds

2-find an older/different version of the D3 firmware, flush it, and then flush blissz

3- long story but 100% guaranteed to work.


modify the current firmware on your miner by using putty SSH.

get to the upgrade.cgi file and you will find a  function related to md5 check ,which checks the signature before installing it, you need to either delete it or comment it, if you don't know how to do it,send the code and i'll modify it for you.




*edit > please move your topic to the mining support. you will get more people trying to help there. you can do so by using clicking the "move topic" bottom found on the bottom left side .
Ok, I already moved it, I'm new in this forum, sorry

I'm going for the second option, any idea of where I can get an old version of the D3 firmware? since in the official page only the last version appears.


Title: Re: "Cannot find Signature"... What's this?
Post by: thierry4wd on December 24, 2018, 10:05:33 AM
Hi, here, I have a habit of keeping ALL the firmware in stock, for this kind of problem precisely;)

http://www.k-upload.fr/afficher-fichier-2018-12-24-130034350antminerd320.gz.html      ( Antminer-D3-201711201715-0M.tar.gz )

in view of the practice of bitmain, in my opinion, you can not reflash another firmware ... just try


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 24, 2018, 03:36:43 PM
Hi, here, I have a habit of keeping ALL the firmware in stock, for this kind of problem precisely;)

http://www.k-upload.fr/afficher-fichier-2018-12-24-130034350antminerd320.gz.html      ( Antminer-D3-201711201715-0M.tar.gz )

in view of the practice of bitmain, in my opinion, you can not reflash another firmware ... just try
It does not work, I get the same message "Cannot find Signature!!!", it's really annoying :(
Any suggestions?


Title: Re: "Cannot find Signature"... What's this?
Post by: thierry4wd on December 24, 2018, 05:02:33 PM
A thank you can be already, and hello to the first post? and mikeywith has already given solutions to explore ...


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 24, 2018, 07:00:18 PM
A thank you can be already, and hello to the first post? and mikeywith has already given solutions to explore ...
Hi, I really planned to thank everyone once I explored all the solutions and closed the post, you have been a good Samaritan in passing me that firmware and I thank you very much, the reason why I ask for any suggestion is because I already try The first 2 solutions of mikeywith no success :(, the firmware seems to be resicted even to its own older versions and also manually reset the D3 but the firmware remains the same (Tue Nov 13 11:46:56 CST 2018) , the third option of mikeywith seems to be the most suitable but I have no idea how to do it, I will write to the private one to see if you can help me more closely, or if you or someone else here knows how to do with the third solution.

BTW: Sorry for my bad English, it's not my first language but I do my best  :) :) ;)


Title: Re: "Cannot find Signature"... What's this?
Post by: BitMaxz on December 24, 2018, 07:14:25 PM
The only thing that I know may solve this issue to reprogram the control board through microsd card flashing.

If you don't know how to do this you can check this method from here https://support.bitmain.com/hc/en-us/articles/360006020594-D3-Control-Board-Program-Recovery

After that try to flash it again with your firmware.


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 24, 2018, 10:10:59 PM
ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi 

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.




Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 24, 2018, 10:34:03 PM
ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi 

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.




Thanks bro, I will be reporting between tomorrow and Wednesday (since today is a holiday), Merry Christmas :)


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 25, 2018, 07:56:10 PM
ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi 

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.



Hello mikeywith, I hope you have spent a happy Christmas, I inform you that I have done so far.

First, I tried testing with the frimware that I had and as expected by me, they did not work, in fact some like the "NoFee" had already tested them before.

-------------------------------------------------

Given this, I started with the program of PuTTY with my IP and I made step by step what you indicated to me,
 - Loging, placing the password
 
Code:
cd /www/pages/cgi-bin
 
Code:
vi upgrade.cgi
(So far everything went the same as the images you placed)
 and I had this result:

Code:
login as: root
root@192.168.0.6's password:
root@antMiner:~# cd /www/pages/cgi-bin
root@antMiner:/www/pages/cgi-bin# vi upgrade.cgi
#!/bin/sh -e

# POST upload format:
# Content-Disposition: form-data; name="file1"; filename="..."^M
# Content-Type: application/octet-stream^M
# file contents
# file contents
# file contents

file=/tmp/$$

trap atexit 0

atexit() {
        rm -rf $file
        #umount $file.boot 2>/dev/null || true
        #rmdir $file.boot 2>/dev/null || true
        sync
        if [ ! $ok ]; then
            print "<h1>System upgrade failed</h1>"
        fi
}

- upgrade.cgi 1/219 0%

I leave the code so I wait for the next step and how to modify the file since I am not an expert in programming (I dedicate myself more to the Hardware part  ;D)


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 26, 2018, 03:47:53 PM


ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%" 

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 26, 2018, 06:33:17 PM


ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%" 

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then
You mean this code?
Code:
#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

#
#    if [ -e /dev/mmcblk0p3 ]; then
#               mkdir $file.boot
#       mount /dev/mmcblk0p1 $file.boot
#       cp -rf * $file.boot/
#       umount $file.boot
#       sync
#       fi
#       if [ -e /dev/mtd8 ]; then
#               if [ -e initramfs.bin.SD ]; then
#                       echo "flash romfs"
#                       flash_eraseall /dev/mtd8 >/dev/null 2>&1
#                       nandwrite -p /dev/mtd8 initramfs.bin.SD >/dev/null 2>&1
#               fi
#
#               if [ -e uImage.bin ]; then
#                       echo "flash kernel"
#                       flash_eraseall /dev/mtd7 2>/dev/null
#                       nandwrite -p /dev/mtd7 uImage.bin 2>/dev/null
#               fi
#       fi
#fi

ant_result=`cat /tmp/upgrade_result`

# CGI output must start with at least empty line (or headers)

BTW/EDIT: I started to "read" what I could understand the Russian server and I leave you the code that I saw on the page, I do not know if it is this or the one above that needs to be modified:

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 26, 2018, 07:41:07 PM


no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >

https://forum.bits.media/uploads/monthly_2018_12/176069530_2018-12-0419_48_19.png.a447fba7e31d74b4d083a1a9dc1cbd56.png

you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 26, 2018, 08:01:16 PM


no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >

https://forum.bits.media/uploads/monthly_2018_12/176069530_2018-12-0419_48_19.png.a447fba7e31d74b4d083a1a9dc1cbd56.png

you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.

Yes, I realized, I had edited the post seconds before your comment  ;D
-------------------------

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

Fine, I already have the code, what's next?


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 26, 2018, 09:58:52 PM
you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do not restart the miner
*do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.

EDITED : thanks to yonydouna and effud for correcting the restart part.


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 26, 2018, 10:25:53 PM
you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.
Being honest, it seems very simple, Add # at the beginning of the first 15 lines and delete (Key delate) the last 5 #, but now my questions are...
1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 26, 2018, 10:32:38 PM

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 26, 2018, 10:46:39 PM

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  ;)


Title: Re: "Cannot find Signature"... What's this?
Post by: efudd on December 26, 2018, 10:54:10 PM

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

This can be solved a lot easier.
'openssl' is not used by the miner for day to day operations, so just move it out of the way and replace it with something that returns status code 0.. folk generally don't know how to use vi.

My miners are down at the moment so I don't know the file paths, but you should be able to do:

ln -sf  `which true` `which openssl`

Those are back ticks, not quotes. Assuming 'true' exists (I think it's in busybox), this would simply replace openssl with a symlink to true... which will return 0 no matter the arguments provided... and would bypass the signature check.

-j


Title: Re: "Cannot find Signature"... What's this?
Post by: yonydouna on December 28, 2018, 08:14:39 PM

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  ;)

WORKS!!!


at the beginning after modifying the codes and saving the pages I continued to restart the antminer and then again but this time doing the flashing, it did not work and when I checked the pages inside the PuTTY I realized that the codes were the same as before modifying them, seem when you reset the antminer (digitally) the codes return to their originality, given that I did the same thing again but this time I saved the codes and closed the PuTTY I went to flash it (with the firmware MOD) this automatically reboots and ready , I had installed the Blissz Firmware.

https://imgur.com/a/mJszoKB

What surprised me the most was how ridiculously easy it was to do all this for what it cost me to understand at the beginning.

I want to thank you mikeywith for having helped me and have patience for this, and wish you a happy new year :)


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 28, 2018, 10:11:03 PM


Glad it worked for you, it is strange tho, after you save it shouldn't return to prev code, unless you were doing something wrong, i know for sure because i restart my miners and setting are still there, but well you know, strange things happen, what matters now is that it worked out for you.

cheers and happy mining.


Title: Re: "Cannot find Signature"... What's this?
Post by: efudd on December 28, 2018, 10:24:00 PM


Glad it worked for you, it is strange tho, after you save it shouldn't return to prev code, unless you were doing something wrong, i know for sure because i restart my miners and setting are still there, but well you know, strange things happen, what matters now is that it worked out for you.

cheers and happy mining.

The 'live' filesystem is reloaded from flash every boot. only /config is permanent.

Various other firmwares have handled this different. The only real way to fix this is a modification of the base firmware, temporarily do this mod or a variant, flash the updated base firmware.... from that point forward, all flashes should be good.

-j


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on December 28, 2018, 10:44:15 PM

The 'live' filesystem is reloaded from flash every boot. only /config is permanent.

Various other firmwares have handled this different. The only real way to fix this is a modification of the base firmware, temporarily do this mod or a variant, flash the updated base firmware.... from that point forward, all flashes should be good.

-j

makes 100% sense, dunno why hasn't this crossed my mined. thanks for the explanation.



Title: Re: "Cannot find Signature"... What's this?
Post by: m3hm3t on May 08, 2019, 09:31:28 PM

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  ;)

:wq where should write on ssh editor page? after  this?

Code:
# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi
:wq
like this?
Because I'm doing exactly the same and after writing :wq I don't close or closing the ssh editor and going to directly upgrade page D3 but still saying "Cannot Find Signature!!!"
By the way I can modify easier on the WinSCP program with editor and saving.But still got "Cannot Find Signature!!!" too at there.Can you make a video tutorial for this please?

My code is: https://imgur.com/ye1f7YV


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on May 08, 2019, 10:58:28 PM
there is something wrong with the way you handle the editing, :wq should not show there in the code , press "Escape key" once you are done editing , and then type

Code:
:wq

then hit enter.

what you doing there is adding a line to the code that says :wq and you are not actually saving anything.

also please refer to the complete guide here >https://bitcointalk.org/index.php?topic=5090664.msg48938476#msg48938476


Title: Re: "Cannot find Signature"... What's this?
Post by: m3hm3t on May 08, 2019, 11:00:20 PM
there is something wrong with the way you handle the editing, :wq should not show there in the code , press "Escape key" once you are done editing , and then type

Code:
:wq

then hit enter.

what you doing there is adding a line to the code that says :wq and you are not actually saving anything.

also please refer to the complete guide here >https://bitcointalk.org/index.php?topic=5090664.msg48938476#msg48938476

Yes I figured this out and I saved without :wq look at the my screenshoot but still can't upload firmware


Title: Re: "Cannot find Signature"... What's this?
Post by: mikeywith on May 09, 2019, 12:24:18 AM

I pretty much did not look at the screenshot  ;D sorry .

i wonder which firmware is that, it's strange tho, this method always worked, but judging from what you sent me via a pm, i can only assume that this must be a new firmware which has more "enhanced security" where they have similar if function somewhere else, but anyhow as long as you can access the miner through ssh there will always be a way out.


Title: Re: "Cannot find Signature"... What's this?
Post by: m3hm3t on May 09, 2019, 12:41:08 AM
I started to get this error after installing the new firmware of D3 so I did exactly the same Mike showed me how to.But Didn't work! then I realized in the www/pages/cgi-bin there is 3 file connecting each other and this three are calling each other.

"upgrade.cgi"
"upgrade_clear.cgi"
"upload_conf.cgi"

so I edited with this files in ssh editor I searched in existing "Cannot Find Signature" so I put # type before words as like Mike's codes. and worked for me. Thank you again Mike. Yes I think with the latest firmware having strong security with this 3 files I think.