linux,logging,bind,centos5,nameserverRelated issues-Collection of common programming errors


  • user1483597
    linux memory logging kernel sigkill
    I’m testing some software+driver for it on linux, and the driver uses the get_user_pages() in its internal functions. At some point my driver receives ERESTARTSYS error (-512) from the get_user_pages(), and according to the kernel code it happens because “If we have a pending SIGKILL, don’t keep faulting pages and potentially allocating memory.” – it’s a comment from memory.c kernel file. So my question is, how can I see who sent this SIGKILL and why? I was trying to look in /var/log/kern.log fi

  • Martin Schröder
    pdftex linux libertine
    I just installed texlive2012 on the new distribution Mageia 3, as well as the libertine font .rpm packages. I have a problem with this code :\documentclass[10pt]{article}\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{libertine}\begin{document} This is my first LaTeX document on Mageia 3. \end{document}when I compile I get zero error, but no PDF is built. And if I remove the libertine font, LaTeX has a normal behaviour.I added \listfile and here is the corresponding .logarticle.

  • Ploo
    windows-7 linux hard-drive partitioning mbr
    Apparently the partition table still seems to be somewhere in tact, as well as all the files. Debian is able to mount the ntfs partitions, I can read/write and I am using dd to image the data onto an external HDD at the moment.fdisk:# fdisk -l /dev/sdbDisk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes /

  • user1768884
    linux ubuntu google-chrome-os headers chromebook
    So, I’m trying to install Virtual Box on my ChrUbuntu, however, it complained about headers being missing.So, I used the script here:#!/bin/bashset -x# # Grab verified boot utilities from ChromeOS. # mkdir -p /usr/share/vboot mount -o ro /dev/sda3 /mnt cp /mnt/usr/bin/vbutil_* /usr/bin cp /mnt/usr/bin/dump_kernel_config /usr/bin rsync -avz /mnt/usr/share/vboot/ /usr/share/vboot/ umount /mnt# # On the Acer C7, ChromeOS is 32-bit, so the verified boot binaries need a # few 32-bit shared libraries

  • Oliver Salzburg
    linux x-windows cuda
    I have been running Red Hat Enterprise Linux 6.1 on a system with a GTX 480. Recently I added a 3GB GTX 580, as my CUDA application requires more memory than I have on the 480. Due to space issues in the box, I had to place the 580 on the PCI-E bus closest to the CPU and move the 480 to the second slot.Now, when I run RHEL, X windows is running on the 580. What I would like to do is have the 480 run X windows so the full 3GB is available on the 580. I only have one monitor – it will only display

  • paj
    linux graphics-card xorg intel-graphics rhel-6
    I have installed a minimal EL6 (based on Scientific Linux 6.4) distro on a computer which has the following on-board graphics:lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Device 041 (rev 06)However, on startup, Xorg errors with the following:[ 139.047] (EE) Screen(s) found, but none have a usable configuration. [ 139.047]~ Fatal server error:

  • Favolas
    linux networking
    I have a virtual machine with Fedora 19 acting as a router. This machine as an interface (p8p1) with the IP 172.16.1.254 that is connected to another machine (IP 172.16.1.1) that’s simulating the external network.I’ve installed snort 2.9.2.2, applied the snortsam-2.9.2.2.diff.gz patch and installed snortsam 2.70 on the routermachineIn snort.conf besides altering some RULE_PATH I believe I’ve only added the following line to the file.output alert_fwsam: 127.0.0.1:898/passwordAfter doing this two

  • Rado
    linux android emulator
    I installed the android SDK and eclipse plugin on my laptop, but I was surprised to find out that the emulator eats up 100% of one of my cpu cores. I have exactly the same setup on a desktop machine that does not have this issue. Both computers are running arch linux and both were updated yesterday. Granted, the desktop has better hardware than the laptop, but I was expecting to get closer to 50% cpu usage than 100% on the laptop. Both android virtual devices have the same specs:CPU: ARM Target:

  • Journeyman Geek
    linux usb pci-express
    I have a PCIe wifi card connected via a PCIe-cPCI adapter.Reading lspci output, it seems that the card is not connected at all, and I really cannot figure out where the problem is. Plus, I do not get how the adapter is supposed to work: The manufacter says that no driver is required (the wifi card driver module is iwlwifi, and the card is known to work). Looking at this image, it seems that the connection works via usb:Should the usb connection managed by the linux kernel? Or is it entirely inv

  • Remolod Domelor
    linux sata home-server hotswapping
    I have a small home server built around a Lian Li PC-Q25 case with a SATA backplate advertising itself as hot pluggable. The motherboard is Asus P8H77-I. I have 4 SATA drives attached to the backplate – two pairs built into RAID1 arrays. The system is running on Centos 6.3 x86_64.One of the drives broke down, so I did the recommended procedure: synced, removed it from the array, shut it down properly and pulled it out. No disaster here, I could hear the drive spin down and no errors appeared in

  • user1483597
    linux memory logging kernel sigkill
    I’m testing some software+driver for it on linux, and the driver uses the get_user_pages() in its internal functions. At some point my driver receives ERESTARTSYS error (-512) from the get_user_pages(), and according to the kernel code it happens because “If we have a pending SIGKILL, don’t keep faulting pages and potentially allocating memory.” – it’s a comment from memory.c kernel file. So my question is, how can I see who sent this SIGKILL and why? I was trying to look in /var/log/kern.log fi

  • Lucas Batistussi
    php logging error-handling buffer ob-start
    Well… This is my case: I’m developing a framework and I’m current developing the error handling feature. I want handle error handling errors too! Well… explaining better: If I have an error, fatal or not, is thrown an exception (in case of non fatal errors) and faked Exception for fatal errors. The exceptions are handled by “loggers”, which can treat the error echo it on console (browser) or store it on a file. The problem is when occurs a second FATAL error inside loggers. To catch it I’m u

  • user66001
    logging msi
    Have looked at various listings of msiexec switches 1 2, but not despite most seeming to be an exact copy of each other (which doesn’t help people who end up needing some things described in a different way, to be understood), I am still confused as to what some of the logging switches do.From msiexec /? being run in cmd.exe:Logging Options /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>i – Status messagesw – Nonfatal warningse – All error messagesa – Start up of actionsr – Action-specific rec

  • Peter Mortensen

  • Mike
    bash cygwin grep logging
    Apologies for my ignorance, I’m fairly new to this.I’m trying to read a log file which is being written to by a simple daemon. What I would like to do is filter my “live” output to certain – multiple – “types”.My types are: DEBUG|INFO|WARN|ERROR|FATALThis is what I have so far, and it works for 1 case, I cannot get it working for multiple cases though.tail -f log.txt | grep INFOI’ve tried a couple things to try and say I want “WARN’s & ERROR’s” but nothing is really working for me. How wou

  • Tusker
    linux unix logging monitoring
    In our current system, we are not effectively monitoring the logs for errors as most of the errors are not serious enough. I want to basically warn users on the important errors. I cannot touch the code, so I cannot change these messages type to fatal.So, I want to write scripts searching logs for the regex of the important error messages. Is there a opensource software package that does this?

  • CHK
    linux bash logging grep
    I want to grep for the block of logs around a particular error message. Say I know my log looks like this:[—-] I, [2014-04-10T19:12:36.294512 #1910:e93004] INFO — : Started GET “/ems_infra/new” for 4.2.2.2 at 2014-04-10 15:12:36 -0400 [—-] I, [2014-04-10T19:12:36.345863 #1910:e93004] INFO — : other random logs [—-] F, [2014-04-10T19:12:36.346380 #1910:e93004] FATAL — : Error caught: [NoMethodError] undefined method `invert’ for nil:NilClass [—-] I, [2014-04-10T19:12:36.345863 #19

  • Gander7
    web-applications logging web error-handling
    I’m creating a generic Fatal Error log across several web Application The information I think I should have is this:GUID What Web App was running? Error # What Page was the user on? What Control was being used? What Event/procedure was running when it happened? Full Error Details Current User (If logged in) Datetime of ErrorWhat information and how much information do you think should be in an error log?

  • trante
    cakephp logging cakephp-2.0 php
    I need to log Fatal-errors of my website. I normally check error.log and debug.log files for CakePHP errors. But I found out that PHP related fatal errors aren’t logged someplace. It is also discussed in this thread. I checked php.ini. IT has following lines: log_errors = On ;error_log = filenameI don’t have rights to change php.ini. I can ask admin to change this, but it seems like I need to ask him every time I need a change 🙂 I also have concerns about performance. Whether logging errors

  • Cherian
    linux monitoring logging console tail
    Monitoring apache logs with tail -f tends gets very frustrating for the eyes after a while. Are there any tool/options to colorize the log outputs? Maybe signal FATAL with red, etc…

  • Richard Whitman
    ubuntu bind chroot chroot-jail
    I am trying to run bind9 with chroot jail. I followed the steps mentioned at : http://www.howtoforge.com/debian_bind9_master_slave_systemI am getting the following errors in my syslog:Jul 27 16:53:49 conf002 named[3988]: starting BIND 9.7.3 -u bind -t /var/lib/named Jul 27 16:53:49 conf002 named[3988]: built with ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–sysconfdir=/etc/bind’ ‘–localstatedir=/var’ ‘–enable-threads’ ‘–enable-largefile’ ‘–with-libtool’ ‘–enable-

  • Mike Atkinson
    bind named-conf
    I’m completely boggled by bind! Would massively appreciate any tips.When I try to start bind I see: root@WIG001-001 ~]# /etc/init.d/named start ls: cannot access /var/named/run-root/etc/pki/dnssec-keys: No such file or directory mount: mount point /var/named/run-root/etc/pki/dnssec-keys does not exist ls: cannot access /var/named/run-root/var/named: No such file or directory mount: mount point /var/named/run-root/var/named does not exist ls: cannot access /var/named/run-root/usr/lib64/bind: No

  • GC78
    bind sles apparmor
    I’ve been trying to get BIND server query logging working, creating 3 versions, max 100mb each. The system is SUSE SLES 11. I have found numerous how to articles on the web but none of them do anything other than break the DNS server. The machine is a virtualbox guest so I can keep going back to an unmodified snapshot of a working BIND server that doesn’t do any query logging. If I manually add the logging statements into named.conf, named will no longer load. messages shows “isc_stdio_open ‘wha

  • apelliciari
    ubuntu bind
    please help me, i screw my server.root@…:/etc/apache2/sites-available# dpkg –configure -a Setting up bind9 (1:9.7.0.dfsg.P1-1ubuntu0.8) …* Starting domain name service… bind9 [fail] invoke-rc.d: initscript bind9, action “start” failed. dpkg: error processing bind9 (–configure):subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:bind9 [Exit 1]I was installing vsftpd, but som

  • user192702
    bind
    Given the following my BIND 9 is not able to start.acl ns2 { 192.168.10.50; }; zone “10.168.192.in-addr.arpa” IN {also-notify { ns2 port 53; };type master;file “192.168.10.db”; };It’s writing the following to the /var/log/messages file.[root@dev bind]# tail /var/log/messages Jan 25 18:41:05 dev named[22863]: found 4 CPUs, using 4 worker threads Jan 25 18:41:05 dev named[22863]: using 4 UDP listeners per interface Jan 25 18:41:05 dev named[22863]: using up to 4096 sockets Jan 25 18:41:05 dev name

  • freiheit
    ubuntu bind chroot
    I am trying to running bind9, on a ubuntu box, in a chroot jail, as discussed in “Linux System Administration” (Adelstein & Lubanovic). The command “sudo /etc/init.d/bind9 start” is generating errors in syslog:Jun 27 13:39:48 doli named[12418]: starting BIND 9.5.1-P2 -u bind -t /var/lib/named . . . Jun 27 13:39:48 doli named[12418]: loading configuration from ‘/etc/bind/named.conf’ Jun 27 13:39:48 doli named[12418]: none:0: open: /etc/bind/named.conf: permission denied Jun 27 13:39:48 doli

  • sadpluto
    bind dnssec
    Could anybody provide a step-by-step procedure to set up DNSSEC under BIND 9.7? I think the version is relevant because it is supposed to make life easier. In fact, there is a document published by ISC called DNSSEC for Humans, which I used as a starting point, though it’s not quite a tutorial.The main reason I’m using 9.7 (say, instead of the brand new 9.9) is that it is the stable version under Debian 6. I should mention that I have a basic BIND configuration up and running.What I tried:Includ

  • Chris S
    linux bind
    (resolved: AppArmor was the reason of that failure. I just run: aa-logprof and restarted bind)I added second interface to my serverand after I restarted my server I have found out that BIND is not starting.If I try: sudo /etc/init.d/bind9 restart I’m. getting* Stopping domain name service… bind9rndc: connect failed: 127.0.0.1#953: connection refused[ OK ]* Starting domain name service… bind9[fail]contents from /var/log/syslog:Aug 12 15:50:36 server1 named[1127]: configuring TKEY: failure Aug

  • Tim Koscielski
    ubuntu dns bind
    I have a BIND server running on Ubuntu that is failing to lookup www.microsoft.com or any records at Microsoft. All other domains like google.com and yahoo.com seem to be working just fine. I am looking for some suggestions on how to improve logging to figure out why BIND is having problems with this domain. I already am capturing the query channel into the default_syslog and see the queries coming to the server, but I don’t see the result of the efforts of the BIND server in trying to find t

  • VisionIncision
    debian bind
    I have compiled Bind 9.8 on Debian, and am having difficulty getting the daemon to load. Output of more /var/log/daemon.log | grep named is as follows (I have isolated the problem to the following lines):-Jul 3 00:54:07 server1 named[850]: /etc/bind/named.conf.options:2: change directory to’/var/cache/bind’ failed: file not found Jul 3 00:54:07 server1 named[850]: /etc/bind/named.conf.options:2: parsing failed Jul 3 00:54:07 server1 named[850]: loading configuration: file not found Jul 3 00:

  • Tom Thorogood
    python centos5 apache-2.2 mod-wsgi
    I am trying to get web.py working.I have compiled mod_wsgi to use python2.6, and configured my virtualhost correctly (at least I am pretty sure it is!). The hello, world application keeps showing up as 404. I changed the loglevel of Apache to info. and am seeing the following: [Wed Sep 28 15:41:12 2011] [info] mod_wsgi (pid=25969): Attach interpreter ”. [Wed Sep 28 15:42:55 2011] [info] mod_wsgi (pid=25969): Create interpreter ‘clearpoint.turnleftllc.com|/budgetcalculator’. [Wed Sep 28 15:45:33

  • coolcfan
    centos centos5 memory
    I am trying to do some tests with Azul’s ZingVM, which needs to pre-allocate large amount of ram.The problem is, on my server (running Cent OS 5.8) which has 16GB ram, more than 8GB will be used right after rebooting… like this (I reboot the server, ssh login to it, and run free -m at once):total used free shared buffers cached Mem: 16048 8281 7767 0 1 19 -/+ buffers/cache: 8260 7788 Swap: 18047 0

  • hcsteve
    centos5 ipv6
    I have a machine running CentOS 5.8. IPv6 was disabled by creating a file /etc/modprobe.d/disable-ipv6 with the following contents:options ipv6 disable=1Removing the file and rebooting the machine should re-enable IPv6. Is there a way to enable IPv6 without having to reboot?Additional info:I found something that said to echo 0 > /proc/sys/net/ipv6/conf/interface/disable_ipv6, but /proc/sys/net/ipv6 does not exist on this machine.sysctl shows nothing about IPv6:# sysctl -a | grep -i ipv6 | w

  • Coombesy
    centos5 php5.3
    I’m tring to install phpdox https://github.com/theseer/phpdox using composer. I’ve successfully installed it locally, but when I try on my server (centos 5.9) composer declares all is ok, but running phpdox throws:Warning: require(TheSeer/DirectoryScanner/autoload.php): failed to open stream: No such file or directory in /opt/phpdox/phpdox.php on line 45 Fatal error: require(): Failed opening required ‘TheSeer/DirectoryScanner/autoload.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /

  • melvincv
    centos5 lamp
    I’m running Centos 5.7. I’m running Apache, MySQL, PHP, Courier-IMAP, Qmail and Plesk control panel in a typical Web hosting server setup. It gets hung often.I had to restart the server via the admin panel, since there was no Plesk or SSH access… How to prevent this from happening again?Processor: AMD Phenom(tm) II X4RAM: 8 GBI noticed some errors in the Apache log:# tail -20 /var/log/httpd/error_log[Mon Sep 03 06:12:33 2012] [error] [client 202.29.34.28] File does not exist: /var/www/vhosts/d

  • jon
    php redhat centos5
    I’ve got a CentOS / Red Hat 5.5 box running the current PHP 5.1.6 package. A user is getting the following error:Fatal error: Class ‘ZipArchive’ not found in /var/www/html/<filename.php> on line 225Based on some reading it looks like PHP wants to have had the –enable-zip flag at compile time, however we are running the packaged version for RedHat / Cent. I’m not excited about compiling PHP from source just to enable this option; is there a way to enable the zip functions without resorti

  • mgorven
    postfix centos5
    When I have restarting the postfix server I am facing the below error ::postfix-out/master[1714]: fatal: open lock file pid/master.pid: cannot create file exclusively: Permission deniedI having a centos server.

  • Life of Madness
    ruby gem centos gitlab centos5
    I get this gitlab install error.Does anyone know why?log:[git@ictiy-01 gitlab]$ sudo -u git -H bundle install –deployment –without development test postgres aws Fetching source index from https://rubygems.org/ Using rake (10.1.0) Using i18n (0.6.9) Using minitest (4.7.5) Using multi_json (1.8.2) Using atomic (1.1.14) Using thread_safe (0.1.3) Using tzinfo (0.3.38) Using activesupport (4.0.2) Using builder (3.1.4) Using erubis (2.7.0) Using rack (1.5.2) Using rack-test (0.6.2) Using actionpack

  • objah
    ruby postgresql gem centos5 pg
    After upgrade postgresql 8.1 to 9.0 ive noticed issues with libraries dependency. Postgresql works fine (connection, queries).yum list postgresql* Installed Packages postgresql.i386 9.0.0-1PGDG.el5 installed postgresql-debuginfo.i386 9.0.0-1PGDG.el5 installed postgresql-devel.i386 9.0.0-1PGDG.el5 installed postgresql-libs.i386 9.0.0-1PGDG.el5 installed postgresql-odbcng.i386 0.90.101-2.el5 installed postgresql-plruby.i386 0.5.1-5.el5 installed postgresql-server.i386 9.0.0-1PGDG.el5 installbut wh

  • Keith Pitty
    rubygems rmagick centos5
    I’m having problems installing the RMagick rubygem on Centos 5. I’ve followed the steps detailed in http://rmagick.rubyforge.org/install2-linux.html but when I try:sudo gem install rmagickthe result is:Building native extensions. This could take a while… ERROR: Error installing rmagick:ERROR: Failed to build gem native extension./usr/local/bin/ruby extconf.rb checking for Ruby version >= 1.8.5… yes checking for gcc… yes checking for Magick-config… no Can’t install RMagick 2.11.0. Ca

  • niting
    dns nameserver
    Recently, I had a problem with my site. The site wasnt opening properly and I figured it out that there was some problem with the SOA. I corrected the SOA record and now its working fine. But when I tried running a zonecheck (www.zonecheck.fr) on my domain as www.mydomain.org it shows me a fatal error which says that SOA and ANY request disagree. Could you please tell me what the error could be?Thanks nitingEDIT : Sorry guys I am little paranoid. The domain is www.bits-bosm.org. It gives differe

  • Thuy
    dns debian bind nameserver dyndns
    I’ve been trying to use nsupdate to dynamiclly update my nameservers records.I get a serverfail when i attempt it. This is from the syslogs.Nov 12 08:00:53 ps133045 named[14314]: client 78.72.53.42#50135: signer “www.mydomain.com” approved Nov 12 08:00:53 ps133045 named[14314]: client 78.72.53.42#50135: updating zone ‘mydomain.com/IN’: adding an RR at ‘client$ Nov 12 08:00:53 ps133045 named[14314]: /etc/bind/zones/mydomain.com.zone.jnl: create: permission denied Nov 12 08:00:53 ps133045 named[14

  • Matthew
    dns domain subdomain nameserver domain-registration
    Alright I have to admit I’m confused with how DNS works. I’ve always just added things until they worked, and now it’s time to learn how they work.So one confusing thing to me is that there’s sort of two places I can have records. I have an account with rackspace cloud servers. And then there’s the place I registered the domain. But both allow me to edit DNS records.Should I do everything at both places or is one better than the other or am I missing the point?Subdomains confuse me too. I’d like

  • Nyxynyx
    ubuntu dns bind nameserver webmin
    I installed virtualmin and played around with the DNS settings. Now when I try to start bind9 I get the error:Service bind9 restart* Stopping domain name service… bind9 rndc: connect failed: 127.0.0.1#953: connection refused[ OK ]* Starting domain name service… bind9 [fail]/var/log/syslogOct 11 06:05:45 stock named[6316]: starting BIND 9.8.1-P1 -u bind Oct 11 06:05:45 stock named[6316]: built with ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/in

  • dan
    web-hosting server nameserver load-balance
    This question already has an answer here:Having 2 hosting accounts in case one of downtime?2 answersI have two websites, say a.com and b.com.a.com is on a paid hosting service, and b.com is on 000Webhost.000Webhost crashes sometimes, and my site b.com becomes unreachable.So is there any way that I can:create a copy of b.com, in a subfolder of a.com, like a.com/bdotcom If b.com is unreachable, redirect it to a.com/bdotcom If possible, keep the url as b.com

  • Zim3r
    linux logging bind centos5 nameserver
    Once Bind crashed and I did: tail -f /var/log/messages I see a massive number of logs every second. Is this a DNS attack? or is there something wrong?Sometimes I see a domain in logs like this: dOmAin.com (upper andlower). As you see there is only one single domain in the logs with different IPsOct 10 02:21:26 mail named[20831]: client 74.125.189.18#38921: query (cache) ‘ns1.domain2.com/A/IN’ denied Oct 10 02:21:26 mail named[20831]: client 192.221.144.171#38833: query (cache) ‘domain.com/A/IN’

  • cappuccino
    dns nameserver
    When providing nameservers to my domain’s registrar, i.e. nameserver 1 dns1.example.com nameserver 2 dns2.example.com nameserver 3 dns3.example.com nameserver 4 dns4.example.comDo ISPs and computers always use the nameserver in order? i.e. where nameserver 1 is up it will be used, if not, nameserver 2 will be attempted to be usedOr can ISPs and computers use a different order?

  • w3d
    dns nameserver
    I have a client that asked me to move his domains to a new private server, this is my first experience on using private name servers so I am unsure if I am doing something incorrectly.According to what I have read, at my registrar I have to register the private name servers, in this case ns1.vetology.net and ns2.vetology.net which I have done last Wednesday and testing the name servers they are pointing to the correct IPhttp://reports.internic.net/cgi/whois?whois_nic=NS1.VETOLOGY.NET&type=na

  • stealthyninja
    domains dns vps nameserver
    I recently bought a new VPS, and I was trying to set private nameservers in my domain cPanel.I went ahead and added 4 A records:ns1.mydomain.com – points to my IP ns2.mydomain.com – points to my IP www.mydomain.com – points to my IP mydomain.com – points to my IPand changed the nameservers to ns1 and ns2.mydomain.com. The problem is that now while typing www.ns1.mydomain.com and www.ns2.mydomain.com in the browser, it points to the correct IP address, but the www.mydomain.com domain is returning

  • leeand00
    ubuntu-10.04 nameserver internal-dns bind
    I setup a DNS server today on Ubuntu, following this tutorial. My intent was to setup my network for dns-name resolving on the private LAN within a single zone (nothing fancy I just want name resolution). I’ve tested the setup on the DNS server machine itself, and I can ping all the machines listed in the configuration file. I’ve also configured the Windows Machines on my network, and for some reason they are incapable of pinging by names as was possible on the DNS Server itself. I’ve tried

Web site is in building