You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Erik Edwards <er...@emedwards.info> on 2021/08/23 16:10:28 UTC

Fedora, Systemd, OpenMeetings: fails to start after OS update (Info post for archives)

After an update to Fedora (which updated the openjdk environment) 
OpenMeetings would no longer start via the systemd service script, but 
it would start via the command line.

Looking in <OpenMeetingsLogDir>/catalina.out showed the java machine was 
not found.

Traced this to the line in the .service file:

Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

Changed it to:

Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.fc34.x86_64

Then OpenMeetings was again able to start from systemd.



Re: Fedora, Systemd, OpenMeetings: fails to start after OS update (Info post for archives)

Posted by Alvaro <zu...@gmail.com>.
...you are right :)


--------

On Mon, 23 Aug 2021 12:15:54 -0500
Erik Edwards <er...@emedwards.info> wrote:

> Yes, this is exactly how and why it works from the command line but not 
> from the .service file.
> 
> The .service file overrides the OS's environment settings for java.
> 
> On 8/23/21 11:30 AM, Alvaro wrote:
> > Hi Erik,
> >
> > The tutorial say:
> >
> > "Maybe you have installed different versions of Java. Please, select the just installed OpenJava 11:
> > sudo update-alternatives --config java
> >
> >
> > ------------
> >
> >
> > On Mon, 23 Aug 2021 11:10:28 -0500
> > Erik Edwards <er...@emedwards.info> wrote:
> >
> >> After an update to Fedora (which updated the openjdk environment)
> >> OpenMeetings would no longer start via the systemd service script, but
> >> it would start via the command line.
> >>
> >> Looking in <OpenMeetingsLogDir>/catalina.out showed the java machine was
> >> not found.
> >>
> >> Traced this to the line in the .service file:
> >>
> >> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
> >>
> >> Changed it to:
> >>
> >> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.fc34.x86_64
> >>
> >> Then OpenMeetings was again able to start from systemd.
> >>
> >>
> >
> 


-- 


Re: Fedora, Systemd, OpenMeetings: fails to start after OS update (Info post for archives)

Posted by Erik Edwards <er...@emedwards.info>.
Yes, this is exactly how and why it works from the command line but not 
from the .service file.

The .service file overrides the OS's environment settings for java.

On 8/23/21 11:30 AM, Alvaro wrote:
> Hi Erik,
>
> The tutorial say:
>
> "Maybe you have installed different versions of Java. Please, select the just installed OpenJava 11:
> sudo update-alternatives --config java
>
>
> ------------
>
>
> On Mon, 23 Aug 2021 11:10:28 -0500
> Erik Edwards <er...@emedwards.info> wrote:
>
>> After an update to Fedora (which updated the openjdk environment)
>> OpenMeetings would no longer start via the systemd service script, but
>> it would start via the command line.
>>
>> Looking in <OpenMeetingsLogDir>/catalina.out showed the java machine was
>> not found.
>>
>> Traced this to the line in the .service file:
>>
>> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
>>
>> Changed it to:
>>
>> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.fc34.x86_64
>>
>> Then OpenMeetings was again able to start from systemd.
>>
>>
>


Re: Fedora, Systemd, OpenMeetings: fails to start after OS update (Info post for archives)

Posted by Alvaro <zu...@gmail.com>.
Hi Erik,

The tutorial say:

"Maybe you have installed different versions of Java. Please, select the just installed OpenJava 11:
sudo update-alternatives --config java


------------


On Mon, 23 Aug 2021 11:10:28 -0500
Erik Edwards <er...@emedwards.info> wrote:

> After an update to Fedora (which updated the openjdk environment) 
> OpenMeetings would no longer start via the systemd service script, but 
> it would start via the command line.
> 
> Looking in <OpenMeetingsLogDir>/catalina.out showed the java machine was 
> not found.
> 
> Traced this to the line in the .service file:
> 
> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
> 
> Changed it to:
> 
> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-0.fc34.x86_64
> 
> Then OpenMeetings was again able to start from systemd.
> 
> 


--