Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

try to use sia as nextcloud external storage #3

Open
tlightsky opened this issue Apr 12, 2017 · 25 comments
Open

try to use sia as nextcloud external storage #3

tlightsky opened this issue Apr 12, 2017 · 25 comments

Comments

@tlightsky
Copy link

tlightsky commented Apr 12, 2017

sia version: master, full synced
next cloud version: 11.0.2

but the flag is red,
and keeps give me some error log

Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:15:00+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:15:00+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:15:00+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:14:59+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:14:59+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:14:59+0800
Error	files_external	Could not load storage: "Unable to get backend for sia"	2017-04-12T17:14:59+0800
@hcharbonnier
Copy link

hcharbonnier commented Apr 12, 2017

3 things to check:

  • Is your sia API runnig on localhost:9980 ?
  • Have you installed the Sia-Nextcloud plugin in this directory: apps/files_external_sia ?
  • Have you the Requests lib (http://requests.ryanmccue.info) in this directory : apps/files_external_sia/sia-php/Requests/ ?

@avahowell
Copy link
Contributor

Installing the nextcloud app from the Nextcloud App Store should be sufficient, no need to manually install. Make sure your sia node is connectable to your nextcloud machine at localhost:9980.

@tlightsky
Copy link
Author

yes,i can use all siac command in localhost

@tlightsky
Copy link
Author

@johnathanhowell how can i test that

@avahowell
Copy link
Contributor

The Nextcloud integration's test function (the thing that determines if the storage is usable or not) checks that you have renter contracts. Have you created an allowance on your siad node?

@tlightsky
Copy link
Author

I haven't set allowance yet,does that matter?

@avahowell
Copy link
Contributor

avahowell commented Apr 13, 2017

Yes, you must have contracts in order to upload, download, and store

@tlightsky
Copy link
Author

ok,i'll try that

@tlightsky
Copy link
Author

wait a long... time for contract forming,
the hint should be "no contracts" rather than "Unable to get backend for sia" I think

@tlightsky
Copy link
Author

the flag turn green now, but there is some problem else,
I'll open another issue

@tlightsky
Copy link
Author

I still think the hint : "Unable to get backend for sia" should be "you should set some allowance",
which makes me still keep this issue open for a while

@xadhoom76
Copy link

Hi, I'm tryong to use it but it asks for "Rental Data Directory" what i have to put in it ?
Thanks

@tlightsky
Copy link
Author

@xadhoom76 it's a local dir for data,to store data locally for sia file repairing
if sia support file repairing without local file, that dir might be not necessary

@xadhoom76
Copy link

@tlightsky the app doesn't work .
The data sir is mandatory and I do not know if it is necessary a relative or absolute path.
My said is running and accepting contracts but from Nextcloud I can't connect. Nextcloud log tills says unable to get backend.
What can I try? Thanks

@tlightsky
Copy link
Author

@xadhoom76
I use a absolute one.
you should send some coins to that node,and set allowance to form contracts with hosts.
then you can upload things to sia network

@xadhoom76
Copy link

Better with examples
I think we need to put a detailed how to in order to set up more easily. I'll try again. Let you know.
Thanks.

@xadhoom76
Copy link

sia
sai2

@tlightsky No way to put it in working state.

@avahowell
Copy link
Contributor

@xadhoom76 the Nextcloud integration requires that you are running a renter configured with an allowance, not a host. To do so, use siac renter setallowance.

@xadhoom76
Copy link

xadhoom76 commented Jun 5, 2017 via email

@avahowell
Copy link
Contributor

Try making sure the directory provided to Renter Data Directory exists and Nextcloud has permissions to read and write inside that directory.

@xadhoom76
Copy link

nope.... is there a way to have more log or to check ? did not work..
app":"files_external","message":"Could not load storage: "Unable to get backend for sia"","level":3,"time":"2017-06-05T20:12:17+00:00","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","user":"admin","version":"11.0.3.2"}

@tlightsky
Copy link
Author

tlightsky commented Jun 6, 2017

@xadhoom76 this is my setting
image

can you post your renter -v info

@xadhoom76
Copy link

Ok the problem was on setallowance.. Now I have
Renter info:
Storage Spending: 0 H
Upload Spending: 0 H
Download Spending: 0 H
Unspent Funds: 7.477 SC
Total Allocated: 7.477 SC

The light turns on but on nextcloud.log I seen that i have not enought contracts ( 1 of 20 ).

@simonjaq
Copy link

simonjaq commented Jul 16, 2017

I have similar issues. The nextcloud log is full of error messages:
Error | files_external | Could not load storage: "Unable to get backend for sia"
I was able to upload a file to sia through siac and I see the file in nextcloud and I'm able to download. I was also able to create an empty .txt file in the sia folder. But I'm not able to upload anything.
Here's my renter info:

Renter info:
	Storage Spending:  39.52 mS
	Upload Spending:   2.963 mS
	Download Spending: 3.118 mS
	Unspent Funds:     555.6 SC
	Total Allocated:   555.7 SC

Tracking 2 files:
File size  Available  Progress  Redundancy  Renewing  Sia path
   5.9 KB  Yes         100.00%        3.00  Yes       test
      1 B  Yes         100.00%        3.00  Yes       test.txt

When I try to upload I get this message:
Nicht genügend freier Speicherplatz, Sie möchten 142 KB hochladen, es sind jedoch nur noch 0 B verfügbar.
It means that there is no storage space available.

@mtlynch
Copy link
Contributor

mtlynch commented Aug 6, 2017

I created this tutorial to walk through the steps:

https://mtlynch.io/sia-nextcloud/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants