Git Product home page Git Product logo

go-btfs's Issues

31mERROR storage/contracts

getting a constant error every 11 minutes:

storage/contracts.go:432 get payout status batch:rpc error: code = internal desc = runtime error: invalid memory address or nil pointer dereference

Hostui uses hardcoded domain (localhost)

I have a dev server running currently on commit 36dce32 to be exact. It's running on a remote server without a desktop interface to I'm just connecting through the web interface. Even though I'm connecting to the new hostui (/hostui/#/) through a DNS name, it's trying to connect to the API on localhost. Which of course will never work with this setup.
image

Should the API endpoint be configurable?

Uptime going down ? Payment Date; Dec. 31, 9999

I have had the BTFS daemon running continuously but each day my reported uptime goes down 1%, presently at 69%.
Also my next payment date is listed as: Dec. 31, 9999.
See picture below:

image

Percentage of uptime

The percentage of uptime has not changed since the update 1. 3. 4.
This has been frozen at 95% the whole time.

failed to send data to status server

go-btfs version: 1.3.6-b1722d1
Repo version: 9
System version: amd64/windows 10 1903
Golang version: go1.14.6
Node ID: 16Uiu2HAmGycMtsNqppBdgg7154R6FFUQaq6HPrVSDnGTAGKSAUwz

after the update, the following errors appeared .. rebooting did not help

Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
2020-08-22T04:10:37.952+0300 �[31mERROR�[0m spin spin/analytics.go:239 failed to send data to status server: StatusClient: rpc error: code = Unknown desc = FATAL #53300 sorry, too many clients already
BTFS is up-to-date.
2020-08-22T04:10:54.760+0300 �[31mERROR�[0m spin spin/analytics.go:239 failed to send data to status server: StatusClient: rpc error: code = Unknown desc = FATAL #53300 sorry, too many clients already
2020-08-22T04:10:55.735+0300 �[31mERROR�[0m spin spin/analytics.go:239 failed to send data to status server: StatusClient: rpc error: code = Unknown desc = FATAL #53300 sorry, too many clients already
2020-08-22T04:12:33.892+0300 �[31mERROR�[0m spin spin/analytics.go:239 failed to send data to status server: StatusClient: rpc error: code = Unknown desc = EOF
2020-08-22T04:13:29.575+0300 �[31mERROR�[0m spin spin/analytics.go:239 failed to send data to status server: StatusClient: rpc error: code = Unknown desc = FATAL #53300 sorry, too many clients already
....

BTFS Sync issue

Followed these instructions:
https://youtu.be/mVoo17ig-PU

BTFS never finishes syncing. Tried on 3 different computers.

"Syncing...
Currently syncing with the BTFS network, please refresh this page after 30-45 minutes"

Runs for hours and never syncs.

btfs/autoupdate error

Initializing daemon...
go-btfs version: 1.3.1-ed6b1d7
Repo version: 9
System version: amd64/windows
Golang version: go1.14.4
Swarm listening on /ip4/10.110.108.30/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.110.108.30/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/173.244.36.74/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (writable) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
BTFS is up-to-date.

2020-07-14T15:15:52.511-0700 ←[31mERROR←[0m cmd/btfs btfs/autoupdate.
go:431 Http get error, reasons: [Get "https://dist.btfs.io/release/windows/amd6
4/config_windows_amd64.yaml": net/http: TLS handshake timeout]
2020-07-14T15:15:52.511-0700 ←[31mERROR←[0m cmd/btfs btfs/autoupdate.
go:144 Download latest btfs config file error, reasons: [Get "https://dist.btfs
.io/release/windows/amd64/config_windows_amd64.yaml": net/http: TLS handshake ti
meout]

IMPORT WALLET DIFF RESULTS

BOTH PIC'S have SAME BTFS VERSION 1.3.6

NODE ID: 16Uiu2HAkzRqkkqU6EMR24DLiU79WDnEvxLNNWMsg1hNEUbYdf1E3

PIC 1 ORIGINAL NODE WHERE WALLET WAS CREATED

wall1

PIC 2 WHERE WALLET WAS IMPORTED

wall2

I do not know wat is the casue of this error, may be u guyz should have a look

AND, IMPORT WALLET BRINGS THE SAME NODE ID as the previous node where it was created.

Files added through CLI not showing in Web UI

When I add a file using the following command:

btfs add file1.txt

I cannot see the file when I'm looking at this link http://127.0.0.1:5001/btfs/webui

However, If I load a file or create a folder from the web ui, then I run this command in the terminal

btfs files ls

I can properly see the files in the CLI

Is there a way to fix this or am I missing something?

Kindly let me know your thoughts

HOST UI not displaying Contracts or Future Potential Earning/Next Payment Date

Version information:

go-btfs version: 1.3.5-20c165c
Repo Version: 9
System version: amd64/winblows
Golang: Go1.14.6
Intel Dual E2180 2.00GHz; 8GB RAM, 500GB HDD, Windows Server 2008 Standard

Description:

This seems to have occurred with the last update. Multiple environments and different browsers used; same results.

WRONG CONTRACT PAYMENT DATE JAN 01, 0001

journalctl -fu btfs
-- Logs begin at Fri 2020-07-31 16:13:42 UTC. --
Aug 06 12:09:20 btfs btfs[23231]: WebUI: http://127.0.0.1:5001/webui
Aug 06 12:09:20 btfs btfs[23231]: HostUI: http://127.0.0.1:5001/hostui
Aug 06 12:09:20 btfs btfs[23231]: Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Aug 06 12:09:20 btfs btfs[23231]: Remote API server listening on /ip4/127.0.0.1/tcp/5101
Aug 06 12:09:20 btfs btfs[23231]: Daemon is ready
Aug 06 12:09:20 btfs btfs[23231]: Storage host info will be synced at [SCORE] mode
Aug 06 12:09:20 btfs btfs[23231]: Current host stats will be synced
Aug 06 12:09:20 btfs btfs[23231]: Current host settings will be synced
Aug 06 12:09:44 btfs btfs[23231]: BTFS is up-to-date.
Aug 07 12:09:49 btfs btfs[23231]: BTFS is up-to-date.#

btfs storage contracts list host
{"contracts":[{"contract_id":"97563ece-69ae-4856-a6da-5b0543d6553b,7202f2ff-996f-459e-a25b-30a32457cba1","host_id":"16Uiu2HAmRqJFB4U5JQsavLXfZrLCdbpC6nrxiGguXZALjfpkAwYA","renter_id":"16Uiu2HAkz5shmDGPhWibau4vSF6bwZoLh73TRiSoRLuJQxkF2oMK","status":2,"start_time":"2020-08-08T10:11:16.039369Z","end_time":"2021-08-08T10:11:16.039369Z","next_escrow_time":"0001-01-01T00:00:00Z","compensation_paid":0,"compensation_outstanding":0,"unit_price":250000,"shard_size":52546248,"shard_hash":"QmRppqWpFYBwZ1t92psjvU38FvkkrBUKocYPaqoX26e59A","file_hash":"QmdSKsurv7C3dCfRSu4P4TzXHCe2EizbnoNRCU9vV4wdR2"}]}

issue

no payment and date error

NODE ID: 16Uiu2HAmRqJFB4U5JQsavLXfZrLCdbpC6nrxiGguXZALjfpkAwYA

Deposit BTT to BTFS

Hi all,

I followed exactly the tutorial : https://docs.btfs.io/docs/deposit-btt-to-btfs

Putted 10k btt on it
Output : {"BtfsWalletBalance":0,"BttWalletBalance":10000000000}
Then following command :
btfs wallet deposit 10000000000
btfs wallet balance
Output : {"BtfsWalletBalance":0,"BttWalletBalance":0}

Here is the transaction hash

No clue why my BTT went from my BTFS address to there

Extra infos : I was running the daemon in the same time in another tab and tried to upload a folder of 100Mo for 35 days at the standard price. The command to get the statuts btfs storage upload <session-id> status | jq '.Status' brought errors of insufficient balance

Please sent the same amount back to me and correct this issue.

Thanks in advance,

INDEFINITE VALIDATION LOOP

MY NODE INTO VALIDATION

NODE ID: 16Uiu2HAkzRqkkqU6EMR24DLiU79WDnEvxLNNWMsg1hNEUbYdf1E3

journalctl -fu btfs
-- Logs begin at Sun 2020-08-02 08:29:39 UTC. --
Aug 16 06:46:06 btfs btfs[3741]: 2020-08-16T06:46:06.290Z ERROR upload upload/init.go:303 rpc error: code = Unknown desc = question not ready for renterPid 16Uiu2HAm1sJ9uwbEhbbTNy9Ep9aVgCUS2vqHTKFQJTQkAPrC1dBa fileHash QmcDiPA5KusNuNbTT88PzgmXBCoBwUJ9Y4uS4JBqqdqB4b shardHash QmXP3Qqhh5WmLue48tcBiCDnYrS8swRFtrozwygsqgQPpx contractId bb5bcd30-cf73-466c-938b-b8cc7f2be108,a3b1751a-719c-409d-a5b9-2606424a3117 , process will be continue in p2pCall
Aug 16 12:13:09 btfs btfs[3741]: BTFS is up-to-date.
Aug 17 12:13:14 btfs btfs[3741]: BTFS is up-to-date.
Aug 18 01:11:54 btfs btfs[3741]: 2020-08-18T01:11:54.533Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 102, got 100
Aug 18 02:11:54 btfs btfs[3741]: 2020-08-18T02:11:54.514Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 102, got 100
Aug 18 03:11:54 btfs btfs[3741]: 2020-08-18T03:11:54.551Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 103, got 100
Aug 18 04:11:54 btfs btfs[3741]: 2020-08-18T04:11:54.518Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 103, got 100
Aug 18 05:11:54 btfs btfs[3741]: 2020-08-18T05:11:54.817Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 103, got 100
Aug 18 06:13:22 btfs btfs[3741]: 2020-08-18T06:13:22.596Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 105, got 100
Aug 18 07:11:54 btfs btfs[3741]: 2020-08-18T07:11:54.531Z ERROR spin spin/hosts.go:63 Failed to sync HOST contracts: payout status batch returned wrong length of contracts, need 105, got 100

Payout Status Batch error

Primary node (details below) has been flagging a couple new errors during the past 12-24 hours. Nothing within the environment on this side has changed. Debating a daemon restart, as Host Sync/Validation has been occurring for at least 12 hours. Please advise?

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6
Node ID: 16Uiu2HAm9unWsDcBMxWA8KoqkGj1raUcQDW6s1u7f5XpRnSAeifR

2020-08-18T07:26:08.409-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 819, got 100
2020-08-18T08:18:32.390-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 819, got 100
2020-08-18T09:18:33.004-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 819, got 100
2020-08-18T10:18:31.749-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 819, got 100
2020-08-18T11:18:35.674-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 820, got 100
2020-08-18T12:18:38.070-0700 ←[31mERROR←[0m spin spin/hosts.go:63
Failed to sync HOST contracts: payout status batch returned wrong length of cont
racts, need 820, got 100
2020-08-18T13:01:54.604-0700 ←[31mERROR←[0m core/commands commands/wallet.
go:211 wallet get balance failed, ERR: Failed to get ledger balance, reason: rp
c error: code = Unknown desc = ledger error:rpc error: code = Unavailable desc =
Gateway Timeout: HTTP status code 504; transport: received the unexpected conte
nt-type "text/html"

Lost all contracts when btfs upgraded from 1.3.4 to 1.3.5

Version information:

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6

Description:

Node upgraded from 1.3.4 to 1.3.5.
1.3.4 version GUI was showing 262 contracts with around 984 BTT in contract wallet.
After upgrade, showing only 1 contract with 4 BTT in contract wallet.

1.3.4 payment date was Aug 18 and after upgrade it changed to Sept 08.

Node Id: 16Uiu2HAmQaqSZXNb3zCLAijN23CAxeR4PZsBypmQWxJwuQweGi8o

ALL NODES ARE GOING THROUGH VALIDATION

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6
Repo location: E:\BTFS

2020-08-11T15:51:43.333-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync HOST contracts: rpc error: code = Unknown desc = dial tcp 10.32.211.96:5432: i/o timeout
2020-08-11T15:51:43.344-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:43.357-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync hosts: Failed to query hosts from Hub service: rpc error: code = Unavailable desc = Service Unavailable: HTTP status code 503; transport: received the unexpected content-type "text/html"
2020-08-11T15:51:43.359-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync host stats: Failed to query stats from Hub service: rpc error: code = Unavailable desc = Service Unavailable: HTTP status code 503; transport: received the unexpected content-type "text/html"
2020-08-11T15:51:44.096-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:45.115-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:46.575-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:49.228-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:53.028-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:51:58.684-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
BTFS is up-to-date.
2020-08-11T15:52:06.461-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:52:15.479-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:52:32.780-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:52:54.688-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:53:31.000-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:53:58.015-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:54:43.179-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout
2020-08-11T15:56:09.658-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: rpc error: code = Unknown desc = dial tcp 10.32.126.85:5432: i/o timeout

Many people on BTT Telegram are reporting the same issue. That their node is going through what seems to be the steps for validation. This has been happening from time to time on the 1.3.5, but it would always come back with a refresh.

Not the case this time. Was a patch pushed that has put us all through this process again?

webgui calls wrong api adress (v0 instead of v1?)

hi,

congrats on releasing something exciting like btfs!

i installed version the version v1.0.0-beta1 using https://github.com/TRON-US/btfs-binary-releases
and notice the webgui is broken, it makes ajax calls to urls with api version0, but this fails.

probably you need to change to version 1?

url the webgui : http://127.0.0.1:5001/api/v0/stats/bw?stream-channels=true
should be probably: http://127.0.0.1:5001/api/v1/stats/bw?stream-channels=true

related to #338 maybe

Cannot Move BTT Between In App Wallet and Crypto Wallet on Host UI

1.3.5

Windows 10 Amd

I am not able to transfer BTT in either direction from either wallet.

This is the error in cmd prompt that is listed when I try.

2020-08-07T06:06:29.251-0400 ←[31mERROR←[0m core/wallet wallet/wallet.go:113 Failed to Deposit, ERR[%v]

Please let me know if you need anything else from me on this.

The logic of guard, hub

So according to the help doc, the btfs network contains the guard, hub providing different service. However, currently, in the github I can only find the go-btfs related codes. There is no tutorial of setting up a guard or hub. I do find some requests to the hub or guard here

https://github.com/TRON-US/go-btfs-common/tree/master/protos

But I'd love to check the source codes of guard and hub as well as setting up these local services. Because it seems that this is the new features that you add to the ipfs.

Thanks.

Hosting 5GB but host ui shows 0

1.3.4 - 46772a3
Amd64 win 10

Status UI shows that I am hosting 5 gb of files.

Host UI shows that zero gb of storage being used while it shows contracts and a potential earnings.

Seem like this is incorrect.

Status UI
Screenshot_20200727-223643.png

Host UI
Screenshot_20200727-223715.png

Failed to Download Shard.

Version information:

go-btfs version: 1.3.4-46772a3

amd64, win10 setup.

Just leaving the Daemon running trying to get contracts and this error seems to be a regular one.

2020-07-26T04:12:33.299-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmYxqMEJJjhp7qwrJfUH1R9dpjWQ6he9TUMJtn9pZ1fs6Q from file QmSD34Vm1DH7PsLL9sQZ265S2vKVZbqMdH5HcY23sMSUKP with contract id 491f4f87-e67b-4b5b-814b-5b0f4ec7d4f9,da1bd009-b412-42ee-9e28-e88523c6bec4: [failed to get block for QmUqgggp8wxCEPRKtshU4tdFZfrRZFvfRxb1bRvmzig9uC: context deadline exceeded]
2020-07-26T11:26:40.252-0400 ←[31mERROR←[0m upload upload/init.go:244
failed to download shard QmbeGoxwd8LdCMjzapQwzdN5xfafHc7un4VnMJRSqJiAWn from file QmajkwRBxKb3mdu9fpSj6mdVcpFVcajCSBSxmDNdZpV73L with contract id 0ea3cbf1-54dc-4c67-8687-433f912f6337,b0d60cbd-38bf-4a76-a3e6-716ffd17bb70: [failed to get block for QmbbQmk5tirCinwkFC32RnxoP3yvZp9QZZ81zqT3GqLFde: context deadline exceeded]
2020-07-26T11:33:05.484-0400 ←[31mERROR←[0m upload upload/init.go:244
failed to download shard QmUKQeCDNffCGJVPS9mdJFhgfvCkfgxGJ8HC7B4XpxzNVn from file QmNkHe94FQTY3gpEEGrU1KUKR5nMH1fgxEg754NNwFK9W7 with contract id 14693a6e-05cb-4e75-92d5-640121fb3a6d,1637336a-d405-4549-8e31-ef4f97cc6abe: [failed to get block for QmTVVZdBP5evocxvVHxenRzSezfSP6kSCN9mLdPUNz4YyH: context deadline exceeded]
2020-07-26T12:37:33.770-0400 ←[31mERROR←[0m upload upload/init.go:244
failed to download shard QmTc8CCgZ6tcNYnDkLsDArTKJhxzX4MzqMvuSA63usdtZX from file QmPfxTA2QMfShoVMuY4Vcq2Ty1ir5s5ky7AQosrmrhVzcM with contract id 81e9788d-f4b0-406e-be23-03d38a726e96,d7ed3065-8656-444a-9782-3ceb866ee161: [failed to get block for QmdgmQTasYV5ULDZTsLxqrriE98rYSnp5AUyZjpR4gV3QV: context deadline exceeded]
2020-07-26T20:25:56.460-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmNwWw7PUaRYRrnAuCoMAuTRfzTkZSZhPid7PKAz23iqqn from file QmfMXw3jg5ZTCoLD2Hhu6aQn7SqqUrV1L9F8HCJzBgEiwo with contract id 35de4fcd-8049-4a7c-bd3e-bad935654f91,c98f70cb-e8f9-45ac-82cd-f5fec70d4598: [failed to get block for QmaQa4ebD5DBy4oieeNgywNRG6LobQ6schR5n4PipVivUF: context deadline exceeded]
2020-07-26T22:38:24.616-0400 ←[31mERROR←[0m bitswap providerquerymanager/providerquerymanager.go:338 Received provider (16Uiu2HAm4sDtJf82va9VmJqFXhbKL6BZbcSUvdPNfmALK3f6bUnC) for cid (QmcSyHbmuZqWxyagJq6yKcdkU33KQgurrsnzbfjHbMpchm) not requested
2020-07-26T23:27:43.797-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmWN8MfQaHNcrXiPwLWgnp8QDVHdNzRod5AgqELUHLspTi from file Qmc7MPfXYGwSHJ3KuvrUq4Qf9SFxfn21q8oNwSjAP4DDQk with contract id 0f7c1b9c-5684-4e7d-bc84-19a2a1d7b41c,12c2e67b-0ba3-42fb-91d9-af025b700e0b: [failed to get block for QmYvdx4kcXuGd4pKb1BsAaxWqJn4GAqYejh3mRkPobnWxg: context deadline exceeded]
2020-07-26T23:31:09.468-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmdWPZvZaoZvmBXCLntff1Edxg4D5wt7teDBf8cnkFsHQ4 from file QmSc7AFEy9RLuvjiWRhRdvVWphpmS9LUD9Vco3BqFvWDFr with contract id 80500032-2fd8-48c7-89f4-c7c72b9c5ada,4a95ff1a-cc2c-46cf-9e21-97b8079d102e: [failed to get block for QmdsK8QAxtRjxZe4S7HmkNECzQ4dU25kMDGUzHQjh4PAAq: context deadline exceeded]
2020-07-26T23:32:03.726-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmWfS6T1ybXhtcaEuTKvaoQ3XGP7URFnVsqGjdaVWp4VvJ from file QmRKX4Yh7QiVNnFA3vn7i8hBxMLhvz4jSxee4zrPvy2ZDo with contract id 56b6bdbe-5e34-49f2-b5d4-60606da028a1,42b50883-bf1c-409c-aa53-f22ef8be1d61: [failed to get block for QmUNfgyZ15E2cNvJKPNDsKQ4pgnkaLsT2y6HdqimdXGbCT: context deadline exceeded]
2020-07-26T23:34:21.661-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmSgwp7qDVtgVAcJ7JxpMM3E95rdxLSzLQaETffvfQAuSo from file QmPpV9vpJ1AUHkc7CPufvwKzFWya9zSWDTwDugTWawXp4Z with contract id 5ee34036-e8fb-449d-80ec-fb94570a9005,1a253d31-327c-4aaa-8286-f7f06e1bd4d1: [failed to get block for Qmb4LPwNMuKs4JimzWAR2aSjHVKg27dZGQV61hkH5yXPoA: context deadline exceeded]
2020-07-26T23:36:39.608-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmQPVDyJUPYKuK3mhM4sAeXipvrXg8qmZ4HGy9Qn5DvFFp from file QmacWAVA5KwRmHfWfJeMdDtfVxP17crQnMMtCVipGiXAhi with contract id e32dbfec-5aa4-45ba-8a17-bc54943c5a22,e03d12bd-e30f-4c56-88da-1a17b7e91e83: [failed to get block for QmWGULcUzE2x3kQFSoGVZWP4byFiac2fPjq82fpvxRcyzJ: context deadline exceeded]
2020-07-26T23:37:32.638-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmVPA1JvfxtJ26PJ2HdR8RhQHcDVSQ5kghncmYNDL1DsHx from file QmQULsNFTWn8yee7s7fvKarsqhEqHKdGMuN5BqXYUMm1f3 with contract id c840ff5e-37f7-448e-892d-f7141ce01ecb,97d0ac86-165a-42eb-925d-1b11f69d4b35: [failed to get block for QmTe2sbetJ6bB8mrryHmJwN9bB4RwamX7t1FyeYyfgQ9gL: context deadline exceeded]
2020-07-26T23:55:18.038-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmZ1S4huGH3gCCK2Wet1bKaCxXGxmq79HqciQ8gjfKZNWE from file QmVNQh2yAVPx8PYpKP1eAv3kBLFxs5DRUDAsJ6oXCwr4yM with contract id 4090c18b-57b2-404a-aa2a-076d907aeac2,153909b5-e2be-4531-b40c-1235aa8fdae5: [failed to get block for QmbLorEdmCcrWrtPax8AEkN1WtDkfkye9yLp2qBqyUNCwb: context deadline exceeded]
2020-07-26T23:58:12.199-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmWWMLRptmXKnB6sXaL8v5tEGjsBbEi11ZYvgRQpXfxwsd from file QmWfk3poSWeVeb6VYguc3TRxqKZMqZvH1QMaWDdmJiiaGJ with contract id 4216055a-d8b6-4e86-bc38-346eff3c4442,6fbc9122-258d-4fe8-8814-b0e8177ac7e8: [failed to get block for QmcRtNaRab9iya5pw3FcyfAdnUNs8rdFVPwWjgr5b9gr86: context deadline exceeded]
2020-07-27T00:09:58.222-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmaoZKsAufXWEoMrALuSYF5iu5F14nzcT7HTndAZsUTgMh from file QmVp2DhvYYv9dG8VPxTFPPuNLazYS5Vnq5HfGxkMUVqiRx with contract id e9e1901e-fbc0-4ae7-b916-3fd84e908387,f18b15df-2db1-4224-a933-3803718c5e75: [failed to get block for QmWthscxtSWFumtf7zLQ9V7i6cWQiknxgXv8gEE2PEk6xs: context deadline exceeded]
BTFS is up-to-date.
2020-07-27T03:29:32.139-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmaSrJJL6z2JV974xwkSaoMpCkTKTXCpSaKvpeaiEADpD6 from file QmZ3EKp1og4jk7JJVsUKba3CUSXeqxa4VKPDzVUMaPjmuM with contract id 8e96da04-0a20-4983-b5f7-4fbd475ba26b,f6b9d0e2-5dea-4c55-8b44-9f39eca17caa: [failed to get block for QmcrJo2JwmV4b6Wq3Bp6fR3fL91RnaNfBWsgXfJ9Dzbbmd: context deadline exceeded]
2020-07-27T03:44:34.290-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmPmh5hC2s1fM19uNDUdev5LeRNwnwHsuzsZd3WV2tY1zM from file Qma8SBfRMENzzdXz3eCFuH7kXJatizzadtggPFuUkGt5i1 with contract id e6004a91-73e4-4bef-a60f-6799ed6e40db,4666d1cd-40c5-492c-8102-67c984e264f2: [failed to get block for QmZRYBvX1eEWqthkk9Vmtb462Bf2JSkNPHMpoQMWzwjXc1: context deadline exceeded]
2020-07-27T04:38:23.606-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmTBtZ9Bi8fhi526o88aTu9RasEymWTvtrFRWQEMXVtcSi from file Qmc9qAjE5vjMjSkE9vASFcnXJE4bb9Qs9tcyNK8AQ3r7Rx with contract id 3e76ac63-8d0a-4c12-a427-783bc17829cd,c1a1d0d3-6d1d-4489-ac22-08300bfc1a32: [failed to get block for QmY9VSgaf9AU5v77prM6wG7nvn7Qkba67xqfPEFJQ9j8h9: context deadline exceeded]
2020-07-27T04:50:09.028-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmdQDfuW437d23sSkZZHoMsjfpeUyEa7xFizGqh4yTR6dF from file QmPHuh8S9vqRB8ZwYXynPvKSQr59w9eJakGbGzepXVoNMP with contract id 744132c7-15cc-46f7-abdb-bba0ddc3ba7f,473cfc07-5a3d-424e-acfd-d61a959996f5: [failed to get block for Qmew85D48SFWvMrY1M9RzZfrTUugeLpQ8bgeViA6ywpW3M: context deadline exceeded]
2020-07-27T04:50:36.167-0400 ←[31mERROR←[0m upload upload/init.go:244 failed to download shard QmXGVfpqWZw4S3dSEr6Pr6VExYX2L3asBb65w3QFyM4wZa from file QmQBBjGY69dPGiBqKeqVNPhsURf6aa15Szg9hw3amKHRyf with contract id 2a45c7ea-7fe8-4d2e-95c7-164d46d7df5c,0ca16847-3f2d-4598-aed1-3657d860083c: [failed to get block for QmWEjSdqTy4Kca716mRXk9UDg3NsvdcGUFBquMKqYTVyMt: context deadline exceeded]

node keep crashing

Version information:

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/linux
Golang version: go1.14.6

Description:

Node is running and at some point start showing errors
"Failed to sync host stats: open /home/btfs/.btfs/datastore: too many open files"

and at some point crash and exit

2020-08-06T21:13:57.713Z ERROR spin spin/hosts.go:63 Failed to sync host stats: open /home/btfs/.btfs/datastore: too many open files
2020-08-06T21:44:12.490Z ERROR spin spin/hosts.go:63 Failed to sync host stats: open /home/btfs/.btfs/datastore: too many open files
2020-08-07T00:14:13.519Z ERROR spin spin/hosts.go:63 Failed to sync host stats: open /home/btfs/.btfs/datastore: too many open files
panic: runtime error: index out of range [0] with length 0

goroutine 3520 [running]:
github.com/TRON-US/go-btfs/spin.(dcWrap).update(0xc0012be1e0, 0xc000eae1e0, 0x0, 0x0, 0x0)
/go-btfs/spin/analytics.go:154 +0xa37
github.com/TRON-US/go-btfs/spin.(dcWrap).doPrepData(0xc0012be1e0, 0xc000eae1e0, 0x8, 0x2e0d1b0, 0xc02a262360, 0xc003f87180, 0x1869f12, 0x2e0fa40)
/go-btfs/spin/analytics.go:219 +0x4d
github.com/TRON-US/go-btfs/spin.(dcWrap).sendData(0xc0012be1e0, 0xc000eae1e0, 0xc00090a800)
/go-btfs/spin/analytics.go:186 +0x50
github.com/TRON-US/go-btfs/spin.(dcWrap).collectionAgent(0xc0012be1e0, 0xc000eae1e0)
/go-btfs/spin/analytics.go:274 +0xca
created by github.com/TRON-US/go-btfs/spin.Analytics
/go-btfs/spin/analytics.go:125 +0x4cd

after restart it was live few hours and crash again, I'll not mention that after every restart timeout and score going down which was 10/10....

2020-08-08T00:59:39.395Z ERROR spin spin/hosts.go:63 Failed to sync host stats: open /home/btfs/.btfs/datastore: too many open files
panic: runtime error: index out of range [0] with length 0

goroutine 2206 [running]:
github.com/TRON-US/go-btfs/spin.(*dcWrap).update(0xc0013176a0, 0xc00020c3c0, 0x0, 0x0, 0x0)
/go-btfs/spin/analytics.go:154 +0xa37
github.com/TRON-US/go-btfs/spin.(*dcWrap).doPrepData(0xc0013176a0, 0xc00020c3c0, 0x2e0d1e8, 0xc02bc4d0f0, 0xc03386c080, 0xc0000e4380, 0xc00055f4d0, 0x2e0fa40)
/go-btfs/spin/analytics.go:219 +0x4d
github.com/TRON-US/go-btfs/spin.(*dcWrap).sendData(0xc0013176a0, 0xc00020c3c0, 0xc000098000)
/go-btfs/spin/analytics.go:186 +0x50
github.com/TRON-US/go-btfs/spin.(*dcWrap).collectionAgent(0xc0013176a0, 0xc00020c3c0)
/go-btfs/spin/analytics.go:274 +0xca
created by github.com/TRON-US/go-btfs/spin.Analytics
/go-btfs/spin/analytics.go:125 +0x4cd

BTFS - lost all my contracts with last update, randomly into a never-ending VALIDATION cycle and various daemon errors.

Host ID: 16Uiu2HAm37e4LJ5RCtcVDrESGMS1oLU1B73eTEV2qLLY23HxbtSh

Daemon output:

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6
Repo location: T:\btfs
Node ID: 16Uiu2HAm37e4LJ5RCtcVDrESGMS1oLU1B73eTEV2qLLY23HxbtSh
Swarm listening on /ip4/127.0.0.1/tcp/1234
Swarm listening on /ip4/169.254.107.2/tcp/1234
Swarm listening on /ip4/169.254.114.255/tcp/1234
Swarm listening on /ip4/169.254.202.243/tcp/1234
Swarm listening on /ip4/169.254.40.171/tcp/1234
Swarm listening on /ip4/169.254.70.232/tcp/1234
Swarm listening on /ip4/192.168.0.17/tcp/1234
Swarm listening on /ip6/::1/tcp/1234
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/1234
Swarm announcing /ip4/169.254.107.2/tcp/1234
Swarm announcing /ip4/169.254.114.255/tcp/1234
Swarm announcing /ip4/169.254.202.243/tcp/1234
Swarm announcing /ip4/169.254.40.171/tcp/1234
Swarm announcing /ip4/169.254.70.232/tcp/1234
Swarm announcing /ip4/192.168.0.17/tcp/1234
Swarm announcing /ip4/90.201.122.128/tcp/1234
Swarm announcing /ip6/::1/tcp/1234
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
BTFS is up-to-date.
2020-08-08T12:36:29.171+0100 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync HOST contracts: context d
eadline exceeded
2020-08-08T13:13:26.764+0100 ←[31mERROR←[0m upload upload/init.go:303 failed to download shard QmfA2CYcY91Xsz7
Z3d6itjcLXK1UtdkauQ1uEjgozfZFh2 from file QmPjUFqekACQ428G8vWiNq3i21Zn1GBxqk51kuCLxDSgQg with contract id e7d16466-bd75-
45b6-a554-b74805e3d5b8,d096bf6d-5280-442b-938e-95dfc2710c53: [failed to get block for QmZWfT8JgHw1ZVUNT2TPXivPDnPwugMubD
XR8VmvLTMLhv: context deadline exceeded]
2020-08-08T13:52:06.325+0100 ←[31mERROR←[0m upload upload/init.go:303 failed to download shard QmQqsfZZnTs3vCW
cNmwo7FdcfynwSQ2364qEHPFG2bS4K3 from file QmeKBZxBUjRQSAo8kEh1jQyq6CchQJE54dougURB8pseU6 with contract id 7fd6f749-a20e-
4715-852b-1a0622e4ae57,206e5d2b-4885-49c6-a978-203bfc875bf4: [failed to get block for QmUZjZfozCSwfokcC4Q69XSagBTMJZKtQs
ajjmvCea7bVB: context deadline exceeded]

Until the last update, everything worked smoothly and then after it issues started to come up. As you can notice from the attached screenshot randomly I get the VALIDATION process, and it keeps spinning my hard drives for hours, and then the process crashes miserably.

Also, my disk space is still occupied by the files renters have uploaded before the last update. If the contracts are not active or they are revoked, deleted or whatever, why my disk space is still occupied by them? Is there any chance to clean or reinitialize my host? It is more than 12GB!!!
screen1

Any idea?

failed to add a file

There might be something wrong with the code. I build the lastest code locally and run

btfs daemon

The output is like this

~/work/blockchain/go-btfs$ btfs daemon
Initializing daemon...
go-btfs version: 1.0.0-dev-9f4b12e
Repo version: 7
System version: amd64/linux
Golang version: go1.13.3
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.1.67/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/199.168.139.56/tcp/4001
API server listening on /ip4/0.0.0.0/tcp/5001
WebUI: http://0.0.0.0:5001/webui
Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Hosts info will be synced at [SCORE] mode
ipfs-shell: warning! unhandled response (500) encoding: text/html01:30:50.026 ERROR cmd/btfs: Get btfs id error, reasons: [id: unknown ipfs-shell error encoding: "text/html" - "\n\n <title>500 Internal Privoxy Error</title>\n <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon">\n\n

500 Internal Privoxy Error

\n

Privoxy encountered an error while processing your request:

\n

Could not load template file no-server-data or one of its included components.

\n

Please contact your proxy administrator.

\n

If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It's typically the Privoxy install directory).

\n\n\n"] autoupdate.go:155

And then I tried the command

`
btfs add try.txt

01:29:56.842 ERROR cmds/http: could not guess encoding from content type "text/html" parse.go:217
Error: unknown error content type: text/html
`

So weird. Any help?

hard disk space is not enough 32g

Not enough storage space

32 GB is the minimum available space needed to continue setting up your host. Please use another computer with at least 32 GB of availabe space to continue.

but my PC has enough space.

ERROR spin: Failed to sync host stats:

When I run BTFS.exe Daemon I get the following error:
ERROR spin: Failed to sync host stats: Failed to query stats rom Hub service: hits 0 hosts.go:66

Below is all the lines from Command Prompt:

F:\BTFS>btfs.exe daemon
Initializing daemon...
go-btfs version: 1.1.2-
Repo version: 7
System version: 386/windows
Golang version: go1.14.2
Swarm listening on /ip4/10.11.0.45/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/130.15.144.44/tcp/4001
Swarm listening on /ip4/169.254.237.229/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.11.0.45/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/130.15.144.44/tcp/4001
Swarm announcing /ip4/169.254.237.229/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
10:50:11.010 ERROR spin: Failed to sync host stats: Failed to query stats from Hub service: hits 0 hosts.go:66
BTFS is up-to-date.

Reverse Proxy

I run btfs on a remote host, and I'm unable to connect to hostui / webui with my local computer. After a few hours tinkering with NGINX I realized the futility of setting up my own reverse proxy, and even if it was successful it would open a security vulnerability unless paired with a firewall restriction. I would like to submit a feature request to add a built in proxy, password protected access to hostui / webui. Perhaps the password could be displayed when launching btfs daemon.

Refreshing Host UI causes daemon to go to inital validation.

go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6

2020-08-06T18:40:20.908-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync hosts: Failed to query hosts from Hub service: context deadline exceeded
2020-08-06T18:40:20.909-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync host stats: Failed to query stats from Hub service: context deadline exceeded
2020-08-06T18:40:20.909-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:40:51.624-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:41:22.323-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:41:52.989-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:42:23.953-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:42:55.869-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:43:29.660-0400 ←[31mERROR←[0m spin spin/analytics.go:209 failed to send data to status server: context deadline exceeded
2020-08-06T18:45:50.926-0400 ←[31mERROR←[0m spin spin/hosts.go:63 Failed to sync HOST contracts: context deadline exceeded

Failed to sync host stats #536 BTFS-1.3.1

it has been more than 45min but btfs is still syncing
i also enabled the hosting profile
my node id 16Uiu2HAm79p7QP9Jsr15SkrKeq2jB76hS22ELs9nanDhRPfZ26Ga

my log

Initializing daemon...
go-btfs version: 1.3.1-ed6b1d7
Repo version: 9
System version: amd64/windows
Golang version: go1.14.4
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.0.111/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/175.143.26.195/tcp/1024
Swarm announcing /ip4/192.168.0.111/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
2020-07-09T13:43:16.270+0800    �[31mERROR�[0m  spin    spin/hosts.go:66        Failed to sync host stats: Failed to query stats from Hub service: Cannot query to get stats!
BTFS is up-to-date.
2020-07-09T14:13:16.256+0800    �[31mERROR�[0m  spin    spin/hosts.go:66        Failed to sync host stats: Failed to query stats from Hub service: Cannot query to get stats!```

Failed to sync host stats

if setup a new btfs node as host but i get the following error:

19:23:10.901 ERROR spin: Failed to sync host stats: Failed to query stats from Hub service: Cannot query to get stats! hosts.go:66

and i didnt see anything on the hostui.
on the webui ist everything ok and it shows me what i am hosting right now

File sharing URL is missing gateway.btfs..

Hi,

After adding a file and selecting the option to share it, the link that is generated is wrong.

The correct link should start with https://gateway.btfs.trongrid.io and its missing..

image

This leads to a "This site can’t be reached" error..

Thank you!

0 contracts and no payment date

Version information:

go-btfs version: 1.3.6-b1722d1
Repo version: 9
System version: amd64/windows
Golang version: go1.14.6

Description:

Peer ID: 16Uiu2HAm6aHyva9NKfwJecfgVftnJ4t7WjLbR6ZTwNqdrHL5JqY7

Since my payment on August 8th, the contracts counter on the Host UI had lower to 0, although I still have a bunch of GB hosted in my HDD.
I'm still getting paid, that's no problem, I just don't know if this is intended, or if it's a bug. For reference, I have +1000 contracts. I know that because of the error details from the past version.

Please if you need more info, don't hesitate in asking.

Edit: forgot to add a screenshot
image

Thanks

ERROR spin spin/hosts.go:63

Version information:

go-ipfs version: 0.6.0-d6e036a88
Repo version: 10
System version: amd64/linux
Golang version: go1.14.4

Description:

I apologize in advance if I did something wrong.

I keep repeating one and the same mistake.

btfs daemon                                                                                                                                                        
Initializing daemon...                                                                                                                                                 
go-btfs version: 1.3.6-b1722d1                                                                                                                                         
Repo version: 9                                                                                                                                                        
System version: amd64/linux
Golang version: go1.14.6
Repo location: /home/nick/File/torrent/
Node ID: 16Uiu2HAm8zc1g73fxoZA29GhmZFqkjbEG21X7Gahkht65rdGPrG9
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.31.24/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/109.251.157.178/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.31.24/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
2020-08-21T21:36:35.865+0300    ERROR   spin    spin/hosts.go:63        Failed to sync host stats: Failed to query stats from Hub service: HubQueryClient: Cannot query to get stats!
BTFS is up-to-date.
2020-08-21T22:06:35.783+0300    ERROR   spin    spin/hosts.go:63        Failed to sync host stats: Failed to query stats from Hub service: HubQueryClient: Cannot query to get stats!
2020-08-21T22:36:35.790+0300    ERROR   spin    spin/hosts.go:63        Failed to sync host stats: Failed to query stats from Hub service: HubQueryClient: Cannot query to get stats!
2020-08-21T23:06:35.764+0300    ERROR   spin    spin/hosts.go:63        Failed to sync host stats: Failed to query stats from Hub service: HubQueryClient: Cannot query to get stats!

Crashes since 1.1.1 panic: runtime error: index out of range

Since my BTFS host was updated to 1.1.1 I'm seeing very regular crashes. In the logfiles I see the below:

panic: runtime error: index out of range [9] with length 9

goroutine 413010 [running]:
github.com/TRON-US/go-btfs/core/commands/storage/upload/upload.glob..func1(0xc00300b650, 0x25ec4c0, 0xc0034b8180, 0x1e96d60, 0xc00053c 180, 0x0, 0x0)
/go-btfs/core/commands/storage/upload/upload/init.go:110 +0xcf2
github.com/TRON-US/go-btfs-cmds.(*Command).call.func1(0xc005d80420, 0x33b7d20, 0xc00300b650, 0x25ec4c0, 0xc0034b8180, 0x1e96d60, 0xc00 053c180)
pkg/mod/github.com/!t!r!o!n-!u!s/[email protected]/command.go:118 +0x66
created by github.com/TRON-US/go-btfs-cmds.(*Command).call
pkg/mod/github.com/!t!r!o!n-!u!s/[email protected]/command.go:117 +0x2bb
panic: runtime error: index out of range [9] with length 9

I'm not 100% sure that this is related to the crash but it seems likely?

How to mine?

I have my daemon up and running, initialized the host, and its stating "Storage Used: 0GB Used / 9500 GB remaining".

I see the top earners of space race having 16GB? What storage counts for the space mining? Why am I not in there? This document is really unclear:
https://medium.com/@BitTorrent/btfs-will-soon-launch-storage-space-mining-on-july-7th-along-with-a-contest-of-up-to-20-billion-aa40c0919a28

It states "Each host will increase the storage capacity of 100MiB or more every day, you can join the mining bonus pool and share the total mining bonus of the day proportionally"

What does that even mean? Am I a host? Do I have to increase my storage every day? How do I join this mining bonus pool? How can i mine? Or is that setting up the daemon like this?

Also, how can I add more storage disks? I have several TB's available, does everything have to be in a single linux folder?

Also, why does my host show "0 GB used", and the webui shows "Hosting 7 MB of files"?

btfs add <file or dir> is not evident on MFS.

Hi, I found in the documentation that btfs add <file> is not supposed to record that file in the MFS, so it cant be seen in the IPFS Web UI.
But, it will be nice if you integrate it as a flag for the 'add' command, such as:
btfs add -mfs <file or dir>.

Every time i want to achieve this i have to type btfs files cp /btfs/<hash> <objectName>. What do you think?

Failed to sync host stats

Initializing daemon...
go-btfs version: 1.3.5-20c165c
Repo version: 9
System version: amd64/darwin
Golang version: go1.14.6
Repo location: /Users/yuzhongrong/.btfs
Node ID: 16Uiu2HAm1PfdBYocF3kPUmkkBEuThbjdoaV5e8kP4zZ2Ksvk1haj
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.2.105/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.2.105/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
HostUI: http://127.0.0.1:5001/hostui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Storage host info will be synced at [SCORE] mode
Current host stats will be synced
Current host settings will be synced
2020-08-18T09:53:00.409+0800 ERROR spin spin/hosts.go:63 Failed to sync host stats: Failed to query stats from Hub service: Cannot query to get stats!
BTFS is up-to-date.

1.3.4 to 1.3.5 no auto update

Version information: 1.3.4

Description: The auto update is not working on 1.3.4 for the new update to 1.3.5

Restartet the node 5 times around the day but always say btfs is up to date.

Auto update is activated

How to add domain binding?

At the end of the tutorial here

https://docs.btfs.io/docs/common-usage

It says we can add DNS TXT record. However, I am reading the source code of btfs and through some debugging, I was able to figure out the actual "btns" domain resolving is at here

https://github.com/TRON-US/go-btfs/blob/master/namesys/dns.go#L116

So it calls lookupTXT(name).

It looks like the actual domain resolving is here. And I can't really find this lookupTXT func in the repo. So where is this func? And how to add a domain binding?

Thanks.

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.