You are not logged in.
This happens quite randomly.
I'll hit Ctrl + R and type "Firefox" (I use Aweosme-WM), try to open Slack, a terminal, or anything. My cursor turns into a little loading icon, as usual, but then nothing ever opens. I have to restart my computer to get things working. This has never happened before, but began happening after I installed LAMP—I'm not sure if the two are related.
How can I start troubleshooting this problem?
I looked at the ``httpd`` error logs, but I'm not sure if these occurred before or after my restart (since I couldn't look at the error logs before said restart). Furthermore, I'm not even sure if my installation of LAMP has anything to do with this.
[Thu Nov 23 05:25:21.805454 2017] [mpm_prefork:notice] [pid 447] AH00170: caught SIGWINCH, shutting down gracefully
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Nov 23 05:26:08.602620 2017] [mpm_prefork:notice] [pid 448] AH00163: Apache/2.4.29 (Unix) PHP/7.1.11 configured -- resuming normal operations
[Thu Nov 23 05:26:08.602693 2017] [core:notice] [pid 448] AH00094: Command line: '/usr/bin/httpd -D FOREGROUND'
Would someone mind helping me?
Offline
Keep one terminal window open and when you start getting this problem, try starting programs from terminal. That should give you some useful error message.
Arch is home!
https://github.com/Docbroke
Offline
Check your journal for any messages around the time the problem started.
Also, please post the output of 'hostnamectl'.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Your LAMP install is unlikely to have anything to do with it unless you did really silly things when you installed it.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Check your journal for any messages around the time the problem started.
Also, please post the output of 'hostnamectl'.
Static hostname: localhost
Icon name: computer-laptop
Chassis: laptop
Machine ID: 36d08a61475841069fac1abda449193c
Boot ID: ed69a815b3a246fbaca92b1ed8f2b42e
Operating System: Arch Linux
Kernel: Linux 4.13.12-1-ARCH
Architecture: x86-64
Also, keeping a terminal open is a good idea. I'll do that and report back next it happens.
Offline
Offline
Keep one terminal window open and when you start getting this problem, try starting programs from terminal. That should give you some useful error message.
So, it happened again and I recorded the error I'm getting in a terminal:
[me@localhost ~]$ google-chrome-stable
Invalid MIT-MAGIC-COOKIE-1 key
(google-chrome:10310): Gtk-WARNING **: cannot open display: :0
[me@localhost ~]$ firefox
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Error: cannot open display: :0
[me@localhost ~]$ slack
Invalid MIT-MAGIC-COOKIE-1 key[javi@localhost ~]$
*And* I was able to figure out when the problem happens—whenever I close/reopen the lid to my laptop. I've searched Google a bit to no avail, but I'll kepe looking.
Last edited by AmagicalFishy (2017-11-25 03:07:29)
Offline
The hostname of localhost is not considered valid and can be replaced by a hostname supplied by dhcp.
Offline
So, I changed my hostname and everything works as intended.
What is it about opening programs that my hostname is required?
Offline
The X server uses host based authentication. The change in hostname caused the X server to reject new connections as the hostname was not authorized.
Offline