Skip to content
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

Identity directory not found #1418

Closed
Uddeshya-1812 opened this issue Mar 6, 2019 · 12 comments
Closed

Identity directory not found #1418

Uddeshya-1812 opened this issue Mar 6, 2019 · 12 comments
Labels
Waiting for Feedback Waiting on Feedback of author

Comments

@Uddeshya-1812
Copy link

file or directory not found error: open /home/uddeshya/.local/share/storj/identity/uplink/identity.cert: no such file or directory
above error was reported while creating a bucket...please provide a solution

@jtolio
Copy link
Member

jtolio commented Mar 7, 2019

We currently have a bug where storage node identities are required for uplinks as well. We're working on fixing it but in the meantime you can create an identity by running go install storj.io/storj/cmd/identity && identity create uplink

@BlueNokia
Copy link

Even after generating the identity I am served with Uplink configuration error: failed to connect to overlay: transport error: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7778: connect: connection refused"

@stefanbenten
Copy link
Contributor

Do you have a local network running? @BlueNokia
At this stage there is no public network you can use the uplink against. Per default it tries to connect to a satellite running in your local environment.
You can see how that works here:
https://storj.io/blog/2019/01/getting-started-with-the-storj-v3-test-network-storj-sdk/

@rohan-chakra
Copy link

Do you have a local network running? @BlueNokia
At this stage there is no public network you can use the uplink against. Per default it tries to connect to a satellite running in your local environment.
You can see how that works here:
https://storj.io/blog/2019/01/getting-started-with-the-storj-v3-test-network-storj-sdk/

I am having a different error when I execute the command "uplink ls" or any uplink command at all. The error is "rpc error: code = Unauthenticated desc = Invalid API credential". And yes, I ran the storj network before I excuted the uplink commands. Can't find a way out, please help!

@stefanbenten
Copy link
Contributor

@rohan-chakra You have to use the ENV Variables of the storj-sim network to take the correct API Credentials for authorization.
You can find the description in detail here:
https://github.com/storj/docs/blob/master/Test-network.md#running-tests

@rohan-chakra
Copy link

@rohan-chakra You have to use the ENV Variables of the storj-sim network to take the correct API Credentials for authorization.
You can find the description in detail here:
https://github.com/storj/docs/blob/master/Test-network.md#running-tests

Can you please tell me the instructions of how to change the ENV variables and the steps to set the correct API credentials because it is not mentioned in this link or any link of storj blogs that I have visited yet.

@stefanbenten
Copy link
Contributor

@rohan-chakra You can point your local uplink at the gateway config that is automatically being started by storj-sim like this:
uplink --config-dir $GATEWAY_0_DIR <other-config-flags-you-want>

Reason for using the gateway config is that the uplink is an extended version of the former.
For additional flags that you might want to use the --help flag is very self explanatory.

@rohan-chakra
Copy link

@rohan-chakra You can point your local uplink at the gateway config that is automatically being started by storj-sim like this:
uplink --config-dir $GATEWAY_0_DIR <other-config-flags-you-want>

Reason for using the gateway config is that the uplink is an extended version of the former.
For additional flags that you might want to use the --help flag is very self explanatory.

image
Hey Stefan I am sorry to have to constantly ask you this but I am honestly not sure how to configure the correct API credentials and what additional flags from gateway would resolve my problem. In this screenshot you can see the error is appearing in the storj network running in the background as well. Does this mean I am connected? and how do I solve this error?

@ng1091
Copy link

ng1091 commented Mar 12, 2019

@rohan-chakra
Hey Rohan, I have the same problem.
uplink --config-dir $GATEWAY_0_DIR ls
Because $GATEWAY_0_DIR is empty on my MacOS, I set it to gateway directory using export $GATEWAY_0_DIR=<path to gateway config>, and this works for me.

@stefanbenten stefanbenten added the Waiting for Feedback Waiting on Feedback of author label Mar 22, 2019
@Twisterblack
Copy link

Twisterblack commented Apr 3, 2019

Hello everyone !
I thank you in advance for your help.

I am running Linux Debian, when I try to create a bucket with "

uplink mb sj: // thename

I get an error message:

file or directory not found error: open /home/daylight/.local/share /storj/identity/uplink/identity.key: no such file or directory

And when I try this command:

go install identity && identity create uplink

I get this error message:

can not load package: package identity: can not find "identity" package in any of:
/ usr / local / go / src / identity (from $ GOROOT)
/ home / daylight / go / src / identity (from $ GOPATH)

How is it that the directory does not exist and how to solve this problem?

Thank you so much.

@stefanbenten
Copy link
Contributor

stefanbenten commented Apr 6, 2019

Hello @Twisterblack !

Your install command is incorrect.
Please use: go install ./cmd/identity && identity create uplink

@stefanbenten
Copy link
Contributor

Closing as there is no further issue being reported!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for Feedback Waiting on Feedback of author
Projects
None yet
Development

No branches or pull requests

7 participants