cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot install amp file using ModuleManagementTool on Linux

mruflin
Champ in-the-making
Champ in-the-making
Hi

I'm not able to install a module on a Linux environment. The tool simply abords with the the error message

Error whilst saving modifications file.
I adapted the tool to print out the exact error that got thrown:


java.io.FileNotFoundException: tomcat/webapps/alfresco.war/WEB-INF/classes/alfresco/module/emailListener/modifications.install
        at de.schlichtherle.io.FileOutputStream.createOutputStream(Unknown Source)
        at de.schlichtherle.io.FileOutputStream.createOutputStream(Unknown Source)
        at de.schlichtherle.io.FileOutputStream.<init>(Unknown Source)
        at org.alfresco.repo.module.tool.InstalledFiles.save(InstalledFiles.java:116)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:382)
        at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:777)
Caused by: de.schlichtherle.io.ZipControllerException: /opt/alfresco-enterprise-tomcat-2.1.2/tomcat/webapps/alfresco.war: Could not update ZIP compatible file - all changes are lost!
        at de.schlichtherle.io.ZipController.updateOutFile(Unknown Source)
        at de.schlichtherle.io.ZipController.update(Unknown Source)
        at de.schlichtherle.io.ZipController.update(Unknown Source)
        at de.schlichtherle.io.ZipController.getOutputStream(Unknown Source)
        at de.schlichtherle.io.ZipController.getOutputStream(Unknown Source)
        … 6 more
Caused by: java.io.IOException: No space left on device
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:260)
        at de.schlichtherle.io.util.LEDataOutputStream.writeInt(Unknown Source)
        at de.schlichtherle.util.zip.ZipOutputStream.writeDataDescriptor(Unknown Source)
        at de.schlichtherle.util.zip.ZipOutputStream.closeEntry(Unknown Source)
        at de.schlichtherle.util.zip.ZipOutputStream.finish(Unknown Source)
        at de.schlichtherle.util.zip.ZipOutputStream.close(Unknown Source)
        … 11 more

Has anybody seen this before? What could be the reason for this behavior?
5 REPLIES 5

jpfi
Champ in-the-making
Champ in-the-making
Hi,

did you see
Caused by: java.io.IOException: No space left on device
?
It seems that your device hdd is full or you've reached a quota…

Cheers, Jan

mruflin
Champ in-the-making
Champ in-the-making
Disc space can't be the issue - more than 43 gig available 🙂

My guess is that the (outdated) version of truezip has a bug: The exception happens when creating an OutputStream onto the file that has been created just before:


if (file.exists() == false)
{
    file.createNewFile();    // return true
}
FileOutputStream os = new FileOutputStream(file); // throws an IOException

What is even stranger is that I'm the only one with that problem…

mruflin
Champ in-the-making
Champ in-the-making
Shame on me - the problem was really related to disc space!

/tmp was too small…

antoshik86
Champ in-the-making
Champ in-the-making
download new distribution

kevintani1506
Champ in-the-making
Champ in-the-making
thanks a lot…. thanks for your information… very much useful for me…. keep on posting…:-)






PHP Development India