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 fails with "socket file path is too long" when run from deep directory #52

Closed
seanf opened this issue Dec 3, 2014 · 8 comments
Closed

Comments

@seanf
Copy link
Contributor

seanf commented Dec 3, 2014

Building on Fedora 20, I get a number of error messages like this (with long periods with no output which make me think the build is tuck):

[info] >> /home/sflaniga/NotBackedUp/src/jcabi-mysql-maven-plugin/target/mysql-dist/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
[error] #start('Config(tcpport=34756, dbuser=root, dbpassword=root, name=root, dbopts=[])', /home/sflaniga/NotBackedUp/src/jcabi-mysql-maven-plugin/target/mysql-dist, /tmp/1417590291404-0, false): thrown java.io.IOException(socket /tmp/1417590291404-0/mysql.sock is not available after 5min of waiting) out of com.jcabi.mysql.maven.plugin.Instances#waitFor[314] in 5min

I'll attach the complete log when the build finishes (or I give up waiting for it).

@yegor256
Copy link
Member

yegor256 commented Dec 3, 2014

You should run this beforehand:

sudo apt-get install libaio1

@seanf
Copy link
Contributor Author

seanf commented Dec 3, 2014

Thanks, seems to be yum install libaio.i686 on Fedora (I already had
/usr/lib64/libaio.so.1). I'm running the build again now...

On 3 December 2014 at 17:41, Yegor Bugayenko notifications@github.com
wrote:

You should run this beforehand:

sudo apt-get install libaio1


Reply to this email directly or view it on GitHub
#52 (comment)
.

@seanf
Copy link
Contributor Author

seanf commented Dec 3, 2014

Where can I dump a 500KB build log?

@yegor256
Copy link
Member

yegor256 commented Dec 3, 2014

Send me by email: yegor@teamed.io

@seanf
Copy link
Contributor Author

seanf commented Dec 3, 2014

Okay, I'll have to do that when I'm back at the office tomorrow. I think the final report said that 'parallel' failed a test, so maybe it was just the checkstyle problem ("SECOND") you fixed in master (apart from the earlier libaio problem).

@seanf seanf changed the title Build error: mysql.sock is not available after 5min of waiting Errors building master from source Dec 3, 2014
@seanf
Copy link
Contributor Author

seanf commented Dec 4, 2014

Looks like this was the important error in the log:

[INFO] [INFO] >> 141203 19:53:17 [ERROR] The socket file path is too long (> 107): /home/sflaniga/NotBackedUp/src/jcabi-mysql-maven-plugin/target/it/parallel/target/mysql-data-first/mysql.sock

The build works when run from a shallower directory, but I think the build should avoid assuming that the current directory is a good place for a socket. See #51 and related issues.

@seanf seanf changed the title Errors building master from source Build fails with "socket file path is too long" when run from deep directory Dec 4, 2014
@yegor256
Copy link
Member

@seanf I think version 0.9 (released in #50) fixed the problem. Please confirm

@seanf
Copy link
Contributor Author

seanf commented Jan 30, 2015

@yegor256 Yes, moving the socket under /tmp using <socket> is working for me, thanks.

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

No branches or pull requests

2 participants