cancel
Showing results for 
Search instead for 
Did you mean: 
rhbofa
Cadet
Cadet
  • 1,455 Views

Pod creation fails with crashloopbackoff due to log access denied

Hi,

Pod creation fails with crashloopbackoff due to below issue:

nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2020/11/24 19:04:12 [emerg] 1#0: open() "/var/log/nginx/access.log" failed (13: Permission denied)

 

Can anyone help? Would appreiate.

Thanks.

 

 

 

Labels (1)
0 Kudos
1 Reply
jordisola
Flight Engineer
Flight Engineer
  • 1,441 Views

Hi @rhbofa 

Can you provide a bit more information? What course, chapter, and section are you seeing this issue?

You said "Pod", so I'd assume you are deploying into an OpenShift cluster.

The "permission denied" message makes me think that either a) the container is not mounting a volume, or it is mounted without the adequate permissions, or b) the container is running as a user with no write access to the log file. 

Hope that helps. 

KR

Jordi Sola

 

0 Kudos
Join the discussion
You must log in to join this conversation.