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

Build for 2.1.0 failing #4840

Closed
smolinari opened this issue Aug 23, 2015 · 9 comments
Closed

Build for 2.1.0 failing #4840

smolinari opened this issue Aug 23, 2015 · 9 comments

Comments

@smolinari
Copy link
Contributor

Following the installation instructions in the manual. I have tried both maven and ant and both fail.

Here is what ant outputs.

BUILD FAILED
/tmp/orientdb/build.xml:133: The following error occurred while executing this line:
/tmp/orientdb/build.xml:21: The following error occurred while executing this line:
/tmp/orientdb/core/build.xml:38: Compile failed; see the compiler error output for details.

See attached log.jpg file for complete output of compilation. Download it and rename it to log.txt. Github doesn't support .txt files.

Scott

log

@smolinari
Copy link
Contributor Author

Oh, and I tried maven, because the ant install says it will be deprecated in 3.0 and to use maven.

Scott

@smolinari
Copy link
Contributor Author

I also noticed the Travis builds are also breaking. Not sure if my problem has to do with them, but it would be nice to know, if the problem is in my court or yours.

Here are some of the PRs with broken Travis builds.

#4841
#3976
#4552

Scott

@nagarajasr
Copy link
Contributor

which branch/tag are you trying to build? i was able to make a successful build without any issues on 2.1.0 GA. seems to me an environmental issue than anything else.

@smolinari
Copy link
Contributor Author

I tried with 2.1.0.

How can I check my environment? I have Debian Wheezy and this Java.

java version "1.6.0_36"
OpenJDK Runtime Environment (IcedTea6 1.13.8) (6b36-1.13.8-1~deb7u1)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

Scott

@lvca
Copy link
Member

lvca commented Aug 25, 2015

@smolinari Could you use Oracle JDK 8?

@lvca lvca self-assigned this Aug 25, 2015
@smolinari
Copy link
Contributor Author

Ok. Got Oracle Java 8 running and the build finished successfully and It looks like I can now start up OrientDB properly and all is working. (Might need a requirement note in the docs about minimum Java needed).

One thing. I can't access Studio. Is it correct that the ports ODB is on only bind to IPv6 (TCP6)?

Scott

@lvca
Copy link
Member

lvca commented Aug 26, 2015

Added in readme.txt.

@lvca lvca closed this as completed Aug 26, 2015
@lvca
Copy link
Member

lvca commented Aug 26, 2015

The port should be IPv4

@smolinari
Copy link
Contributor Author

Ok. As it looks, the Oracle Java 8 repo I installed only binds to IPv6 ports. I did some googling and found out I would need to set a Java environment variable.

_JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"

So I entered that into my /etc/environment file and restarted the server. Although I could see Orient was now on IPv4 tcp ports 2480 and 2424, I still couldn't access Studio. I then realized, I probably need to open the ports in the firewall, so I made those changes and now all is working as should be.

Thanks for the help. This issue can be closed.

Scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants