Hosting configuration



  • I just downloaded the latest version of everything :-)
    So basically there exist no GUI for 0.6.0 ?
    Thorvald


  • Global Moderator

    Nope, you'll have to do without for now



  • Is the a description of how to become a host just using the command line tools ?
    Thorvald


  • Global Moderator

    Not yet, but to get started you should open a terminal window and run
    ./siac host -h

    That will give you an explanation on all the options that are available from the commandline. The siac client is very well documented, whenever you need some explanation about a command just ass -h to the end and you'll get a nice little description.

    In order to set up a host from the commandline you first need to add a storage location with
    ./siac host folder add [directory] [size]
    The size can be specified in any format: MB, GB, TB, or just bytes.

    Then you should announce the host with
    ./siac host announce
    This will make your IP address public to the sia nodes and they will be able to store data on your PC.

    If you want to edit some settings like storage cost and bandwidth you can get help from
    ./siac host confg -h

    Hope that helps!

    Fornax.


  • Global Moderator

    I just noticed you're using windows 10.. I'm not familiar with the windows commandline, but I think you should remove all the ./ parts and add .exe to siac everywhere.

    You could also install Ubuntu for Windows 10, which will make all commands identical. To use this you will also have to download the 64 bit sia for linux release.



  • Running on windows is not that different

    siac host -help

    so the command is

    siac host folder add [path] [size] [flags]

    normally I would expect [...] to be an optional parameter but

    siac host folder add 400GB results in

    Usage:
    siac host folder add [path] [size] [flags]

    Global Flags:
    -a, --addr string which host/port to communicate with (i.e. the host/port siad is listening on) (default "localhost:9980")

    so the command must be

    siac host folder add SIAFolder 400GB

    but now I get the error
    Could not add folder: symlink SIAFolder host\storagemanager\3388f09c: A required privilege is not held by the client.

    but just for testing I continued with

    siac host announce

    and got the message:

    Host announcement submitted to network. The host has also been configured to accept contracts.

    So that part seems ok.

    It would be nice if it was possible to display the current config, but as far as I can see I can only update them

    I found the API Documentation with the description of the different config elements, but not all of them and especially not the interesting ones (From a hosting point of view)

    siac host config -h
    Modify host settings.
    Available settings:
    ...
    minimumcontractprice currency
    minimumdownloadbandwidthprice currency/TB
    minimumstorageprice currency/TB/month
    minimumuploadbandwidthprice currency/TB
    ...


  • Global Moderator

    oh, I forgot that adding a host folder on windows requires admin privileges, do you'll have to run siad as admin.

    Also note that the host directory needs to exist before you link it, sia will not create it for you



  • I did run siac as admin, but you are right it is siad that needed the permissions. I did not think about that as it was still running from yesterday :-)

    One interesting thing is that though the Sia-UI is an old version it is still needed to unlock the wallet.

    But now up and running - just waiting for all the customers


  • Global Moderator

    The wallet API didn't change (much), so that should still work with the UI indeed. But the host and renter API changed so much that the UI can't do anything with it anymore.


Log in to reply