Re: Systemd not able to spawn Exec permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

         Actual SDC_HOME is under /opt/apps/current which is symlink of /opt/apps/streamsets-datacollector-3.5.0. So you can consider other paths accordingly.

 

Thanks,

 

Krunal.

 


From: systemd-devel <systemd-devel-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Krunal Patel <krpatel19@xxxxxxxxxxx>
Sent: Monday, October 8, 2018 10:47:07 AM
To: Reindl Harald; systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: Systemd not able to spawn Exec permission denied
 

Hi,

 

      We have total 6 servers . 1 server is started with switched-root system option. Where sdc.service through systemd running fine. But other 5 servers, systemd is running with –switched-root option where we are not able to start. I am not sure  if systemd is corrupted or some other issue.

 

System unit are as below:

 

sdc.service

 

# Copyright 2017 StreamSets Inc.

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

#     http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

 

[Unit]

Description=StreamSets Data Collector (SDC)

 

[Service]

User=sdc

Group=sdc

LimitNOFILE=32768

Environment=SDC_CONF=/etc/sdc

Environment=SDC_HOME=/opt/streamsets-datacollector

Environment=SDC_LOG=/var/log/sdc

Environment=SDC_DATA=/var/lib/sdc

ExecStart=/opt/streamsets-datacollector/bin/streamsets dc -verbose

TimeoutSec=60

 

[Install]

WantedBy=multi-user.target

 

 

sdc.socket

 

# Copyright 2017 StreamSets Inc.

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

#     http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

 

[Unit]

After=network-online.target

Requires=network-online.target

 

[Socket]

ListenStream=18630

ListenStream=0.0.0.0:18630

 

[Install]

WantedBy=sockets.target

 

 

 

Thanks,

 

Krunal.

 


From: systemd-devel <systemd-devel-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Reindl Harald <h.reindl@xxxxxxxxxxxxx>
Sent: Sunday, October 7, 2018 7:07:08 PM
To: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: Systemd not able to spawn Exec permission denied
 


Am 07.10.18 um 10:12 schrieb Krunal Patel:
> My systemdctl script not able to start service as non root user
> sdc. It gives error with not able to spawn /path/to/streamsets :
> Permission Denied.   /path/to/streamsets has root ownership and group
> streamsets has execute permission as root user. Can you suggest if my
> systemd is currupted? Other server systemd able to start service as sdc
> user from root systemd. There systemd is running as switched-root , but
> in server where i get error has no switched-root option in systemd
> process. Is it related? Please suggest. SDC user has nologin shell

please post complete systemd units to help others helping you
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux