<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question unable to start cloudera-scm-server-db.service on Linux in Azure in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281005#M209099</link>
    <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I created a CentOS 7.7 Linux machine (but also happens with RHEL 7.4) on Azure.&lt;/P&gt;&lt;P&gt;I installed the cloudera-manager RPM packages via yum&lt;/P&gt;&lt;P&gt;When i try to start the&amp;nbsp;cloudera-scm-server-db service I get "permission denied" on&amp;nbsp;/var/lib/cloudera-scm-server-db/data&lt;/P&gt;&lt;P&gt;I added -x flag to the&amp;nbsp;/usr/share/cmf/bin/initialize_embedded_db.sh, and added the "strace" command before the initdb command.&lt;/P&gt;&lt;P&gt;I see that the command is running as cloudera-scm user (in the /var/log/messages file)&lt;/P&gt;&lt;P&gt;and Is see in the strace output, that it fails on "chmod("/var/lib/cloudera-scm-server-db/data", 0700) = -1 EACCES (Permission denied)"&lt;/P&gt;&lt;P&gt;When I run the command from Linux CLI as user cloudera-scm it runs OK.&lt;/P&gt;&lt;P&gt;Does the Linux behave differently on Azure (i.e. more security features)&lt;/P&gt;&lt;P&gt;I don't think it relates to firewall&lt;/P&gt;&lt;P&gt;I see in the /var/log/messages the following messages:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:14 cdh-doxi-1 systemd: Created slice User Slice of cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:14 cdh-doxi-1 systemd: Started Session c1 of user cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:16 cdh-doxi-1 systemd: Removed slice User Slice of cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;could this slices are doing the damage?&lt;/P&gt;&lt;P&gt;I see it relates to cgroups (but I'm not sure what it actually means) - can I turn this off somewhere?&lt;/P&gt;&lt;P&gt;do i need to reinstall the Linux with different flags?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Doron&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 15:01:37 GMT</pubDate>
    <dc:creator>doronve</dc:creator>
    <dc:date>2019-10-22T15:01:37Z</dc:date>
    <item>
      <title>unable to start cloudera-scm-server-db.service on Linux in Azure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281005#M209099</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I created a CentOS 7.7 Linux machine (but also happens with RHEL 7.4) on Azure.&lt;/P&gt;&lt;P&gt;I installed the cloudera-manager RPM packages via yum&lt;/P&gt;&lt;P&gt;When i try to start the&amp;nbsp;cloudera-scm-server-db service I get "permission denied" on&amp;nbsp;/var/lib/cloudera-scm-server-db/data&lt;/P&gt;&lt;P&gt;I added -x flag to the&amp;nbsp;/usr/share/cmf/bin/initialize_embedded_db.sh, and added the "strace" command before the initdb command.&lt;/P&gt;&lt;P&gt;I see that the command is running as cloudera-scm user (in the /var/log/messages file)&lt;/P&gt;&lt;P&gt;and Is see in the strace output, that it fails on "chmod("/var/lib/cloudera-scm-server-db/data", 0700) = -1 EACCES (Permission denied)"&lt;/P&gt;&lt;P&gt;When I run the command from Linux CLI as user cloudera-scm it runs OK.&lt;/P&gt;&lt;P&gt;Does the Linux behave differently on Azure (i.e. more security features)&lt;/P&gt;&lt;P&gt;I don't think it relates to firewall&lt;/P&gt;&lt;P&gt;I see in the /var/log/messages the following messages:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:14 cdh-doxi-1 systemd: Created slice User Slice of cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:14 cdh-doxi-1 systemd: Started Session c1 of user cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Oct 22 12:53:16 cdh-doxi-1 systemd: Removed slice User Slice of cloudera-scm.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;could this slices are doing the damage?&lt;/P&gt;&lt;P&gt;I see it relates to cgroups (but I'm not sure what it actually means) - can I turn this off somewhere?&lt;/P&gt;&lt;P&gt;do i need to reinstall the Linux with different flags?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Doron&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:01:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281005#M209099</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2019-10-22T15:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start cloudera-scm-server-db.service on Linux in Azure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281022#M209106</link>
      <description>&lt;P&gt;Can you verify the proper ownership of the cloudera-scm-server-db folder by running below commands :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chown -R cloudera-scm:cloudera-scm /var/lib/cloudera-scm-server-db/
chmod 700 /var/lib/cloudera-scm-server-db/
chmod 700 /var/lib/cloudera-scm-server-db/data
service cloudera-scm-server-db start&lt;/LI-CODE&gt;&lt;P&gt;Also verify the selinux status by running&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sestatus&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 16:24:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281022#M209106</guid>
      <dc:creator>ssulav</dc:creator>
      <dc:date>2019-10-22T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start cloudera-scm-server-db.service on Linux in Azure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281025#M209109</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thanks for replying. the direcory ownership is cloudera-scm for sure - I am able to run the same commands from CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will check selinux.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 16:38:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281025#M209109</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2019-10-22T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start cloudera-scm-server-db.service on Linux in Azure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281043#M209120</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/57779"&gt;@ssulav&lt;/a&gt;&amp;nbsp; !!&lt;/P&gt;&lt;P&gt;it was indeed selinux!&lt;/P&gt;&lt;P&gt;on premise we've set the selinux to be disabled as default, so I've forgot all about it...&lt;/P&gt;&lt;P&gt;I've disabled it and Cloudera server db and server are running well.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;DV&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 19:00:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281043#M209120</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2019-10-22T19:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: unable to start cloudera-scm-server-db.service on Linux in Azure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281045#M209122</link>
      <description>&lt;P&gt;Good news.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If that resolves your issue, please spare some time in accepting the solution. Thanks.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 19:05:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-start-cloudera-scm-server-db-service-on-Linux-in/m-p/281045#M209122</guid>
      <dc:creator>ssulav</dc:creator>
      <dc:date>2019-10-22T19:05:22Z</dc:date>
    </item>
  </channel>
</rss>

