And after reboot (not restarting manually nginx) Code: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
Did you check out this? https://stackoverflow.com/questions/3191509/nginx-error-99-cannot-assign-requested-address https://ma.ttias.be/nginx-cannot-assign-requested-address-for-upstream/ https://serverfault.com/questions/543451/cannot-assign-requested-address
Yes but not solved my problem the thing is it is only after reboot i i use service nginx restart all is good so there is anythin at the startup that i didnt know?
If it happens every reboot, my quess is the startup order is wrong or nginx otherwise starts too soon, in other words something that it needs is not running when nginx tries to start. Examine the startup order, and examine the logs, there should be someting about why nginx either does not start or exits right after starting. Or one possibility is that when you start nginx manually, you use a different command or different settings compared to the startup script.
The most likely reason is the start order indeed. Seems as if Nginx starts before the IP address that you try to bind nginx to is available.
In my case nginx says cannot bind my_ipv4 not ipv6 But i reinstalled newer nginx version from the nginx repository and now it works