Page 1 of 1

Fatal Python error: PyEval_SaveThread: NULL tstate

Posted: 2020/06/09 14:42:05
by Steffan

Im running multiple a cento s8 VPS on Openvz 7
On one vps i have a problem and i cant find the answer online. (server is not inproduction)

On every

Code: Select all

 systemctl reload httpd.service 
apache is hanging:

Code: Select all

Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf, php56-php-fpm.conf, php71-php-fpm.conf, php73-php-fpm.conf
   Active: reloading (reload) (Result: core-dump) since Tue 2020-06-09 16:28:07 CEST; 8min ago
     Docs: man:httpd.service(8)
  Process: 19045 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 27977 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=dumped, signal=ABRT)
 Main PID: 27977 (code=dumped, signal=ABRT)
   Status: "Reading configuration..."
    Tasks: 3 (limit: 26213)
   CGroup: /system.slice/httpd.service
           ├─19150 vlogger (access log)
           ├─19160 /usr/sbin/httpd -DFOREGROUND
           └─19167 /usr/sbin/httpd -DFOREGROUND

Jun 09 16:28:05 xxx systemd[1]: Starting The Apache HTTP Server...
Jun 09 16:28:07 xxx systemd[1]: Started The Apache HTTP Server.
Jun 09 16:28:09 xxx httpd[27977]: Server configured, listening on: port 8000, port 8081, port 443, port 80
Jun 09 16:36:17 xxx systemd[1]: Reloading The Apache HTTP Server.
Jun 09 16:36:18 xxx systemd[1]: Reloaded The Apache HTTP Server.
Jun 09 16:36:21 xxx systemd[1]: httpd.service: Main process exited, code=dumped, status=6/ABRT
If i look in the errorlog i see

Code: Select all

[Tue Jun 09 16:38:22.998164 2020] [mpm_event:notice] [pid 20777:tid 139711662569728] AH00493: SIGUSR1 received.  Doing graceful restart
[Tue Jun 09 16:38:26.337080 2020] [ssl:warn] [pid 20777:tid 139711662569728] AH01909: xxxx:8000:0 server certificate does NOT include an ID which matches the server name
[Tue Jun 09 16:38:26.338171 2020] [lbmethod_heartbeat:notice] [pid 20777:tid 139711662569728] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 09 16:38:26.583950 2020] [:notice] [pid 20777:tid 139711662569728] mod_python: Creating 8 session mutexes based on 4 max processes and 25 max threads.
[Tue Jun 09 16:38:26.583978 2020] [:notice] [pid 20777:tid 139711662569728] mod_python: using mutex_directory /tmp
Fatal Python error: PyEval_SaveThread: NULL tstate

Current thread 0x00007f112804b900 (most recent call first):
after doing a restart i see in the log

Code: Select all

[Tue Jun 09 16:38:53.987408 2020] [suexec:notice] [pid 26684:tid 140297755269376] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 09 16:38:54.230237 2020] [ssl:warn] [pid 26684:tid 140297755269376] AH01909:xxxx:8000:0 server certificate does NOT include an ID which matches the server name
[Tue Jun 09 16:38:55.613760 2020] [ssl:warn] [pid 26684:tid 140297755269376] AH01909:xxxxx3:8000:0 server certificate does NOT include an ID which matches the server name
[Tue Jun 09 16:38:55.614883 2020] [lbmethod_heartbeat:notice] [pid 26684:tid 140297755269376] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 09 16:38:55.844846 2020] [:notice] [pid 26684:tid 140297755269376] mod_python: Creating 8 session mutexes based on 16 max processes and 25 max threads.
[Tue Jun 09 16:38:55.844871 2020] [:notice] [pid 26684:tid 140297755269376] mod_python: using mutex_directory /tmp
[Tue Jun 09 16:38:55.885371 2020] [core:warn] [pid 26684:tid 140297755269376] AH00098: pid file /etc/httpd/run/ overwritten -- Unclean shutdown of previous Apache run?
[Tue Jun 09 16:38:56.224821 2020] [mpm_event:notice] [pid 26684:tid 140297755269376] AH00489: Apache/2.4.37 (centos) OpenSSL/1.1.1c mod_fcgid/2.3.9 mod_python/3.5.0- Python/3.6.8 configured -- resuming normal operations
[Tue Jun 09 16:38:56.224871 2020] [core:notice] [pid 26684:tid 140297755269376] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Code: Select all

Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 allowmethods_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_anon_module (shared)
 authn_core_module (shared)
 authn_dbd_module (shared)
 authn_dbm_module (shared)
 authn_file_module (shared)
 authn_socache_module (shared)
 authz_core_module (shared)
 authz_dbd_module (shared)
 authz_dbm_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_owner_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 brotli_module (shared)
 cache_module (shared)
 cache_disk_module (shared)
 cache_socache_module (shared)
 data_module (shared)
 dbd_module (shared)
 deflate_module (shared)
 dir_module (shared)
 dumpio_module (shared)
 echo_module (shared)
 env_module (shared)
 expires_module (shared)
 ext_filter_module (shared)
 filter_module (shared)
 headers_module (shared)
 include_module (shared)
 info_module (shared)
 log_config_module (shared)
 logio_module (shared)
 macro_module (shared)
 mime_magic_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 remoteip_module (shared)
 reqtimeout_module (shared)
 request_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 slotmem_plain_module (shared)
 slotmem_shm_module (shared)
 socache_dbm_module (shared)
 socache_memcache_module (shared)
 socache_shmcb_module (shared)
 status_module (shared)
 substitute_module (shared)
 suexec_module (shared)
 unique_id_module (shared)
 unixd_module (shared)
 userdir_module (shared)
 version_module (shared)
 vhost_alias_module (shared)
 watchdog_module (shared)
 dav_module (shared)
 dav_fs_module (shared)
 dav_lock_module (shared)
 lua_module (shared)
 mpm_event_module (shared)
 proxy_module (shared)
 lbmethod_bybusyness_module (shared)
 lbmethod_byrequests_module (shared)
 lbmethod_bytraffic_module (shared)
 lbmethod_heartbeat_module (shared)
 proxy_ajp_module (shared)
 proxy_balancer_module (shared)
 proxy_connect_module (shared)
 proxy_express_module (shared)
 proxy_fcgi_module (shared)
 proxy_fdpass_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_hcheck_module (shared)
 proxy_scgi_module (shared)
 proxy_uwsgi_module (shared)
 proxy_wstunnel_module (shared)
 ssl_module (shared)
 systemd_module (shared)
 cgid_module (shared)
 fcgid_module (shared)
 http2_module (shared)
 proxy_http2_module (shared)
 python_module (shared)
Any help/idee what is wrong with the configuration?