nginx is down

mamadletsgo

Verified User
Joined
Mar 2, 2015
Messages
68
Location
iran,tehran
hello ,
please help me for Solve the problem

Starting nginx: nginx: [emerg] BIO_new_file("/etc/nginx/ssl.crt/dhparams.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl.crt/dhparams.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)


thanks
 
Please commands Give to enter SSH for sloved problem

Starting nginx: nginx: [emerg] BIO_new_file("/etc/nginx/ssl.crt/dhparams.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl.crt/dhparams.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
 
Code:
openssl dhparam -out [COLOR=#333333][FONT=Verdana]/etc/nginx/ssl.crt/dhparams.pem[/FONT][/COLOR] 4096;
 
Type the command to ssh , It took about 3 hours.
But the problem is not solved ...
Please tell another solution for solve this problem
thanks ,
 
Your VPS server seems to have too little power if that took 3 hours.
There is no other command to solve the error you posted here unless the previous command failed to finish.

What you see with:

Code:
cat [COLOR=#333333]/etc/nginx/ssl.crt/dhparams.pem[/COLOR]
?
 
Because my problem is not solved
I was a server configuration
I moved the site to a new server
Again, the same problem after his transfer was formed in the new server
These statements do not benefit and does not solve the problem in any of the servers
 
Your VPS server seems to have too little power if that took 3 hours.
There is no other command to solve the error you posted here unless the previous command failed to finish.

What you see with:

Code:
cat [COLOR=#333333]/etc/nginx/ssl.crt/dhparams.pem[/COLOR]
?

[root@server ~]# cat /etc/nginx/ssl.crt/dhparams.pem
cat: /etc/nginx/ssl.crt/dhparams.pem: No such file or directory
[root@server ~]#
 
In this case I assume either you have no the directory: /etc/nginx/ssl.crt/
To create run this:

Code:
mkdir -p /etc/nginx/ssl.crt/

or the command from my post was not completed, to make to run faster you can create 2048 bit key instead of 4096 with this command:

Code:
openssl dhparam -out /etc/nginx/ssl.crt/dhparams.pem 2048;


And I wonder how did you install nginx on your server? Did you use CustomBuild to install nginx?
 
In this case I assume either you have no the directory: /etc/nginx/ssl.crt/
To create run this:

Code:
mkdir -p /etc/nginx/ssl.crt/

or the command from my post was not completed, to make to run faster you can create 2048 bit key instead of 4096 with this command:

Code:
openssl dhparam -out /etc/nginx/ssl.crt/dhparams.pem 2048;


And I wonder how did you install nginx on your server? Did you use CustomBuild to install nginx?

Thanks Alex for Help,
My Problem Is Solved ... :)
 
Good to know that. So that we understand why you've ran into the issue please answer the questions:

How did you install nginx on your server? Did you use CustomBuild to install nginx?
 
OK, I see they added these lines:

Code:
ssl_dhparam /etc/nginx/ssl.crt/dhparams.pem;

in to /usr/local/directadmin/custombuild/configure/nginx/conf/nginx-defaults.conf and /usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx-defaults.conf

but custombuild script does not create the file or check the existance of the file and that's the core of your issue.
 
OK, I see they added these lines:

Code:
ssl_dhparam /etc/nginx/ssl.crt/dhparams.pem;

in to /usr/local/directadmin/custombuild/configure/nginx/conf/nginx-defaults.conf and /usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx-defaults.conf

but custombuild script does not create the file or check the existance of the file and that's the core of your issue.

Yes, there is a line at the end of both files

Is this problem may come again?
 
No, if you have /etc/nginx/ssl.crt/dhparams.pem (updated server with a guide in the post #9
).
And yes if you have no /etc/nginx/ssl.crt/dhparams.pem (other servers).
 
Back
Top