"Can't create/write to file ..." / "Errcode: 28 - No space left on device" when using MySQL in JBoss EAP

Solution Verified - Updated -

Issue

  • During a Hibernate query, encountering an exception like the below from the MySQL driver

    ... java.sql.SQLException: Can't create/write to file '/tmp/XXXXXX' (Errcode: 28 - No space left on device)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
            ...
            at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
            at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:504)
            at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:56)
            ...
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • MySQL
  • Hibernate 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.