Experiment on changing my MTB handle bar with BMX! Its improve the comfort!
Recent newsUnbelievable! Its comfort actually!
read more(Comments)
Today I had a very very annoying and confusing situation. Which was a doesn't work host! And it's terrible.
Here how it looked like.
And it means the error is on my side. So I go to the site and try to turn it off
1. My Gunicorn
2. My Nginx
And it turns out that my Nginx that does not work.
I found it by typing
service nginx status
or
journalctl -xe
And it always give me error that
django@dashboardserver:~$ journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
and it made me more worried because nothing it seems wrong
django@dashboardserver:~$ service nginx stop
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'nginx.service'.
Authenticating as: ,,, (django)
Password:
==== AUTHENTICATION COMPLETE ===
django@dashboardserver:~$ killall -9 nginx
nginx: no process found
django@dashboardserver:~$ service nginx start
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'nginx.service'.
Authenticating as: ,,, (django)
Password:
==== AUTHENTICATION COMPLETE ===
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
django@dashboardserver:~$ systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-05-22 19:49:12 UTC; 15s ago
Process: 7504 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
and it still does not show anything
The situation is getting weirder because the system does not show the exact location of where is the error. And it gives me another Paulo Coelho moment where the programmer mostly spends 90% of his time actually not in programming, but in debugging. Especially debugging something that usually works but then why the hell it doesn't work now?
And then I found some hints.
I log in as a root and do the test to turn on the Nginx again
root@dashboardserver:~# systemctl restart nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@dashboardserver:~# service nginx quit
Usage: nginx {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade}
root@dashboardserver:~# service nginx stop
root@dashboardserver:~# systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@dashboardserver:~# nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2019/05/22 19:52:09 [emerg] 7679#7679: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
And whalla
The issue it turned out because I don't have the log for Nginx.
So the solution was to create the log
root@dashboardserver:~# cd /var/log
root@dashboardserver:/var/log# mkdir nginx
root@dashboardserver:/var/log# sudo chown -R www-data:www-data /var/log/nginx;
root@dashboardserver:/var/log# sudo chmod -R 755 /var/log/nginx;
root@dashboardserver:/var/log# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@dashboardserver:/var/log# systemctl start nginx
root@dashboardserver:/var/log#
And thanks to this site that helps me find out the solution.
And Voila the site lives again!
Unbelievable! Its comfort actually!
read moreAs time went by, this blog was developed for many different purposes. Last time, I had a lot of pleasure in sharing some of my Lego-related hobbies. However, I will mostly upload a blog about bikes and their development in the next few months! Recently, I have so much into ebike cargo. They say this type of bike can replace the car! And I am very into it since my place is crowded with traffic jams! The video above showed a funny situation: I started the review from Brooks's handle! And after nine years! It's still an excellent bike handle and not even destroyed!
read moreKeep Watching
Hi, hi, hi. So, it's been a while for the last couple of weeks since I have considered buying a cargo bike. The reason is that I am often trapped in a traffic jam because I can't get faster in my car.
read moreIndonesia has launched Southeast Asia’s first-ever bullet train, a high-speed rail line connecting two of its largest cities.Congrats! Indonesia launched Southeast Asia’s first bullet train.
Custom LEGO Transformers Devastator
My faith in humanity is restored! OK, that’s a bit overboard – but you couldn’t blame me if you see an incredibly, exquisitely and wonderfully executed custom LEGO Transformers Devastator such as this by Alex Jones. I feel transported to the 80’s once again, with the same intense childhood wonder when I first saw the Constructicons combine and become the formidable Devastator.
Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without
Comments