You are not logged in.

#1 2017-11-23 10:37:52

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Not sure how to begin troubleshooting this: Programs not opening

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

#2 2017-11-23 11:00:15

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Not sure how to begin troubleshooting this: Programs not opening

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.

Offline

#3 2017-11-23 12:22:55

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: Not sure how to begin troubleshooting this: Programs not opening

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

#4 2017-11-23 15:41:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Not sure how to begin troubleshooting this: Programs not opening

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

#5 2017-11-24 21:57:12

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: Not sure how to begin troubleshooting this: Programs not opening

WorMzy wrote:

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

#6 2017-11-24 21:58:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Not sure how to begin troubleshooting this: Programs not opening


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-11-25 03:06:27

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: Not sure how to begin troubleshooting this: Programs not opening

Docbroke wrote:

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

#8 2017-11-25 03:11:55

loqs
Member
Registered: 2014-03-06
Posts: 17,368

Re: Not sure how to begin troubleshooting this: Programs not opening

The hostname of localhost is not considered valid and can be replaced by a hostname supplied by dhcp.

Offline

#9 2017-11-25 03:36:16

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: Not sure how to begin troubleshooting this: Programs not opening

So, I changed my hostname and everything works as intended.

What is it about opening programs that my hostname is required?

Offline

#10 2017-11-25 03:58:19

loqs
Member
Registered: 2014-03-06
Posts: 17,368

Re: Not sure how to begin troubleshooting this: Programs not opening

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

Board footer

Powered by FluxBB