Questions
Find answers to frequently asked development questions. For information about Better Stack products, explore our docs.
Warning: Remote Host Identification Has Changed
What does it mean You may wonder what WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED error means. SSH connection uses keys, files stored on the computer, to authenticate the server and the client....
How to Start Docker Containers Automatically After a Reboot?
Docker provides restart policies to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies ensure that linked containers are started in the co...
How to ping Docker container from another container by name?
The feather of accessing or pinging containers from other containers using their name rather than their IP address comes out of the box with docker networks. For this, you will need two (or more) c...
How to pass environment variables to a Docker container?
It is always a good practice to separate the app from its configuration. It is not a good idea to have a database login credential defined as variables in the code of the application. This is why w...
How to fix docker: Got permission denied while trying to connect to the Docker daemon socket
This error may appear when running docker commands and it is caused by insufficient privilages. Solution To resolve the problem, you need to do the following: Create a docker group sudo groupadd do...
How do I disable ipv6 on Ubuntu 20.04
To disable IPv6 on your Ubuntu 20.04 system, open the /etc/sysctl.conf file in your favorite text editor and put the following lines at the end of the file: net.ipv6.conf.all.disableipv6 = 1 net.ip...
Error Permission denied (publickey) when I try to ssh
This error appears when trying to SSH into a server. The publickey in the brackets after the error message is misleading. One reason might be wrong configuration in sshd_config file and the second ...
Copy SSH key to clipboard
An SSH key is usually stored in the form of a file. To copy an SSH key to your clipboard, you can use one of the following options: Option 1 - Copy from terminal The first option is to print the ke...
502 bad gateway Nginx
If you are getting the 502 bad gateway error when accessing a Nginx server, here are a few solutions: Check if Nginx is running To check if Nginx is running run the following command: systemctl sta...
Where does node.js store logs?
Node.js doesn’t store logs in the file. Logs are printed into the STDERR and output is printed into the STDOUT. However, you can change that when you runt the javascript code from the shell and red...
Where does Linux store my syslog?
Linux has a special directory for storing logs. This directory contains collected logs from the operating system itself, services and other applications running on the system. The actual location d...
Where can I find the IIS log?
You can find your IIS log file in the following directory: %SystemDrive%\inetpub\logs\LogFiles If the directory doesn’t exist in your system, try looking in the following directory %SystemDrive%\Wi...
Where can I find the error logs of NGINX, using FastCGI and Django?
By default Nginx stores its error logs in the /var/log/nginx/error.log file and access logs in the /var/log/nginx/access.log. To change the location of the log files, configure the following direct...
Understanding access log columns in Nginx
The NGINX logs the activities of all the visitors to your site in the access logs. Here you can find which files are accessed, how NGINX responded to a request, what browser a client is using, IP a...
Reading syslog output on a Mac
Same as Linux, MacOS saves system logs into a syslog file. This location of the syslog is /var/log/system.log. On newer MacOS versions, you will find the log at /private/var/log/system.log You can ...
Log.INFO vs. Log.DEBUG
When logging, logged messages are differentiated by their importance. In most logging frameworks we differentiate the following levels of importance: DEBUG - Lowest level. Fine-grained statements c...
Log analyzer tools for IIS web server logs
IIS webserver logs each and every access into a log file. To better understand the data from the log, little help is needed in the form of a log analyzer. Log analyzer is a software that allows you...
How to view syslog in Ubuntu?
Linux has a special directory for storing logs. This directory contains collected logs from the operating system itself, services and other applications running on the system. The actual location d...
How to view log output using docker-compose run?
You can start Docker compose in detached mode and attach yourself to the logs of all containers later. If you're done watching logs you can detach yourself from the logs output without shutting dow...
How to access Redis log file?
As many other services, Redis stores its log in the special log file. The location of the Redis log depends on the type of the installation. With a default apt-get installation on Ubuntu 14.04, Red...
Make your mark
Join the writer's program
Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.
Write for usBuild on top of Better Stack
Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.
community@betterstack.comor submit a pull request and help us build better products for everyone.
See the full list of amazing projects on github
Thank you to everyone who
Here is to all the fantastic people that are contributing and sharing their amazing projects: Thank you!