Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Error when trying to run Tomcat7: cannot open terminal: unknow
I’m trying to run tomcat 7 on ubuntu 16.04 but when I run “sudo service tomcat7 start” I get
Job for tomcat7.service failed because the control process exited with error code. See “systemctl status tomcat7.service” and “journalctl -xe” for details.
and if I run “systemctl status tomcat7.service” I get
jhon@mitutorweb:/etc/init.d$ systemctl status tomcat7.service
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2017-04-26 04:38:57 UTC; 4s ago
Process: 2012 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
Apr 26 04:38:57 mitutorweb systemd: Starting LSB: Start Tomcat....
Apr 26 04:38:57 mitutorweb sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/nano /etc/
Apr 26 04:38:57 mitutorweb sudo: pamunix(sudo:session): session opened for user root by (uid=0)
Apr 26 04:38:57 mitutorweb tomcat7: Error opening terminal: unknown.
Apr 26 04:38:57 mitutorweb sudo: pamunix(sudo:session): session closed for user root
Apr 26 04:38:57 mitutorweb systemd: tomcat7.service: Control process exited, code=exited status=1
Apr 26 04:38:57 mitutorweb systemd: Failed to start LSB: Start Tomcat..
Apr 26 04:38:57 mitutorweb systemd: tomcat7.service: Unit entered failed state.
Apr 26 04:38:57 mitutorweb systemd: tomcat7.service: Failed with result ‘exit-code’.
lines 1-15/15 (END)
I know it is related to the nano command but I don’t know how solve it.
I hope you can help me.
Thanks in advance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×