Request for explanation of error message

Mike Marchywka marchywka at hotmail.com
Sat Jul 27 22:38:39 UTC 2019


On Sun, Jul 28, 2019 at 06:06:23AM +0800, Bret Busby wrote:
> On 28/07/2019, Mike Marchywka <marchywka at hotmail.com> wrote:
> > On Sun, Jul 28, 2019 at 04:06:45AM +0800, Bret Busby wrote:
> >> On 28/07/2019, Mike Marchywka <marchywka at hotmail.com> wrote:
> >> > On Sat, Jul 27, 2019 at 09:26:41PM +0200, Oliver Grawert wrote:
> >> >>
> >> >> dpkg -l | grep logrotate
> >
> > I thought you had dirs there, I always use du -sbc on directories to hunt
> > down :)
> >
> > Installation is not the same as functioning, you should be able to see the
> > old
> > versions gzipped if it is working and configured right. Again though
> > burning through that much disk space that fast and having a file that big
> > for "normal" usage is odd although I don't know your history.
> >
> >
> >> > These are the directory sizes, while logrotate can compress old ones
> >> > there
> >> > is not
> >> > a good reason for Gb of log messages.
> >>
> >> In /var/log/lightdm , is
> >> x-0.log
> >> size: 48.2GB
> >>

I guess these logs are rw user only, my system seems to work like this, 


 ls -al /var/log/lightdm
total 152
drwxr-xr-x  2 root root   4096 Jul 21 07:35 .
drwxrwxr-x 13 root syslog 4096 Jul 27 07:35 ..
-rw-------  1 root root      0 Jul 21 07:35 lightdm.log
-rw-------  1 root root   1363 Jul 20 20:41 lightdm.log.1.gz
-rw-------  1 root root   1369 Jul  8 17:34 lightdm.log.2.gz
-rw-------  1 root root   5428 Jul  5 18:48 lightdm.log.3.gz
-rw-------  1 root root   6688 Jul  5 05:53 lightdm.log.4.gz
-rw-------  1 root root   6764 Jul  4 06:46 lightdm.log.5.gz
-rw-------  1 root root   5954 Jul  3 06:03 lightdm.log.6.gz
-rw-------  1 root root   4075 Jul  2 06:39 lightdm.log.7.gz


The older gz files are rotated by logrotate but I thought
they were all world readable. 

In any case the huge log files probably have repetitive error
messages that will give you some idea where it is stuck.
If /tmp is rw for you you would have to find some other reason
it can't make a lock file. In any case if you can find the repeating
error loop in the log files post that. The tails you posted I'm
not sure if they got a full cycle. 



> >>
> >>
> >>
> >>
> >> The pci problem suggests
> >> > an infinite mesage loop -I used to get that all the time from
> >> > misconfigured nullmaileri this may be a hardware issue. Just tail the
> >> > most
> >> > recent file in the directories
> >> > and see if it is a repeated message.
> >>
> >> "
> >> bret at bret-MD34045-2521:~$ tail /var/log/lightdm/x-0.log
> >> tail: cannot open '/var/log/lightdm/x-0.log' for reading: Permission
> >> denied
> >> bret at bret-MD34045-2521:~$ sudo tail /var/log/lightdm/x-0.log
> >> [sudo] password for bret:
> >> xorg-server 2:1.19.6-1ubuntu4.3 (For technical support please see
> >> http://www.ubuntu.com/support)
> >> Current version of pixman: 0.34.0
> >> 	Before reporting problems, check http://wiki.x.org
> >> 	to make sure that you have the latest version.
> >> Markers: (--) probed, (**) from config file, (==) default setting,
> >> 	(++) from command line, (!!) notice, (II) informational,
> >> 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> >> (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 28 02:49:58 2019
> >> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
> >> xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
> >> bret at bret-MD34045-2521:~$ sudo tail -30 /var/log/lightdm/x-0.log
> >> 	 at http://wiki.x.org
> >>  for help.
> >> (EE)
> >> (EE)
> >> Fatal server error:
> >> (EE) Could not write pid to lock file in /tmp/.tX0-lock
> >
> > I'm not really sure what to make of this as bad locks can lead to bizarre
> > problems
> > .   I guess you could check the obvious,
> > the logs should be readable by all too,
> >
> > ls -al /var/log | grep X
> > -rw-r--r--  1 root              root    37198 Jul 20 20:41 Xorg.0.log
> > -rw-r--r--  1 root              root    42732 Jul  8 17:35 Xorg.0.log.old
> > -rw-r--r--  1 root              root    32892 Jul  5 17:52 Xorg.1.log
> > -rw-r--r--  1 root              root    32892 Jul  5 17:14 Xorg.1.log.old
> > marchywka at happy:/home/documents/latex/proj/happyheart$ ls -al /tmp | head -n
> > 2
> > total 1164
> > drwxrwxrwt 19 root      root      1081344 Jul 27 17:01 .
> >
> >
> > And I'm not sure the Xorg thing is rotated by default,
> >
> > more /etc/logrotate.d/
> > apport               iptraf-ng            speech-dispatcher
> > apt                  lightdm              ufw
> > cups-daemon          pm-utils             unattended-upgrades
> > dpkg                 ppp                  upstart
> > hibernate            rsyslog
> >
> >
> >
> 
> 
> "
> bret at bret-MD34045-2521:~$ more /etc/logrotate.d/
> 
> *** /etc/logrotate.d/: directory ***
> 
> bret at bret-MD34045-2521:~$ ls -al /var/log | grep X
> -rw-r--r--   1 root              root               46756 Jul 28 02:50
> Xorg.0.log
> 
> bret at bret-MD34045-2521:~$ ls -al /tmp | head -n 2
> total 80
> drwxrwxrwt 18 root root 4096 Jul 28 04:46 .
> "
> 
> -- 
> Bret Busby
> Armadale
> West Australia
> ..............
> 
> "So once you do know what the question actually is,
>  you'll know what the answer means."
> - Deep Thought,
>  Chapter 28 of Book 1 of
>  "The Hitchhiker's Guide to the Galaxy:
>  A Trilogy In Four Parts",
>  written by Douglas Adams,
>  published by Pan Books, 1992
> 
> ....................................................
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 

mike marchywka
306 charles cox
canton GA 30115
USA, Earth 
marchywka at hotmail.com
404-788-1216
ORCID: 0000-0001-9237-455X




More information about the ubuntu-users mailing list