You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Emefile Francis Nwajie <em...@gmail.com> on 2019/10/20 08:07:53 UTC

Cannot add dependency job for unit systemd-console-setup.service

Hello All,

Top of the day to you.

I have a VPS with CentOs 7.
I am trying to start-up Tomcat 9.0.27 using "systemctl start tomcat". And I
got the error message - "Cannot add dependency job for unit
systemd-console-setup.service".

I am wondering if there is something I have to setup in my CentOS 7 VPS or
if it is an issue with Apache Tomcat 9.

Thanks for your help.

Re: Cannot add dependency job for unit systemd-console-setup.service

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Emefile,

On 10/20/19 10:00, Zero wrote:
> On 10/20/19 3:28 PM, Emefile Francis Nwajie wrote:
>> Thank you Andre for helping out.
>>
>> I figured that the "systemd-console-setup.service" was disabled in the
>> server. I have enable it. However, tomcat still refuses to start. 
>> Below is
>> the content of tomcat.service:
>>
>> [Unit]
>> Description=Apache Tomcat 9
>> After=syslog.target network.target
>>
>> [Service]
>> User=tomcat
>> Group=tomcat
>> Type=forking
>> Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
>> Environment=CATALINA_HOME=/opt/tomcat
>> Environment=CATALINA_BASE=/opt/tomcat
>> ExecStart=/opt/tomcat/bin/startup.sh
>> ExecStop=/opt/tomcat/bin/shutdown.sh
>> Restart=on-failure
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>> Now it doesn't give any error other than "Unit tomcat.service entered
>> failed state."
> 
> 
> Tomcat logs its state in logfiles located in /var/log or /opt/tomcat/log.
> 
> Maybe check those loggings to get an idea of why it fails to startup.

Also:

$ journalctl -u tomcat.service

Because why should you be able to read a log file directly when you can 
run a program to read it for you?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot add dependency job for unit systemd-console-setup.service

Posted by Zero <hz...@gmail.com>.
On 10/20/19 3:28 PM, Emefile Francis Nwajie wrote:
> Thank you Andre for helping out.
>
> I figured that the "systemd-console-setup.service" was disabled in the
> server. I have enable it. However, tomcat still refuses to start. Below is
> the content of tomcat.service:
>
> [Unit]
> Description=Apache Tomcat 9
> After=syslog.target network.target
>
> [Service]
> User=tomcat
> Group=tomcat
> Type=forking
> Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
> Environment=CATALINA_HOME=/opt/tomcat
> Environment=CATALINA_BASE=/opt/tomcat
> ExecStart=/opt/tomcat/bin/startup.sh
> ExecStop=/opt/tomcat/bin/shutdown.sh
> Restart=on-failure
>
> [Install]
> WantedBy=multi-user.target
>
> Now it doesn't give any error other than "Unit tomcat.service entered
> failed state."


Tomcat logs its state in logfiles located in /var/log or /opt/tomcat/log.

Maybe check those loggings to get an idea of why it fails to startup.

~Harm-Jan



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot add dependency job for unit systemd-console-setup.service

Posted by Emefile Francis Nwajie <em...@gmail.com>.
Thank you Andre for helping out.

I figured that the "systemd-console-setup.service" was disabled in the
server. I have enable it. However, tomcat still refuses to start. Below is
the content of tomcat.service:

[Unit]
Description=Apache Tomcat 9
After=syslog.target network.target

[Service]
User=tomcat
Group=tomcat
Type=forking
Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
Restart=on-failure

[Install]
WantedBy=multi-user.target

Now it doesn't give any error other than "Unit tomcat.service entered
failed state."


On Sun, Oct 20, 2019 at 1:04 PM André Warnier (tomcat) <aw...@ice-sa.com>
wrote:

> On 20.10.2019 10:07, Emefile Francis Nwajie wrote:
> > Hello All,
> >
> > Top of the day to you.
> >
> > I have a VPS with CentOs 7.
> > I am trying to start-up Tomcat 9.0.27 using "systemctl start tomcat".
> And I
> > got the error message - "Cannot add dependency job for unit
> > systemd-console-setup.service".
> >
> > I am wondering if there is something I have to setup in my CentOS 7 VPS
> or
> > if it is an issue with Apache Tomcat 9.
> >
>
> Searching Google for "Cannot add dependency job for unit
> systemd-console-setup.service"
> gives plenty of results (including you own message to this list), most of
> which seem to
> refer to some systemd issue in various Linux distributions.
> So, on the face of it, it does not look like a tomcat issue.
> Maybe an issue of the particular packaged distribution of tomcat that you
> are using with
> CentOS 7 ?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Cannot add dependency job for unit systemd-console-setup.service

Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 20.10.2019 10:07, Emefile Francis Nwajie wrote:
> Hello All,
>
> Top of the day to you.
>
> I have a VPS with CentOs 7.
> I am trying to start-up Tomcat 9.0.27 using "systemctl start tomcat". And I
> got the error message - "Cannot add dependency job for unit
> systemd-console-setup.service".
>
> I am wondering if there is something I have to setup in my CentOS 7 VPS or
> if it is an issue with Apache Tomcat 9.
>

Searching Google for "Cannot add dependency job for unit systemd-console-setup.service" 
gives plenty of results (including you own message to this list), most of which seem to 
refer to some systemd issue in various Linux distributions.
So, on the face of it, it does not look like a tomcat issue.
Maybe an issue of the particular packaged distribution of tomcat that you are using with 
CentOS 7 ?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org