[
https://issues.apache.org/jira/browse/CLOUDSTACK-8812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14958752#comment-14958752
]
Sven Vogel commented on CLOUDSTACK-8812:
----------------------------------------
PermissionsStartOnly=true
That is important
Mit freundlichen Grüßen
Sven Vogel
---------------------------------------------
Sven Vogel
Systems Engineer / Consultant
Kupper Computer GmbH
Prager Straße 15
04103 Leipzig
Registergericht Leipzig: HRB 19970
Geschäftsführer: Dipl.-Ing. Andreas Kupper
Tel: +49 (0)341 305 36 0
Fax: +49 (0)341 305 36 63
Web: http://www.kupper-computer.com
http://www.kupper-websolutions.de
Mail: mailto:[email protected]
Originalnachricht
Von: ASF GitHub Bot (JIRA)
Gesendet: Donnerstag, 15. Oktober 2015 13:14
An: Vogel, Sven
Betreff: [jira] [Commented] (CLOUDSTACK-8812) CentOS 7 - systemd-tmpfiles -
Operation not permitted
[
https://issues.apache.org/jira/browse/CLOUDSTACK-8812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14958741#comment-14958741
]
ASF GitHub Bot commented on CLOUDSTACK-8812:
--------------------------------------------
Github user karuturi commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/888#discussion_r42110792
--- Diff: packaging/centos7/cloud-management.service ---
@@ -15,22 +15,19 @@
# specific language governing permissions and limitations
# under the License.
-# Systemd unit file for CloudStack Management server
-#
-# clone tomcat service, see /usr/lib/systemd/system/tomcat.service
-
[Unit]
Description=CloudStack Management Server
After=syslog.target network.target
[Service]
Type=forking
-ExecStart=/usr/sbin/tomcat-sysd start
-ExecStop=/usr/sbin/tomcat-sysd stop
+PermissionsStartOnly=true
+ExecStartPre=/usr/bin/systemd-tmpfiles --create
+ExecStart=/usr/sbin/cloudstack-management start
--- End diff --
I see a similar change in
4.5:packaging/centos63/rhel7/cloud-management.service
```
[Service]
Type=forking
ExecStartPre=/usr/bin/systemd-tmpfiles --create
ExecStart=/usr/sbin/cloudstack-management start
ExecStop=/usr/sbin/cloudstack-management stop
SuccessExitStatus=143
User=cloud
Group=cloud
```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
> CentOS 7 - systemd-tmpfiles - Operation not permitted
> -----------------------------------------------------
>
> Key: CLOUDSTACK-8812
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8812
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Install and Setup
> Affects Versions: 4.5.2, 4.6.0
> Environment: KVM VM / CentOS Linux release 7.1.1503 (Core)
> Reporter: Sven Vogel
> Priority: Blocker
>
> installation of the shapeblue upstream 4.5.2 repository. setup of the
> database works. when i start the service with systemctl start
> cloudstack-management.service i get the following error.
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd[1]: Starting CloudStack
> Management Server...
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/netreport) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/dev/net) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/dev/mapper) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/dev/vfio) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/dev/snd) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/lock) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/lock/subsys) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/lock/lockdev) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/setrans) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/lock/lvm) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/lvm) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/console) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/faillock) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/sepermit) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/run/ppp) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/lock/ppp) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/user) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]: Failed to
> create file /var/log/wtmp: Permission denied
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]: Failed to
> create file /var/log/btmp: Permission denied
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/ask-password) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/seats) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/sessions) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/users) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/machines) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/systemd/shutdown) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/log/journal) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/log/journal/9b4671a20660436c8068d4f91eea0c1d) failed: Operation
> not p
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/var/tmp) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]: Failed to
> create file /var/run/tomcat.pid: Permission denied
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/run/tuned) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp/.X11-unix) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp/.ICE-unix) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp/.XIM-unix) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp/.font-unix) failed: Operation not permitted
> Sep 04 17:14:34 cloudstack01.oscloud.local systemd-tmpfiles[5519]:
> chmod(/tmp/.Test-unix) failed: Operation not permitted
> i dont know whats wrong....
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)