Coder Social home page Coder Social logo

siacentral / host-manager Goto Github PK

View Code? Open in Web Editor NEW
69.0 8.0 14.0 105.49 MB

User-friendly desktop app for Sia hosts. Provides easy configuration, better financials, and smart alerts to make hosting simpler.

Home Page: https://siacentral.com/host-manager

License: GNU Affero General Public License v3.0

JavaScript 47.88% HTML 0.13% Vue 49.43% Stylus 2.57%
sia cryptocurrency wallet gui siacoin decentralized-storage

host-manager's People

Contributors

dependabot[bot] avatar n8maninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

host-manager's Issues

Allow clearing notifications

Allow option to clean notifications. Currently the only way to clean notifications is to restart the application. It would be nice to be able to clear any old notifications.

From point 2 of #6

Sia Host Manager + Ubuntu LTS file directory problem

After upgrading to the new Ubuntu LTS version I have encountered several problems with sia host manager.
First the appimage version did not want to start, discovered I had to install libfuse for appimages to work again. Now sia host manager is starting without a hitch. Next problem I have encountered is that sia host manager complains about having no access to the file directories? ("path/xyz/ is inaccessible. This can cause data corruption and revenue loss. Check your folder path and permissions") I'm still finishing contracts and did not change any permissions. Anyone got a tip for me on how to solve this issue?

Still issues with an IPv6 Host adresse

Hello,

meanwhile I Updatet my host and gave it a DNS adresse (siahost.srvdns.de) but off course in the background it still works with the IPv6 adresse.

-The IPv6 Adresse at the DNS Service is correct.
-The Prots in the Router are set correctly to the targest Host Machine
-DNS Forwarding in the Router is enabeld

so i dont see any issue on may side...?

The host dosen't show up on the https://siastats.info/hosts_map why is that? How can I fix this?

https://troubleshoot.siacentral.com/sia/siahost.srvdns.de:9982?unit=decimal&currency=eur

image

Thanks in advance Torsten

Add support for headless systems, with Documentation

I would like to be able to use this management software and dashboard on a Raspberry Pi, where this system runs in a browser instead of in a desktop app. Is this something that could ever happen, or would it require a complete re-work of the existing system?

Not running on Raspberry Pi ARM

Is this possible to run on ARM cpu on Raspberry Pi? I tried the .deb and also tried to run it with npm but no luck, hitting a lot of walls. Any help?

Standard dpkg deb install gave me a lot of broken packages. Trying with gdebi gives me this, but I'm not able to install further.

image

Add scheduled siad restarts

It appears that restarting siad every once in a while solves the stale contracts problem. Although this is probably something that should be fixed on the Sia side, it might be worth adding the option to restart siad every 24h/1week etc.

Host Manager skipped the host unlock step

Absolutely loving Host Manager so far!

When I chose to import my Sia settings (I checked the Advanced settings box), I was directed to enter my wallet unlock password. This was also the page that mentioned I could set the system environment variable. I chose to let Host Manager unlock my wallet for me and entered my wallet password. Success on this step.

The next screen popped up, and appeared to have some additional info regarding unlocking the wallet for hosting. I think it wanted me to enter my password again. I didn't read too much on this screen because it automatically skipped through this into the "Scanning" screen, and then finally into the app.

Advanced Configuration

Host Manager should offer multiple versions of the configuration screen for simple or advanced users.

Simple:

  • Storage and bandwidth pricing
  • Collateral
  • Max duration
  • Registry configuration

Advanced:

  • Base RPC/sector access price
  • Max collateral
  • Collateral budget
  • Contract price

Update Bundled Sia Daemon to 1.4.7

The newest Sia daemon (1.4.7) is now the lowest version that will communicate with renters. I'm not sure about the details of why, but 1.4.7 needs to be used to continue hosting.

A workaround is to launch the updated SiaUI to start the daemon with the correct version and then launching Host Manager, but this requires manual unlocking of the wallet, so this is not ideal for situations like mine where I have Host Manager running in a VM on my NAS. Any time I restart my NAS, I have to VNC into the VM and manually unlock my wallet.

Add copy to clipboard ability for full contract ID (not 8 char truncation)

In the contract view, make the values in the ID column have a context menu (i.e. by right clicking it) and provide the ability to "copy to clipboard".
I currently have to use the link to SiaStats for each row just to grab the full contract ID. I would rather just copy it from the contract view of Sia Host Manager.

Error with "npm install"

`root@sia-host:~/sia/host-manager# npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

[email protected] install /root/sia/host-manager/node_modules/phantomjs-prebuilt
node install.js

internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module '/root/sia/host-manager/node_modules/phantomjs-prebuilt/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-26T13_13_52_161Z-debug.log
`
Server Ubuntu 20.04.3 LTS with actual updates.

Error: Cannot find module 'fs/promises' when 'npm run serve'.

Hi. I try to start host-manager server to access my sia-host via internet but get error:
`sia@sia-host:~/host-manager$ npm run serve

[email protected] serve
vue-cli-service electron:serve

INFO Starting development server...
98% after emitting CopyPlugin

DONE Compiled successfully in 2162ms 18:27:59

App running at:

Note that the development build is not optimized.
To create a production build, run npm run build.

⠋ Bundling main process...

DONE Compiled successfully in 904ms 18:28:00

File Size Gzipped

dist/index.js 3130.01 KiB 646.87 KiB

Images and other types of assets omitted.

INFO Launching Electron...
App threw an error during load
Error: Cannot find module 'fs/promises'
Require stack:

  • /home/sia/host-manager/dist/index.js
  • /home/sia/host-manager/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:281:681)
    at Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module.load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at eval (webpack:///external
    %22fs/promises%22?:1:18)
    at Object.fs/promises (/home/sia/host-manager/dist/index.js:5726:1)
    at webpack_require (/home/sia/host-manager/dist/index.js:20:30)
    at eval (webpack:///./node_modules/electron-updater/out/AppUpdater.js?:8:20)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    Error: Cannot find module 'fs/promises'
    Require stack:
  • /home/sia/host-manager/dist/index.js
  • /home/sia/host-manager/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:281:681)
    at Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module.load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at eval (webpack:///external
    %22fs/promises%22?:1:18)
    at Object.fs/promises (/home/sia/host-manager/dist/index.js:5726:1)
    at webpack_require (/home/sia/host-manager/dist/index.js:20:30)
    at eval (webpack:///./node_modules/electron-updater/out/AppUpdater.js?:8:20)
    sia@sia-host:~/host-manager$
    `
    Ubuntu 20.04.3 LTS Server
    Node.js v17.1.0
    npm v8.1.2
    Thanx for attention.

Keep Last Used Window Size

After opening Sia Host Manager, I change the window size/dimensions. Once I close and re-open it, it opens as the original default window size and not as the last used window size, which requires me to resize the window dimensions to the size I want to see all the components.
Can the capability to retain last used window size be added?

correct settings for handyhost

I've installed sia via handyhost and want to run host-manager but not sure of the correct settings to connect to handyhost

[bug] Host port must match the format

While trying to change currency, I notices Update button is not available because of apparent host:port formatting. Field does not accept sbox.myds.me:9982.

Feature: Benchmark/performance information

Although i can see that my host is storing data and technically working, i would like to know how well the host is working (e.g. latency, up-down speed) and maybe compare it to other hosts through e.g. benchmarking. Sia Stats for example does:

image

Adding some of those scores/metrics to the dashboard will enhance the person's understanding of how good their Sia host actually a=performs.

Minor UI issues

Here are some minor UI issues:

image

The user can't see all info on the pop-up and also can't scroll down. The only option to see the buttons at the bottom of the popup is to increase the window size.

  1. Allow option to clean notifications. Currently the only way to clean notifications is to restart the application. It would be nice to be able to clear any old notifications.

Wrong Description for Upload Configuration Item

Both 'Download Price' and 'Upload Price' under network in the configuration share the same description:

The amount of money to download 1 TB from the host

Obviously the upload description should say:

The amount of money to upload 1 TB from the host

Dynamic Storage

Allows hosts to set a maximum storage size and dynamically grow/shrink available storage based on utilization.

I'd like to do a couple UX changes for this:

  • Select drives instead of specific paths
  • Allocate storage as a percentage of free space instead of raw bytes
  • Automatically create and manage multiple smaller storage folders under the hood grouped by drive in order to increase performance of resizes and removing.
  • Allow existing hosts to use the regular method (autodetection using magicfile?)

Issue minimizing to tray (Ubuntu)

I'm running this on the default Ubuntu 20.04.1 installation, and no tray icon appears when I close out. However, htop confirms that it is running in the background still. I'm wondering if we can add a configuration option to disable Minimize to Tray, and also potentially investigate why it is not minimizing. Thanks!

Reduce Memory Usage

Memory usage quickly goes up on larger hosts. Not necessarily a memory leak, seems to be due to how much data needs to be processed to calculate totals on the fly. We should be able to reduce this with changes to the data syncing process.

maxcollateral configuration

I don't see an option to configure maxcollateral. It seems to be the only way to limit the size (in Bytes) of a contract - which is important to me as a big contract saturates my internet connection for a month.

For some reason, if I set maxcollateral with ´siac host config maxcollateral´, it is soon changed back to the earlier value - possibly by the running host-manager. So is there a field for maxcollateral which I just haven't noticed?

couldn't be accessed by user '_apt'

Full log: https://pixeldrain.com/u/M9RKJ5Da

#apt install -f ~/Sia.Host.Manager-v1.0.34.deb
... ( few minutes later) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ...
N: Download is performed unsandboxed as root as file '/root/Sia.Host.Manager-v1.0.34.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

I am logged in as root, is that the issue?

Debian GNU/Linux 10 (buster
4.19.0-16-amd64

siad stays open after quitting Sia Host Manager

When quitting Sia Host Manager, siad stays open in the background. This poses a potentially minor security risk: the next time a user opens Sia-UI on its own, it will auto-unlock the wallet.

Ability to change API key

Currently if the API key changes (e.g after an upgrade with a docker container) the application won't prompt to change API key but stay on "API credentials invalid".

I believe there should be an option in the UI to change the API key instead of having to go into the config file to update it manually. Is there a way to do this that I missed?

Update instructions

I previously installed and update host-manager with a .deb release, but now I see there isn't a .deb release.

I'm not sure how to go about updating without breaking anything. I'm on ubuntu btw.

Add date format configuration option, or respect system setting

Please add a configuration option to use a different date format within the Setting dialog (alongside the Currency selector). Alternatively, make the date format use whatever is selected system-wide in the system's computer's locale settings.

In Canada, the dd/mm/yyyy is never used, and is very tough for me to wrap my head around. I would prefer yyyy-mm-dd, as that is the standard for computing systems, but mm/dd/yyyy is very common in the US, so that should be added/respected as well.

Thanks!

Automatic Updates

Automatic updates are technically already enabled, but I'd like to customize how they work more. Updates are checked currently only when Host Manager is first run and never again. I'd like to change that to check every few hours. In addition, I'd like to add a custom display on the UI for when an update is ready for install.

Automatic Pricing Presets

Automatic pricing presets. Presets control all "Financial" related items on the configuration page. Selecting a preset will need to remove the controls from the UI only allowing an overview of what they are currently set to.

Network
Uses Sia Central API - top 50% of hosts based on percentage of data stored, uptime, and pricing.

Network High - Average pricing based on top 33%
Network Mid - Average pricing based on middle 33%
Network Low - Average pricing based on bottom 33%

Fixed
Fixed Pricing based on competitors - Picks pricing based on AWS, B2, or the Sia team's estimates

AWS - Takes AWS current pricing and divides it by 3 for Sia's 3x redundancy $5/TB/Month
B2 - Takes B2 current pricing and divides it by 3 for Sia's 3x redundancy $1.5/TB/Month

Configurable Column Order of Contracts

In the contract view, make the column ordering configurable. This could be through drag & drop or even just a (textual) number ordering in a configuration page.
I frequently use Sia Host Manager to compare values in columns and, often, those columns are at opposite ends of my screen (i.e. far left and far right). I would like to be able to have them side-by-side for easier comparison.

Not able to setup for remote server

Hey, I have tried this guide: click but I am not able to get it running. Any tips?

SIa runs on Linux Ubuntu and remote on windows10

Log:

[2022-03-29 12:21:35.596] [info] SIA STDOUT:
siad v1.5.7
Git Revision 985b664c9
Loading...
ERROR: listen tcp 127.0.0.1:9980: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

[2022-03-29 12:21:35.599] [info] daemon exited after 3 seconds with exit code 1
[2022-03-29 12:21:35.600] [error] daemon stderr listen tcp 127.0.0.1:9980: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

[2022-03-29 12:21:36.313] [warn] SiaDaemon.loaded Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:200:27)`

Toggle switch to enable/disable updating prices

I want to use the host manager only as an interface to view the settings / contracts of my host, but not to update them. I would love to disable host config updates, but instead read the values from the host and display them. I have automated scripts that update the configuration on the host.

Documentation

Detailed documentation on getting setup and all implemented features is needed

  • Installation Guide
  • Basic Troubleshooting
  • Alerts Overview
  • Settings Overview
  • Dashboard Overview
  • Contracts Overview
  • Configuration Overview

Currency automatically reverts to USD

App Version: v1.0.30
Sia Daemon Version: v1.5.4

I go to Settings, App Settings, put currency to EUR and click update.
Then i go to Configuration, change some rates. click update configuation, click announce.

Then currency is back to USD. The Configuration screen is showing a mismatch of both USD and the euro currency symbol. And on the App Settings screen there is again mentioned USD.

SC sent which don't show in the app

I sent a few SC to the address shown by pressing "Receive Siacoin", the transaction was reported as successful by binance, and they didn't get there (yesterday).

What could be going on?

Maybe I closed and reopened the app and the address changed.

Financial profiles

I have been thinking on the way hosts set their financials taking into account the SC volatility.

Currently if the SC price changes, hosts have to manually update their financials and recalculate from USD - SC to get their desired income, which is a manual and tedious task.

I suggest the following: Allow host input their desired financials in either the native SC or USD. If USD is selected, allow them to automatically peg/lock their financial profile to the USD value of SC. Meaning that if SC changes in value, the amount of SC in the financial profile will change as well. It will essentially always show the correct number of SC for the input USD value.

This will allow me, as a host, to not worry about either being to cheap, or to expensive if the SC valuation changes.

Partly related to #8

timeout when trying to connect to 192.168.225.100:9982.

Hi,
How to fix this?

timeout when trying to connect to 192.168.225.100:9982.
Results (2/5 Tests Passed)
Net address resolved
Net Address
192.168.225.100:9982
Resolved IP
192.168.225.100
Last Announcement
192.168.225.100:9982 (Apr 24, 2018)
Cannot connect to host
test skipped: unable to connect
test skipped: unable to retrieve host settings
SiaMux Port
Elapsed Time
0ms

Read and Write Failure Rate

Can anyone tell me why the H: partition is giving read and write errors?
While other partition F: is ok.

Capacity of H: occupies half on disk 0 and other half is used for backup of personal files.
And F: occupies the other entire disk.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.