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

Can't build from souce, error on "git lfs" #4399

Closed
hrqmonteiro opened this issue Aug 6, 2020 · 7 comments
Closed

Can't build from souce, error on "git lfs" #4399

hrqmonteiro opened this issue Aug 6, 2020 · 7 comments
Labels

Comments

@hrqmonteiro
Copy link

Description

Trying to build from source from the .tar.gz on Downloads section, and i got git lfs error.

Version

Latest

Steps to reproduce

Just trying to build from source, and got this error, follows the full log:

./gradlew :seednode:build
> Task :assets:compileJava
> Task :assets:processResources
> Task :assets:classes
> Task :assets:jar
> Task :proto:extractIncludeProto
> Task :proto:extractProto
> Task :proto:generateProto
> Task :proto:compileJava
> Task :proto:processResources
> Task :proto:classes
> Task :proto:jar

> Task :common:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :common:processResources NO-SOURCE
> Task :common:classes
> Task :common:jar

> Task :p2p:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :p2p:processResources FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/hrq/Downloads/bisq-1.3.6/build.gradle' line: 280

* What went wrong:
Execution failed for task ':p2p:processResources'.
> p2p data store files have not been synchronized. To fix this, ensure you have Git LFS installed and run `git lfs pull`. See docs/build.md for more information.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 40s
13 actionable tasks: 13 executed
make: *** [Makefile:120: seednode/build] Error 1

Expected behaviour

To build properly, i guess

Actual behaviour

Just explained above.

Screenshots

None

Device or machine

Void Linux

Additional info

None

@boring-cyborg
Copy link

boring-cyborg bot commented Aug 6, 2020

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

@hrqmonteiro
Copy link
Author

Update:

I forgot, doing the "git lfs pull" simply does nothing since it is not a git repository.

bisq-1.3.6 $ git lfs pull
Not in a git repository.

@m00nstar
Copy link

m00nstar commented Aug 6, 2020

Hi!
Confirm. I have the same error. Can't build from tar.gz archive since version 1.3.5.

Starting a Gradle Daemon (subsequent builds will be faster)

Task :common:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :common:compileTestJava
Note: /home/ogv/bisq-1.3.6/common/src/test/java/bisq/common/app/CapabilitiesTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :p2p:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :p2p:processResources FAILED

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/ogv/bisq-1.3.6/build.gradle' line: 280

  • What went wrong:
    Execution failed for task ':p2p:processResources'.

p2p data store files have not been synchronized. To fix this, ensure you have Git LFS installed and run git lfs pull. See docs/build.md for more information.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 52s
25 actionable tasks: 25 executed

@hrqmonteiro
Copy link
Author

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

I followed the template.

@slackmaster21
Copy link

slackmaster21 commented Aug 10, 2020

Same problem as above.

$ sudo ./gradlew build

Task :assets:compileJava UP-TO-DATE
Task :assets:processResources UP-TO-DATE
Task :assets:classes UP-TO-DATE
Task :assets:jar UP-TO-DATE
Task :assets:assemble UP-TO-DATE
Task :assets:compileTestJava UP-TO-DATE
Task :assets:processTestResources NO-SOURCE
Task :assets:testClasses UP-TO-DATE
Task :assets:test UP-TO-DATE
Task :assets:check UP-TO-DATE
Task :assets:build UP-TO-DATE
Task :proto:extractIncludeProto UP-TO-DATE
Task :proto:extractProto UP-TO-DATE
Task :proto:generateProto UP-TO-DATE
Task :proto:compileJava UP-TO-DATE
Task :proto:processResources UP-TO-DATE
Task :proto:classes UP-TO-DATE
Task :proto:jar UP-TO-DATE
Task :cli:compileJava UP-TO-DATE
Task :cli:processResources UP-TO-DATE
Task :cli:classes UP-TO-DATE
Task :cli:jar UP-TO-DATE
Task :cli:startScripts UP-TO-DATE
Task :cli:distTar UP-TO-DATE
Task :cli:distZip SKIPPED
Task :cli:assemble UP-TO-DATE
Task :cli:compileTestJava UP-TO-DATE
Task :cli:processTestResources NO-SOURCE
Task :cli:testClasses UP-TO-DATE
Task :cli:test UP-TO-DATE
Task :cli:check UP-TO-DATE
Task :cli:installDist
Task :cli:build
Task :common:compileJava UP-TO-DATE
Task :common:processResources NO-SOURCE
Task :common:classes UP-TO-DATE
Task :common:jar UP-TO-DATE
Task :common:assemble UP-TO-DATE
Task :common:compileTestJava UP-TO-DATE
Task :common:processTestResources NO-SOURCE
Task :common:testClasses UP-TO-DATE
Task :common:test UP-TO-DATE
Task :common:check UP-TO-DATE
Task :common:build UP-TO-DATE
Task :p2p:compileJava UP-TO-DATE
Task :p2p:processResources FAILED

FAILURE: Build failed with an exception. Just did it again with ./gradlew :seednode:build and same result

  • Where:
    Build file '/home/nonyabiz/Desktop/bisq.git/trunk/build.gradle' line: 280

  • What went wrong:
    Execution failed for task ':p2p:processResources'.

p2p data store files have not been synchronized. To fix this, ensure you have Git LFS installed and run git lfs pull. See docs/build.md for more information.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
25 actionable tasks: 2 executed, 23 up-to-date
$ git lfs pull
Not in a git repository.

@freimair
Copy link
Member

yeah, since we switched over to git lfs for the massive binary files, the source tarball created by github does not work anymore (because it does not include the binaries). Came as a surprise to us as well.

Use git's shallow clone features instead:

git clone --depth 1 https://github.com/bisq-network/bisq.git

if you do a git lfs install once, then there is no need to use git lfs pull anymore.

@cd2357
Copy link
Contributor

cd2357 commented Sep 30, 2020

Closing the issue, as @freimair provided a solution above.

@cd2357 cd2357 closed this as completed Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants