Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix Domain Socket #1615

Closed
sehHeiden opened this issue Sep 27, 2017 · 9 comments
Closed

Unix Domain Socket #1615

sehHeiden opened this issue Sep 27, 2017 · 9 comments

Comments

@sehHeiden
Copy link

Hi,

now every time I try to open Geany I get the error message that translates to somewhat like: "Geany tried to use the Unix domain Socket of another instance.

Only changes since yesterday installed anaconda for Python 3, 64-bit...

Platform : Xubuntu 16.04
geany 1.27 (kompiliert am 2016-04-17 mit GTK 2.24.30, GLib 2.48.0)

@elextr
Copy link
Member

elextr commented Sep 28, 2017

Are you running Geany as root?

@sehHeiden
Copy link
Author

No, I was not!

@eht16
Copy link
Member

eht16 commented Oct 5, 2017

Is the socket file on a filesystem which does not support file ownerships? E.g. a CIFS/SMB mount or a FAT/NTFS filesystem?

The socket file is stored in $TMPDIR, which is usually /tmp.
Can you post the contents of Help->Debug Messages of a running Geany instance?
Also post the output of :

stat -l ~/.config/geany/*socket*
stat `realpath ~/.config/geany/*socket*`

@elextr
Copy link
Member

elextr commented Oct 7, 2017

@eht16 the thing that matters is the location of the socket link, not the socket itself, see #1411.

@Meresmata can you check the type of filesystem where your configuration is stored (or if you don't specify it with -c, then the filesystem where your home directory is stored).

@sehHeiden
Copy link
Author

Hi,
at first as partion I use a crypt-luks.

@eht16

stat ~/.config/geany/socket output is:

Datei: '/home/basti/.config/geany/geany_socket_TravelMate-B117-M__0' -> '/tmp/geany_socket.7da22a6e'
Größe: 26 Blöcke: 8 EA Block: 4096 symbolische Verknüpfung
Gerät: 2eh/46d Inode: 3288257 Verknüpfungen: 1
Zugriff: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Zugriff : 2017-09-27 02:19:41.900293165 +0200
Modifiziert: 2017-09-27 02:19:41.900293165 +0200
Geändert : 2017-09-27 02:19:41.900293165 +0200
Geburt : -

Sorry (in German)

stat realpath ~/.config/geany/*socket*

stat: Aufruf von stat für '/tmp/geany_socket.7da22a6e' nicht möglich: Datei oder Verzeichnis nicht gefunden

(means file or directory not found)

@elextr Whose -c option?

Thanks, a lot!

@elextr
Copy link
Member

elextr commented Oct 9, 2017

It looks like Geany was not shut down properly and it has left a socket link in your config directory ~/.config/geany/geany_socket_*this part varies*, make sure all Geanys are closed then delete that link, and try again.

@sehHeiden
Copy link
Author

I tried to delete it. Can you specify in more details, what to delete?

@sehHeiden
Copy link
Author

@elextr thanks alot. I tried it out with krusader. That worked very well.

@daniel-barrows
Copy link

For future reference, the short version of this issue is that it is almost always caused by running geany via sudo on systems which have configured sudo not to change $HOME, and that it can be resolved by closing geany and then running this in a terminal:

rm ~/.config/geany/geany_socket*

Previously reported in #294 and #1411
Long discussion of the issue at #1150
Request for more user-friendly recovery from the issue at #2102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants