質問編集履歴
1
やってみたことも記入しました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
tomcat
|
1
|
+
tomcat が起動しなくなりました
|
test
CHANGED
@@ -1,37 +1,33 @@
|
|
1
|
+
Linux + Tomcat でGroupSessionを5年ほど動かしていますが、今回初めてTomcatの再起動が必要になり
|
1
|
-
#
|
2
|
+
#systemctl restart tomcat を実行したところ
|
2
3
|
|
3
|
-
tomcat
|
4
|
+
「Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.」と表示されました。
|
4
5
|
|
5
|
-
|
6
|
+
色々ためしているうちに、tomcatが停止したのか、Groupsessionが動かなくなり、
|
6
7
|
|
7
|
-
|
8
|
+
Service Unavailable
|
9
|
+
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
|
8
10
|
|
9
|
-
|
11
|
+
が表示されました。
|
10
12
|
|
13
|
+
tomcatが起動しなおそうと、/usr/local/java/apache-tomcat-8.0.53/bin/startup.sh を実行したら、
|
14
|
+
Using CATALINA_BASE: /usr/local/java/apache-tomcat-8.0.53
|
15
|
+
Using CATALINA_HOME: /usr/local/java/apache-tomcat-8.0.53
|
16
|
+
Using CATALINA_TMPDIR: /usr/local/java/apache-tomcat-8.0.53/temp
|
17
|
+
Using JRE_HOME: /usr/local/java/jdk1.8.0_181
|
18
|
+
Using CLASSPATH: /usr/local/java/apache-tomcat-8.0.53/bin/bootstrap.jar:/usr/local/java/apache-tomcat-8.0.53/bin/tomcat-juli.jar
|
19
|
+
Tomcat started.
|
20
|
+
と表示されたので、
|
11
|
-
#
|
21
|
+
#systemctl status tomcat を実行したところ
|
12
22
|
|
23
|
+
systemd[1]: Starting Apache Tomcat 8.0.53...
|
24
|
+
startup.sh[2188]: touch: cannot touch '/usr/local/java/apache-tomcat-8.0.53/lo■denied
|
25
|
+
systemd[1]: tomcat.service: main process exited, code=exited, status=1/FAILURE
|
26
|
+
systemd[1]: Failed to start Apache Tomcat 8.0.53.
|
27
|
+
systemd[1]: Unit tomcat.service entered failed state.
|
13
|
-
|
28
|
+
systemd[1]: tomcat.service failed.
|
14
29
|
|
15
|
-
エラーメッセージ
|
16
|
-
|
17
|
-
Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
|
18
|
-
|
19
|
-
/var/log の中のmessage を見てみると
|
20
|
-
【message】
|
21
|
-
|
22
|
-
Jun 29 12:54:44 d3k9wdcc73 systemd: Starting Apache Tomcat 8.0.53...
|
23
|
-
Jun 29 12:54:44 d3k9wdcc73 startup.sh: touch: cannot touch ‘/usr/local/java/apache-tomcat-8.0.53/logs/catalina.out’: Permission denied
|
24
|
-
Jun 29 12:54:44 d3k9wdcc73 startup.sh: /usr/local/java/apache-tomcat-8.0.53/bin/catalina.sh: line 457: /usr/local/java/apache-tomcat-8.0.53/logs/catalina.out: Permission denied
|
25
|
-
Jun 29 12:54:44 d3k9wdcc73 systemd: tomcat.service: main process exited, code=exited, status=1/FAILURE
|
26
|
-
Jun 29 12:54:44 d3k9wdcc73 systemd: Failed to start Apache Tomcat 8.0.53.
|
27
|
-
Jun 29 12:54:44 d3k9wdcc73 systemd: Unit tomcat.service entered failed state.
|
28
|
-
Jun 29 12:54:44 d3k9wdcc73 systemd: tomcat.service failed.
|
29
|
-
|
30
|
-
|
31
|
-
### 該当のソースコード
|
32
|
-
|
33
|
-
【tomcat.service】
|
30
|
+
【tomcat.service】
|
34
|
-
|
35
31
|
[Unit]
|
36
32
|
Description=Apache Tomcat 8.0.53
|
37
33
|
After=network.target
|
@@ -40,6 +36,7 @@
|
|
40
36
|
User=tomcat
|
41
37
|
Group=tomcat
|
42
38
|
Type=oneshot
|
39
|
+
RemainAfterExit=yes
|
43
40
|
|
44
41
|
Environment=JAVA_HOME=/usr/local/java/
|
45
42
|
Environment=CATALINA_PID=/usr/local/java/apache-tomcat-8.0.53/temp/tomcat.pid
|
@@ -48,10 +45,20 @@
|
|
48
45
|
Environment='CATALINA_OPTS=-server -Xms4000M -Xmx8000M -XX:MaxPermSize=2000M'
|
49
46
|
ExecStart=/usr/local/java/apache-tomcat-8.0.53/bin/startup.sh
|
50
47
|
ExecStop=/usr/local/java/apache-tomcat-8.0.53/bin/shutdown.sh
|
51
|
-
#ExecReStart=/usr/local/java/apache-tomcat-8.0.53/bin/shutdown.sh;/usr/local/java/apache-tomcat-8.0.53/bin/startup.sh
|
52
|
-
RemainAfterExit=yes
|
53
48
|
|
54
49
|
[Install]
|
55
50
|
WantedBy=multi-user.target
|
56
51
|
|
52
|
+
startup.sh でTomcat started.となっても起動していないことはあるのですか?
|
57
53
|
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|