Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tomcat is throwing "deploy upload fail - no space left" while deployment of war file

I am trying to deploy a war file on tomcat server via tomcat manager. but each time I am getting this error:

FAIL - Deploy Upload Failed, Exception: Processing of multipart/form-data request failed. No space left on device

There is plenty of space on the server. I have only tomcat server and MySQL server running on the server, nothing else.

Can anyone tell me what is wrong and what is the workaround?

like image 327
Zunair Minhas Avatar asked May 10 '13 17:05

Zunair Minhas


People also ask

Why my WAR file is not deployed in Tomcat?

Try stopping Tomcat, deleting the war and matching folder, copying the new war in, then starting Tomcat. If it works then, the problem might be left over files. (I have an app for example that doesn't completely clean itself up). (3) The app might not be initializing properly due to issues with the app.

What happens when we deploy a WAR file in Tomcat?

Java web applications are usually packaged as WAR files for deployment. These files can be created on the command line or with an IDE, like Eclipse. After deploying the WAR file, Tomcat unpacks it and stores all the project files from the webapps directory in a new directory named after the project.

How can I deploy WAR file in Tomcat?

Perhaps the simplest way to deploy a WAR file to Tomcat is to copy the file to Tomcat's webapps directory. Copy and paste WAR files into Tomcat's webapps directory to deploy them. Tomcat monitors this webapps directory for changes, and if it finds a new file there, it will attempt to deploy it.


1 Answers

It might be you have a permission problem here.

You can try

chmod 777 /opt/apache-tomcat-X.X.XX/work/Catalina/localhost/manager

and maybe additional

chmod 777 /opt/apache-tomcat-X.X.XX/webapps/sample

where sample is your app directory ofc.

like image 68
Magelan Avatar answered Jan 02 '23 10:01

Magelan