You are not logged in.

#1 2015-01-01 22:07:49

sandric
Member
From: Ukraine, Dnipropetrovsk
Registered: 2011-03-22
Posts: 15

stderr disappeared

Hi, my problem is too strange, but I'll try to explain it. Im using arch with xmonad, and today, after logging in the session from tty, startx command just didn't do anything. I looked in Xorg.log and saw such error "xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted". After some frustration I just tried it with sudo, system started trying to load, but then nothing again, just tty. And then I noticed that there's no actually errors in terminal, after inputting non existing commands, etc. Also, I found out that it may be the case for previous error with Xorg.

The thing is I don't know why is it no stderr in terminal, either is it redirected somehow, or just stopped work somehow. So, is anybody know is there a way to detect what process/config does such redirection, or check if standart error processing working at all?

Offline

#2 2015-01-01 23:09:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: stderr disappeared

sandric wrote:

After some frustration I just tried it with sudo

Break that habit before you break your system.

Is the stderr redirect in place after you log back in, or is it only after trying to start X?  Startx or some other part of X starting does redirect all the standard streams now - many users still need to use `reset` after exiting X, or they can log out and in again.

If the redirect is in place before you try to start X, then you should look into your shell configuration files and/or see if the same happens if you log in as root (to the tty, not X).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-01-02 02:21:30

sandric
Member
From: Ukraine, Dnipropetrovsk
Registered: 2011-03-22
Posts: 15

Re: stderr disappeared

Ok, I got it. The thing was in my fish shell config file... I added those strings to my fish config file

# in ~/.config/fish/config.fish
# Load the default rubies
 
if test -z $rvm_bin_path
  exec bash --login -c "exec fish"
end

as described on rvm official site. After commenting them out, I logged out and in again, now everything works. Don't know what is the problem thou, the same config works on my osx 10.10 system, too lazy to look in error log now, so this one should be solved. Thanks Trilby for trying to help.

Offline

Board footer

Powered by FluxBB