kjohri

Analyzing the NGINX web server log file

  • by

1.0 Introduction

Given an nginx web server log file, we might like to know who are the visitors to our website. One can go line by line through the log file, but that is tedious. It would be nice if we can get one line per client visiting the website, giving the IP address of the visitor and how many times that client has visited.… Read more

nginx drupal sitemap 404 not found

  • by

1.0 Error

While trying to open sitemap.xml of a site served by nginx and built using Drupal CMS, the 404 Not Found error was received. The nginx log file, error.log gave the error as, 80 open() sitemap.xml failed (2: No such file or directory).… Read more

Syslog

  • by

1.0 Syslog

Syslog is a protocol for conveying event notification messages.

Syslog was first developed by Eric Allman for logging as a part of the Sendmail project in the 1980s. It soon became a de-facto standard for logging on Unix-like systems.… Read more

Getting a project from GitHub

  • by

1.0 Scenario

While searching on a topic, you land up on a GitHub page with code. The code looks interesting. But you can not work on it on GitHub. You need to get it on your computer to work on it.… Read more

Failed to send 300 byte long packet over fallback interface

  • by

1.0 Error

While configuring a server, the following errors were noted in the logfiles.

send_packet: Operation not permitted
dhclient.c:2386: Failed to send 300 byte long packet over fallback interface.
DHCPREQUEST on eth0  port 67 (xid=0x1580bfd0)
...

2.0 Solution

There are two possibilities depending upon whether DHCP is being used for getting the network IP address or not.… Read more

D-Bus Tutorial

  • by

1.0 D-Bus

D-Bus is a mechanism for interprocess communication under Linux and other Unix-like systems. D-Bus has a layered architecture. At the lowest level is the D-Bus wire protocol described in the D-Bus Specification. The libdbus library is an implementation of the wire protocol.… Read more

Dovecot: imap Error: open (/var/mail/username) failed

  • by

Error

While configuring mail on a Ubuntu Linux server running the Postfix mail server and Dovecot IMAP server, the following errors were observed in the mail log files,

dovecot: imap(user1): Error: open(/var/mail/user1) failed: Permission denied (euid=1002(user1) egid=1002(user1) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775)
dovecot: imap(user1): Error: Failed to autocreate mailbox INBOX: Internal error occurred.
Read more