failed deploy webapp after project_build

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

failed deploy webapp after project_build

Pengcheng Yang
Hi miners,

After successful building using project_build. Error was encountered
during releasing the webapp.

1. The error message is:

==================== error message =================================

BUILD FAILED
/home/pengchy/soft/intermine/imbuild/application.xml:182:
java.io.IOException: Error writing to server
         at
sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:699)
         at
sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:711)
         at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1585)
         at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
         at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:223)
         at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201)
         at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:498)
         at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:437)
         at org.apache.tools.ant.Target.performTasks(Target.java:458)
         at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
         at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
         at org.apache.tools.ant.Main.runBuild(Main.java:857)
         at org.apache.tools.ant.Main.startAnt(Main.java:236)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:286)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Total time: 51 seconds

============================================

2. What I have done:

cd /home/pengchy/soft/intermine/testmine/
##after restart postgresql service, undeploy testmine and testmodel
webapp; restart tomcat
/home/pengchy/soft/intermine/bio/scripts/project_build  -l -v localhost
~/testmine_dump  1> ~/testdata/logs/pbuild.log1 2>
~/testdata/logs/pbuild.log2
cd /home/pengchy/soft/intermine/testmine/webapp
  /home/pengchy/soft/01.system/apache-ant-1.9.10/bin/ant -v default
remove-webapp release-webapp 1> ~/testdata/logs/release.log1 2>
~/testdata/logs/release.log2

3. I have successfully built and released the testmine previously by
running a single datasource. So, I wander is it correct to release the
webapp just after running project_build?

Best,

Pengcheng

_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: failed deploy webapp after project_build

Pengcheng Yang
Hi,

I have resolved this problem by the following two steps:

1.  modify
/home/pengchy/soft/apache-tomcat-7.0.85/webapps/manager/WEB-INF/web.xml
by change the max-file-size to 500Mb
         <multipart-config>
           <!-- 50MB max -->
           <max-file-size>524288000</max-file-size>
<max-request-size>524288000</max-request-size>
           <file-size-threshold>0</file-size-threshold>
         </multipart-config>
2. ##as root, set the tcp by adding the following line to file
/etc/sysctl.conf

     net.core.rmem_max = 16777216
     net.ipv4.tcp_rmem = 4096 137380 16777216
     net.ipv4.tcp_wmem = 4096      137380   16777216

Then "sysctl -p /etc/sysctl.conf"

reference:

[1]
https://stackoverflow.com/questions/39717972/error-writing-to-server-occuring-only-on-ubuntu

[2]
https://stackoverflow.com/questions/25183408/failed-to-execute-goal-tomcatdeploy-error-writing-to-server

Best,

pengcheng


On 2018-4-8 16:08, Pengcheng Yang wrote:

> Hi miners,
>
> After successful building using project_build. Error was encountered
> during releasing the webapp.
>
> 1. The error message is:
>
> ==================== error message =================================
>
> BUILD FAILED
> /home/pengchy/soft/intermine/imbuild/application.xml:182:
> java.io.IOException: Error writing to server
>         at
> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:699)
>         at
> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:711)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1585)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
>         at
> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:223)
>         at
> org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:437)
>         at org.apache.tools.ant.Target.performTasks(Target.java:458)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
>         at org.apache.tools.ant.Main.runBuild(Main.java:857)
>         at org.apache.tools.ant.Main.startAnt(Main.java:236)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:286)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
>
> Total time: 51 seconds
>
> ============================================
>
> 2. What I have done:
>
> cd /home/pengchy/soft/intermine/testmine/
> ##after restart postgresql service, undeploy testmine and testmodel
> webapp; restart tomcat
> /home/pengchy/soft/intermine/bio/scripts/project_build  -l -v
> localhost ~/testmine_dump  1> ~/testdata/logs/pbuild.log1 2>
> ~/testdata/logs/pbuild.log2
> cd /home/pengchy/soft/intermine/testmine/webapp
>  /home/pengchy/soft/01.system/apache-ant-1.9.10/bin/ant -v default
> remove-webapp release-webapp 1> ~/testdata/logs/release.log1 2>
> ~/testdata/logs/release.log2
>
> 3. I have successfully built and released the testmine previously by
> running a single datasource. So, I wander is it correct to release the
> webapp just after running project_build?
>
> Best,
>
> Pengcheng
>
> _______________________________________________
> dev mailing list
> [hidden email]
> https://lists.intermine.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: failed deploy webapp after project_build

Pengcheng Yang
Hi miners,

Although the problem has been resolved, but the response time of the
Mine is ~ seven times slower than before. It maybe a trade-off.

Best,
pengcheng



On 2018-4-9 8:42, Pengcheng Yang wrote:

> Hi,
>
> I have resolved this problem by the following two steps:
>
> 1.  modify
> /home/pengchy/soft/apache-tomcat-7.0.85/webapps/manager/WEB-INF/web.xml
> by change the max-file-size to 500Mb
>         <multipart-config>
>           <!-- 50MB max -->
>           <max-file-size>524288000</max-file-size>
> <max-request-size>524288000</max-request-size>
>           <file-size-threshold>0</file-size-threshold>
>         </multipart-config>
> 2. ##as root, set the tcp by adding the following line to file
> /etc/sysctl.conf
>
>     net.core.rmem_max = 16777216
>     net.ipv4.tcp_rmem = 4096 137380 16777216
>     net.ipv4.tcp_wmem = 4096      137380   16777216
>
> Then "sysctl -p /etc/sysctl.conf"
>
> reference:
>
> [1]
> https://stackoverflow.com/questions/39717972/error-writing-to-server-occuring-only-on-ubuntu
>
> [2]
> https://stackoverflow.com/questions/25183408/failed-to-execute-goal-tomcatdeploy-error-writing-to-server
>
> Best,
>
> pengcheng
>
>
> On 2018-4-8 16:08, Pengcheng Yang wrote:
>> Hi miners,
>>
>> After successful building using project_build. Error was encountered
>> during releasing the webapp.
>>
>> 1. The error message is:
>>
>> ==================== error message =================================
>>
>> BUILD FAILED
>> /home/pengchy/soft/intermine/imbuild/application.xml:182:
>> java.io.IOException: Error writing to server
>>         at
>> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:699)
>>         at
>> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:711)
>>         at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1585)
>>         at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
>>         at
>> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:223)
>>         at
>> org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201)
>>         at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
>>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>         at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>         at org.apache.tools.ant.Target.execute(Target.java:437)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:458)
>>         at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>>         at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>         at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1260)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:857)
>>         at org.apache.tools.ant.Main.startAnt(Main.java:236)
>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:286)
>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
>>
>> Total time: 51 seconds
>>
>> ============================================
>>
>> 2. What I have done:
>>
>> cd /home/pengchy/soft/intermine/testmine/
>> ##after restart postgresql service, undeploy testmine and testmodel
>> webapp; restart tomcat
>> /home/pengchy/soft/intermine/bio/scripts/project_build  -l -v
>> localhost ~/testmine_dump  1> ~/testdata/logs/pbuild.log1 2>
>> ~/testdata/logs/pbuild.log2
>> cd /home/pengchy/soft/intermine/testmine/webapp
>>  /home/pengchy/soft/01.system/apache-ant-1.9.10/bin/ant -v default
>> remove-webapp release-webapp 1> ~/testdata/logs/release.log1 2>
>> ~/testdata/logs/release.log2
>>
>> 3. I have successfully built and released the testmine previously by
>> running a single datasource. So, I wander is it correct to release
>> the webapp just after running project_build?
>>
>> Best,
>>
>> Pengcheng
>>
>> _______________________________________________
>> dev mailing list
>> [hidden email]
>> https://lists.intermine.org/mailman/listinfo/dev
>
> _______________________________________________
> dev mailing list
> [hidden email]
> https://lists.intermine.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev