Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx won't start on QEMU Virtual CPU #249

Open
mozaroc opened this issue Oct 9, 2024 · 0 comments
Open

nginx won't start on QEMU Virtual CPU #249

mozaroc opened this issue Oct 9, 2024 · 0 comments
Labels

Comments

@mozaroc
Copy link

mozaroc commented Oct 9, 2024

Environment

Include the result of the following commands:

  • nginx version: nginx/1.24.0 (Ubuntu)
  • Linux real-ip.isgood.host 6.8.0-45-generic 45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • OS - Ubuntu server 22/24
  • package nginx-full

Description

nginx won't start on QEMU Virtual CPU and work correctly with host cpu model with KVM virtualization
root@real-ip:~# nginx -t
2024/10/09 09:34:29 [emerg] 961#961: could not build map_hash, you should increase map_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
change map_hash_bucket_size not helped

when cpu not virtual and config not changed everything is OK

root@real-ip:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

nginx configuration

# Your nginx configuration here

nginx.conf https://pastebin.com/13ttGiAQ
stream.conf https://pastebin.com/5k8QLjgw
domain.conf https://pastebin.com/YC9yeUwv

CPU change log https://pastebin.com/EPM3izkk

@mozaroc mozaroc added the bug label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant