Skip to main content
SandeepSingh
Gold ⭐️
Oct 15, 2019 2:04 PM UTC
Solved

"No log messages at the specified URL" for Role Logs on Kerberized and TLS enabled cluster

Hi All,

 

When Kerberos and TLS is enabled on the CDH cluster, role logs are not reported in Cloudera Manager under the respective services. CM reports 'No log messages at the specified URL' for each of the following:

  1. Role Log File
  2. Stdout
  3. Stderr

Interestingly, the log files mentioned on the log pages (on CM) exist on the underlined host and contain all & correct log entries; They just don't get reported at CM service log pages. When tried downloading full log files, it throws error:

HTTP ERROR 403

Problem accessing /cmf/process/335/logs. Reason:

Unexpected end of file from server
The server declined access to the page or resource.

 

Powered by Jetty:// 9.4.14.v20181114

 

Same error is observed when attempted fetching logs using CM API.

 

Environment:

CDH 6.2
OS Redhat 7.7

 

GangWar
GangWarAnswer
Platinum ⭐️⭐️
Nov 28, 2019 5:28 PM UTC

@SandeepSingh This looks like the issue with TLS. 

Eventhough the flag 'Use TLS Authentication of Agents to Server' in CM WebUI is not set, the following flag must be set for status_server to use TLS protocol using port 9000. Go to the /opt/cloudera/security/x509/ directory and use 'pem' and 'key' file under that directory. You may also have to use the password file for the private key if there is one.

Then edit the /etc/cloudera-scm-agent/config.ini file with below parameters.

# PEM file containing client private key.
client_key_file=

# If client_keypw_cmd isn't specified, instead a text file containing the client private key password can be used.
client_keypw_file=

# PEM file containing client certificate.
client_cert_file=/etc/cdep-ssl-conf/CA_STANDARD/cm_server-cert.pem

verify_cert_file=

Restart of the status_server is required

cd /var/run/cloudera-scm-agent/supervisord
/opt/cloudera/cm-agent/bin/supervisorctl -c /var/run/cloudera-scm-agent/supervisor/supervisord.conf restart status_server

In addition, restart of the cloudera-scm-agent is also needed
service cloudera-scm-agent restart

Cheers! Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.

11 replies

Bhuv
Gold ⭐️
Gold ⭐️
Oct 16, 2019 10:49 AM UTC

Hi Sandeep,

Can you please check the owner and permissions of "/var/run/cloudera-scm-server" properties whether it is  root or cloudera-scm ??

Thanks and Regards,
Bhuvan.

Translate
SandeepSingh
Gold ⭐️
Oct 16, 2019 11:09 AM UTC

Hi @Bhuv

 

Here are the owner/permission details:

 

drwxr-xr-x.  2 cloudera-scm cloudera-scm   40 Sep 24 12:05 cloudera-scm-server

 

Regards,

Sandeep

Translate
GangWar
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Oct 17, 2019 6:14 PM UTC

@SandeepSingh  If the same error is also can be observed from the API then this is most probably the issue with TLS. However could you please try to narrow down the issue by following methods:

  • Run the following command on every Agent host with supervisorctl: 

 

/opt/cloudera/cm-agent/bin/supervisorctl -c /var/run/cloudera-scm-agent/supervisor/supervisord.conf restart status_server​

 

Please let us know how this goes. If the issue remains then please run the Host Inspector and share the result.

Translate
Cheers! Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
lwang
Platinum ⭐️
Platinum ⭐️
Oct 17, 2019 9:09 PM UTC

Hi @SandeepSingh ,

 

Could you please share your Cloudera Manager version? I see you mentioned CDH version is 6.2. What about CM version? There was a bug in CM 6.1 where under certain condition the CM Server fails to contact agent when TLS is on. I am wondering if you are hitting that bug.

 

Thanks,

Li

Translate
Li Wang, Technical Solution Manager
SandeepSingh
Gold ⭐️
Oct 18, 2019 4:00 PM UTC
Hi @lwang

CM version in this case is 6.2, so I suspect if I am hitting the bug you've mentioned; Unless this wasn't fixed in 6.2 too. Do you have an info?

Regards
Sandeep
Translate
GangWar
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Oct 18, 2019 4:14 PM UTC

@SandeepSingh  Have you tried to run below command in problematic host as stated earlier?

/opt/cloudera/cm-agent/bin/supervisorctl -c /var/run/cloudera-scm-agent/supervisor/supervisord.conf restart status_server​

This bug has been fixed in the 6.2. I may be possible the status server did not being restarted after making the changes. Please run the command and also follow the other steps stated in previous post and let us know how this goes. 

Translate
Cheers! Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.