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

ERROR [build 4/4] RUN ./gradlew --no-daemon assemble #11

Open
ShivaSunny9 opened this issue Dec 7, 2020 · 4 comments
Open

ERROR [build 4/4] RUN ./gradlew --no-daemon assemble #11

ShivaSunny9 opened this issue Dec 7, 2020 · 4 comments
Labels
question Further information is requested

Comments

@ShivaSunny9
Copy link

Please ask questions you have in our Discord group first. You can also search GitHub to see if the issue has been reported already.

Otherwise, please feel free to ask your question here.

My docker is running but I can able to run the project getting an error
ERROR [build 4/4] RUN ./gradlew --no-daemon assemble
I even asked about this on their discord, but dint got any answer.

I have followed this video
https://www.youtube.com/watch?v=Zitoa1NNMIs&t=179s
167

@ShivaSunny9 ShivaSunny9 added the question Further information is requested label Dec 7, 2020
@gregscullard
Copy link
Collaborator

Hi I have just tried it after and fresh pull from gitHub and it worked ok.

  1. did you copy the .env.sample file and edit ? There is an error about /usr/bin/env which could be related although not 100% sure
  2. it looks like you're running on windows, I don't think we've tested this on windows. I will try to set some time aside to run it under windows after you've confirmed (1).

I assume you've not changed the Dockerfile or anything else ?

@ShivaSunny9
Copy link
Author

Thanks for the reply.

  1. I am using windows, please check at your side is it running on windows.
  2. No, I dint changed anything on docker file.
  3. I have copied the same env file and edited accordingly
OPERATOR_ID=0.0.xxxx
OPERATOR_KEY=302....
# testnet, previewnet, mainnet
NETWORK=testnet
# hedera, kabuto (note kabuto not available on previewnet)
MIRROR_PROVIDER=hedera

and when I am running the
cmd ./gradlew :appnet-api-server:run
I am getting this error
168

@gregscullard
Copy link
Collaborator

ok, it looks like the example folder is missing its own .env file.
-There is one for the SDK
-Another for the example itself.

The line (271) referred to in the error message refers to a line of code that attempts to get the OPERATOR_ID from .env in example.

See here: https://github.com/hashgraph/did-sdk-java/tree/master/examples/appnet-api-server

@ShivaSunny9
Copy link
Author

I have tried with Linux it is working fine, but in the windows, I am getting the same error after updating .env.
Please, check why it is not working on windows.

168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants