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

Need More Helpful Error Message - HTTP ERROR 404 #44

Open
Pacius opened this Issue Jul 2, 2016 · 19 comments

Comments

Projects
None yet
10 participants
@Pacius

Pacius commented Jul 2, 2016

No description provided.

@DavidVorick

This comment has been minimized.

Show comment
Hide comment
@DavidVorick

DavidVorick Jul 2, 2016

Member

Which version of siad? Are you running siad?

Member

DavidVorick commented Jul 2, 2016

Which version of siad? Are you running siad?

@Pacius

This comment has been minimized.

Show comment
Hide comment
@Pacius

Pacius Jul 10, 2016

Now 1.1,no problem.But can this miner use "siananopool"?And if,how can i set by ".bat"

Pacius commented Jul 10, 2016

Now 1.1,no problem.But can this miner use "siananopool"?And if,how can i set by ".bat"

@philipmw

This comment has been minimized.

Show comment
Hide comment
@philipmw

philipmw Mar 20, 2017

I am having this problem as well:

$ ./sia-gpu-miner
Initializing...

HTTP error 404
HTTP error 404
HTTP error 404
...

I am using siad 1.1.1 with sia-gpu-miner 1.1.

From Wireshark, I see the failing HTTP request is GET /miner/header HTTP/1.1.

siad does not suggest that anything is wrong:

$ ./siad
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
(6/6) Loading renter...
Finished loading in 0.901766827 seconds
Rescanning consensus set...
Scanned to height 23316...
Done!

philipmw commented Mar 20, 2017

I am having this problem as well:

$ ./sia-gpu-miner
Initializing...

HTTP error 404
HTTP error 404
HTTP error 404
...

I am using siad 1.1.1 with sia-gpu-miner 1.1.

From Wireshark, I see the failing HTTP request is GET /miner/header HTTP/1.1.

siad does not suggest that anything is wrong:

$ ./siad
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
(6/6) Loading renter...
Finished loading in 0.901766827 seconds
Rescanning consensus set...
Scanned to height 23316...
Done!
@philipmw

This comment has been minimized.

Show comment
Hide comment
@philipmw

philipmw Mar 20, 2017

Ok, I figured it out. Apparently siad does not load the Miner module by default. Here's how I fixed this problem:

./siad -M cghmrtw

Then unlock the wallet:

$ curl -i -A "Sia-Agent" -X POST localhost:9980/wallet/unlock?encryptionpassword=...

Now sia-gpu-miner works:

$ ./sia-gpu-miner
Initializing...

Mining at 86.482 MH/ss	0 blocks mined

philipmw commented Mar 20, 2017

Ok, I figured it out. Apparently siad does not load the Miner module by default. Here's how I fixed this problem:

./siad -M cghmrtw

Then unlock the wallet:

$ curl -i -A "Sia-Agent" -X POST localhost:9980/wallet/unlock?encryptionpassword=...

Now sia-gpu-miner works:

$ ./sia-gpu-miner
Initializing...

Mining at 86.482 MH/ss	0 blocks mined
@DavidVorick

This comment has been minimized.

Show comment
Hide comment
@DavidVorick

DavidVorick Mar 20, 2017

Member

That is correct, the miner module no longer loads by default as of v1.1.1 I believe.

Might be worth adding a more helpful error message though.

Member

DavidVorick commented Mar 20, 2017

That is correct, the miner module no longer loads by default as of v1.1.1 I believe.

Might be worth adding a more helpful error message though.

@DavidVorick DavidVorick reopened this Mar 20, 2017

@DavidVorick

This comment has been minimized.

Show comment
Hide comment
@DavidVorick

DavidVorick Mar 20, 2017

Member

I will actually leave this open in case someone wants to update the error message, but right now nobody is assigned to it.

Member

DavidVorick commented Mar 20, 2017

I will actually leave this open in case someone wants to update the error message, but right now nobody is assigned to it.

@DavidVorick DavidVorick changed the title from HTTP ERROR 404 to Need More Helpful Error Message - HTTP ERROR 404 Mar 20, 2017

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 29, 2017

Hi, I'm completly new to the sia mining, I apololgy if the question is too basic :
With Sia UI I managed to create a wallet and the blockchain downloaded 100%

Now, when I launch sia-gpu-miner.exe I (still) have error 404.

if in command prompt I type siad.exe it says :
Loading...
(0/6) Loading siad...
listen tcp 127.0.0.1:9980: bind: Une seule utilisation de chaque adresse de sock
et (protocole/adresse réseau/port) est habituellement autorisée.

siad -M cghmrtw
gives the same answer.

What should I do ?
Thanks !

facialdeluxe commented May 29, 2017

Hi, I'm completly new to the sia mining, I apololgy if the question is too basic :
With Sia UI I managed to create a wallet and the blockchain downloaded 100%

Now, when I launch sia-gpu-miner.exe I (still) have error 404.

if in command prompt I type siad.exe it says :
Loading...
(0/6) Loading siad...
listen tcp 127.0.0.1:9980: bind: Une seule utilisation de chaque adresse de sock
et (protocole/adresse réseau/port) est habituellement autorisée.

siad -M cghmrtw
gives the same answer.

What should I do ?
Thanks !

@jlahtela

This comment has been minimized.

Show comment
Hide comment
@jlahtela

jlahtela May 29, 2017

Hi,

Here are instructions how I get it work:

  1. Quit Sia-UI (using the Quit Sia option shown by right-clicking the notification tray icon) and try starting the siad agent directly.
    For Windows: C:\Program Files (x86)\Sia-UI\resources\app\Sia\siad.exe --modules cgmhrtw -d %appdata%\Sia-UI\sia
    NOTE: It may take a few minutes for Siad to finish loading, it took six for me with an SSD.
    (Fix the path where SIA is placed / "installed")

  2. Relaunch the Sia-UI (it will bind to your manually started siad instance)

  3. Unlock your wallet

  4. Run miner start command in the Terminal Plugin.

If it starts you can stop it running miner stop command.
I assume you get better results by running GPU miner and not "native CPU miner".
Of course you can run both at the same time if you like.

Now SIA-GPU-miner should work and you just to run it.
Leave command prompt open what you probably opened in step 1

Thanks for droghio for instructions in first place.
Original instructions can be found from here:
#59

jlahtela commented May 29, 2017

Hi,

Here are instructions how I get it work:

  1. Quit Sia-UI (using the Quit Sia option shown by right-clicking the notification tray icon) and try starting the siad agent directly.
    For Windows: C:\Program Files (x86)\Sia-UI\resources\app\Sia\siad.exe --modules cgmhrtw -d %appdata%\Sia-UI\sia
    NOTE: It may take a few minutes for Siad to finish loading, it took six for me with an SSD.
    (Fix the path where SIA is placed / "installed")

  2. Relaunch the Sia-UI (it will bind to your manually started siad instance)

  3. Unlock your wallet

  4. Run miner start command in the Terminal Plugin.

If it starts you can stop it running miner stop command.
I assume you get better results by running GPU miner and not "native CPU miner".
Of course you can run both at the same time if you like.

Now SIA-GPU-miner should work and you just to run it.
Leave command prompt open what you probably opened in step 1

Thanks for droghio for instructions in first place.
Original instructions can be found from here:
#59

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 29, 2017

Mmm closing and relaunching everything
siad -M cghmrtw
is loading the host 6/7

Don't know how long this should take...

jlahtela thank you !
Will try your method and I'll let you know !

Thank you !

facialdeluxe commented May 29, 2017

Mmm closing and relaunching everything
siad -M cghmrtw
is loading the host 6/7

Don't know how long this should take...

jlahtela thank you !
Will try your method and I'll let you know !

Thank you !

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 29, 2017

A critical error loading Sia has occured: Siad unexpectedly exited. Error log: Loading...
(0/6) Loading siad...
listen tcp 127.0.0.1:9980: bind: Une seule utilisation de chaque adresse de socket (protocole/adresse réseau/port) est habituellement autorisée.

not good yet :/
running on a laptop with a gtx950M

facialdeluxe commented May 29, 2017

A critical error loading Sia has occured: Siad unexpectedly exited. Error log: Loading...
(0/6) Loading siad...
listen tcp 127.0.0.1:9980: bind: Une seule utilisation de chaque adresse de socket (protocole/adresse réseau/port) est habituellement autorisée.

not good yet :/
running on a laptop with a gtx950M

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 29, 2017

I can't seem to launch both siad and sia-UI at the same time.

If I siad -M cghmrtw
sia-UI crashes

and therefore, if I don't start siad, sia UI starts well, but if I type "miner start" in the terminal, it says : Could not start miner: API call not recognized: /miner/start

facialdeluxe commented May 29, 2017

I can't seem to launch both siad and sia-UI at the same time.

If I siad -M cghmrtw
sia-UI crashes

and therefore, if I don't start siad, sia UI starts well, but if I type "miner start" in the terminal, it says : Could not start miner: API call not recognized: /miner/start

@mysteryr

This comment has been minimized.

Show comment
Hide comment
@mysteryr

mysteryr May 29, 2017

Hi guys, sorry but i'm new in sia mining. i cannot open sia gpu miner, do i need to wait about the end of the synchronization of Sia ? Can you tell me what he sync exactly? how long times will i have to wait about the end of this? Thanks for your help

mysteryr commented May 29, 2017

Hi guys, sorry but i'm new in sia mining. i cannot open sia gpu miner, do i need to wait about the end of the synchronization of Sia ? Can you tell me what he sync exactly? how long times will i have to wait about the end of this? Thanks for your help

@droghio

This comment has been minimized.

Show comment
Hide comment
@droghio

droghio May 30, 2017

Collaborator

@facialdeluxe Sia-UI will try to launch a new instance of siad, if you then try to manually launch siad in a terminal it won't work since the other run is running an claimed the ports used to communicate with the outside world. If you fully quit the Sia-UI you should be able to follow the steps @jlahtela relinked, but it may take upwards of five minutes for the miner module to load.

@mysteryr You need to use a terminal to launch the miner atm, you can't just on the .exe. You should wait to synchronize until you start mining otherwise you will only be mining stale blocks (which aren't worth anything). To sync just leave Sia-UI up and running for a while. You should see a status bar in the top right giving you the progress of synchronization or if the block chain is synchronized. How long it takes will depend on your internet speed, but usually several hours. The block chain is about 4gb atm.

Hope that helps.

Collaborator

droghio commented May 30, 2017

@facialdeluxe Sia-UI will try to launch a new instance of siad, if you then try to manually launch siad in a terminal it won't work since the other run is running an claimed the ports used to communicate with the outside world. If you fully quit the Sia-UI you should be able to follow the steps @jlahtela relinked, but it may take upwards of five minutes for the miner module to load.

@mysteryr You need to use a terminal to launch the miner atm, you can't just on the .exe. You should wait to synchronize until you start mining otherwise you will only be mining stale blocks (which aren't worth anything). To sync just leave Sia-UI up and running for a while. You should see a status bar in the top right giving you the progress of synchronization or if the block chain is synchronized. How long it takes will depend on your internet speed, but usually several hours. The block chain is about 4gb atm.

Hope that helps.

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 30, 2017

Woohoo I'm mining !

What does the " -d %appdata%\Sia-UI\sia" do ?

facialdeluxe commented May 30, 2017

Woohoo I'm mining !

What does the " -d %appdata%\Sia-UI\sia" do ?

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 30, 2017

Question 👍
The cpu is also mining, but the cpu activity is at 20%.
Though it says "CPU Miner is now running."
it's either not working, or there is only one core mining.
Is there a command to make it mine at 100% ?
I'm aware cpu is not efficient compared to gpu, but just to learn...

Thank you :)

facialdeluxe commented May 30, 2017

Question 👍
The cpu is also mining, but the cpu activity is at 20%.
Though it says "CPU Miner is now running."
it's either not working, or there is only one core mining.
Is there a command to make it mine at 100% ?
I'm aware cpu is not efficient compared to gpu, but just to learn...

Thank you :)

@facialdeluxe

This comment has been minimized.

Show comment
Hide comment
@facialdeluxe

facialdeluxe May 30, 2017

Other question,
the GTX 960M is mining between 13 and 22 MH/s
in 2 hours it seems I have zero block or sia coin, is this normal ?

facialdeluxe commented May 30, 2017

Other question,
the GTX 960M is mining between 13 and 22 MH/s
in 2 hours it seems I have zero block or sia coin, is this normal ?

@plussiminus

This comment has been minimized.

Show comment
Hide comment
@plussiminus

plussiminus Aug 2, 2017

Hello guys!

I just want to thank all of you, but specially @jlahtela for helping me run the SC miner.

Have a great day and good luck with everything!
Peace!

plussiminus commented Aug 2, 2017

Hello guys!

I just want to thank all of you, but specially @jlahtela for helping me run the SC miner.

Have a great day and good luck with everything!
Peace!

@SFoskett

This comment has been minimized.

Show comment
Hide comment
@SFoskett

SFoskett Dec 5, 2017

Here's how to get sia-gpu-miner working on Mac OS X:

  1. Install and run Sia UI and wait for it to finish synchronizing. Create a wallet. Save the seed. Then quit the UI.
  2. Download and run siad with the blockchain the UI just accessed from the directory that contains siad:
    ./siad -M cghmrtw -d "/Users/yourname/Library/Application Support/Sia-UI/sia"
  3. Wait until siad is done loading ("Loading wallet..." will take a while) then run the UI again
  4. Back in the UI, click Wallet and unlock it with your seed. This will take a few more minutes.
  5. From the directory containing sia-gpu-miner, run this and it should work:
    ./sia-gpu-miner -C 3000 -I 16 -d 0
    (adjust C to update about once per second, I to whatever you're comfortable with, and d for the proper GPU)

FWIW I'm getting around 200 MH/s on each of the AMD FirePro D300 GPU's in my 2013 Mac Pro at 16 intensity. I get almost 2300 MH/s at intensity 20!

SFoskett commented Dec 5, 2017

Here's how to get sia-gpu-miner working on Mac OS X:

  1. Install and run Sia UI and wait for it to finish synchronizing. Create a wallet. Save the seed. Then quit the UI.
  2. Download and run siad with the blockchain the UI just accessed from the directory that contains siad:
    ./siad -M cghmrtw -d "/Users/yourname/Library/Application Support/Sia-UI/sia"
  3. Wait until siad is done loading ("Loading wallet..." will take a while) then run the UI again
  4. Back in the UI, click Wallet and unlock it with your seed. This will take a few more minutes.
  5. From the directory containing sia-gpu-miner, run this and it should work:
    ./sia-gpu-miner -C 3000 -I 16 -d 0
    (adjust C to update about once per second, I to whatever you're comfortable with, and d for the proper GPU)

FWIW I'm getting around 200 MH/s on each of the AMD FirePro D300 GPU's in my 2013 Mac Pro at 16 intensity. I get almost 2300 MH/s at intensity 20!

@drewlustro

This comment has been minimized.

Show comment
Hide comment
@drewlustro

drewlustro Dec 25, 2017

Thank you @SFoskett.

My issue was that upon booting siad with the miner module, it would take forever to perform the Loading miner step (not loading wallet).... once I let that fully scan the blockchain, I had success. Also mining on dual 2013 Mac Pro FirePro D300's. Nice machine, mate.



macpro

drewlustro commented Dec 25, 2017

Thank you @SFoskett.

My issue was that upon booting siad with the miner module, it would take forever to perform the Loading miner step (not loading wallet).... once I let that fully scan the blockchain, I had success. Also mining on dual 2013 Mac Pro FirePro D300's. Nice machine, mate.



macpro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment