G
G
grabbee2021-11-13 18:52:53
symfony
grabbee, 2021-11-13 18:52:53

Why are there no Symfony logs in k8s?

You need to find the error, but there are no Symfony logs. Only PHP access
Tried to set handlers.nested.level: debug - still empty

[13-Nov-2021 18:26:03] NOTICE: fpm is running, pid 1
[13-Nov-2021 18:26:03] NOTICE: ready to handle connections
::1 - 13/Nov/2021:18:27:05 +0300 "OPTIONS /index.php" 200
127.0.0.1 - 13/Nov/2021:18:27:06 +0300 "POST /index.php" 200

monolog:
    handlers:
        main:
            type: fingers_crossed
            action_level: error
            handler: nested 
        nested:
            type: stream
            path: "php://stderr"
            level: warning
        console:
            type: console
            process_psr_3_messages: false
            channels: ["!event", "!doctrine"]

FROM php:7.4-fpm
#...
EXPOSE 9000
CMD ["php-fpm", "--force-stderr", "--nodaemonize"]

NOTICE: php-fpm -tt

# php-fpm -tt
[13-Nov-2021 18:42:30] NOTICE: [global]
[13-Nov-2021 18:42:30] NOTICE:  pid = undefined
[13-Nov-2021 18:42:30] NOTICE:  error_log = /proc/self/fd/2
[13-Nov-2021 18:42:30] NOTICE:  syslog.ident = php-fpm
[13-Nov-2021 18:42:30] NOTICE:  syslog.facility = 24
[13-Nov-2021 18:42:30] NOTICE:  log_buffering = yes
[13-Nov-2021 18:42:30] NOTICE:  log_level = unknown value
[13-Nov-2021 18:42:30] NOTICE:  log_limit = 8192
[13-Nov-2021 18:42:30] NOTICE:  emergency_restart_interval = 0s
[13-Nov-2021 18:42:30] NOTICE:  emergency_restart_threshold = 0
[13-Nov-2021 18:42:30] NOTICE:  process_control_timeout = 0s
[13-Nov-2021 18:42:30] NOTICE:  process.max = 0
[13-Nov-2021 18:42:30] NOTICE:  process.priority = undefined
[13-Nov-2021 18:42:30] NOTICE:  daemonize = no
[13-Nov-2021 18:42:30] NOTICE:  rlimit_files = 0
[13-Nov-2021 18:42:30] NOTICE:  rlimit_core = 0
[13-Nov-2021 18:42:30] NOTICE:  events.mechanism = epoll
[13-Nov-2021 18:42:30] NOTICE:  
[13-Nov-2021 18:42:30] NOTICE: [www]
[13-Nov-2021 18:42:30] NOTICE:  prefix = undefined
[13-Nov-2021 18:42:30] NOTICE:  user = www-data
[13-Nov-2021 18:42:30] NOTICE:  group = www-data
[13-Nov-2021 18:42:30] NOTICE:  listen = 9000
[13-Nov-2021 18:42:30] NOTICE:  listen.backlog = 511
[13-Nov-2021 18:42:30] NOTICE:  listen.owner = undefined
[13-Nov-2021 18:42:30] NOTICE:  listen.group = undefined
[13-Nov-2021 18:42:30] NOTICE:  listen.mode = undefined
[13-Nov-2021 18:42:30] NOTICE:  listen.allowed_clients = undefined
[13-Nov-2021 18:42:30] NOTICE:  process.priority = undefined
[13-Nov-2021 18:42:30] NOTICE:  process.dumpable = no
[13-Nov-2021 18:42:30] NOTICE:  pm = dynamic
[13-Nov-2021 18:42:30] NOTICE:  pm.max_children = 5
[13-Nov-2021 18:42:30] NOTICE:  pm.start_servers = 2
[13-Nov-2021 18:42:30] NOTICE:  pm.min_spare_servers = 1
[13-Nov-2021 18:42:30] NOTICE:  pm.max_spare_servers = 3
[13-Nov-2021 18:42:30] NOTICE:  pm.process_idle_timeout = 10
[13-Nov-2021 18:42:30] NOTICE:  pm.max_requests = 0
[13-Nov-2021 18:42:30] NOTICE:  pm.status_path = undefined
[13-Nov-2021 18:42:30] NOTICE:  ping.path = undefined
[13-Nov-2021 18:42:30] NOTICE:  ping.response = undefined
[13-Nov-2021 18:42:30] NOTICE:  access.log = /proc/self/fd/2
[13-Nov-2021 18:42:30] NOTICE:  access.format = %R - %u %t "%m %r" %s
[13-Nov-2021 18:42:30] NOTICE:  slowlog = undefined
[13-Nov-2021 18:42:30] NOTICE:  request_slowlog_timeout = 0s
[13-Nov-2021 18:42:30] NOTICE:  request_slowlog_trace_depth = 20
[13-Nov-2021 18:42:30] NOTICE:  request_terminate_timeout = 0s
[13-Nov-2021 18:42:30] NOTICE:  request_terminate_timeout_track_finished = no
[13-Nov-2021 18:42:30] NOTICE:  rlimit_files = 0
[13-Nov-2021 18:42:30] NOTICE:  rlimit_core = 0
[13-Nov-2021 18:42:30] NOTICE:  chroot = undefined
[13-Nov-2021 18:42:30] NOTICE:  chdir = undefined
[13-Nov-2021 18:42:30] NOTICE:  catch_workers_output = yes
[13-Nov-2021 18:42:30] NOTICE:  decorate_workers_output = no
[13-Nov-2021 18:42:30] NOTICE:  clear_env = no
[13-Nov-2021 18:42:30] NOTICE:  security.limit_extensions = .php .phar

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grabbee, 2021-11-13
@grabbee

Works. Apparently there are no errors...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question