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

[Bug] Couldn't connect to socket #5

Closed
ThatOneCalculator opened this issue Jul 12, 2022 · 45 comments
Closed

[Bug] Couldn't connect to socket #5

ThatOneCalculator opened this issue Jul 12, 2022 · 45 comments

Comments

@ThatOneCalculator
Copy link
Contributor

$ hyprctl hyprpaper wallpaper DP-1,/home/kainoa/Pictures/ghibli/02-modified.png
Couldn't connect to /tmp/hypr/c0c75db62188667a4f42aef1ae6bfd8034093af7_1657590890/.hyprpaper.sock. (3)
@ThatOneCalculator
Copy link
Contributor Author

cc @vaxerski this still happens

@vaxerski
Copy link
Member

how are you launching hyprpaper

@vaxerski
Copy link
Member

image

workz for me

@ThatOneCalculator
Copy link
Contributor Author

I launched it from CLI (now it works for some reason) but it doesnt actually set the wallpaper

hyprctl hyprpaper wallpaper DP-1,/home/kainoa/Pictures/ghibli/02-modified.png
ok

image

@vaxerski
Copy link
Member

yes bug

author of the pr that caused it is making a patch

@vaxerski
Copy link
Member

fixed

@daVinci13
Copy link

I have the same error. Any fixes?

@vaxerski
Copy link
Member

it means that either hyprpaper is not running or something has gone really wrong

@Ultrahalf
Copy link

I'm facing same issue

  hyprctl hyprpaper preload "/home/ultrahalf/Pictures/wallpapers/004.jpg" && hyprctl hyprpaper wallpaper "eDP-1,/home/ultrahalf/Pictures/wallpapers/004.jpg"
Couldn't connect to /tmp/hypr/f27873a6f06dc2f87600edb890f3c38298bfb55f_1684063183/.hyprpaper.sock. (3)
Couldn't connect to /tmp/hypr/f27873a6f06dc2f87600edb890f3c38298bfb55f_1684063183/.hyprpaper.sock. (3)

@Ultrahalf
Copy link

update
maybe this happened because the hyprpaper daemon wasn't running
now after adding exec-once=hyprpaper in hyprland config it seems to work perfectly

Sorry

@harryhanYuhao
Copy link

I encountered the same problem, which was fixed after restarting hyprland.

@realfanyujun
Copy link

realfanyujun commented Nov 11, 2023

I have the same problem. and I am sure that I have added exec-once=hyprpaper in the hyprland.conf. I restarted hyprland session for several times. The hyprpaper daemon just doesn't run anyway.

@filippoaceto22
Copy link

I have this bug, was anyone able to solve it?

@rmundat
Copy link

rmundat commented Dec 22, 2023

I have this bug, was anyone able to solve it?

If you preload and apply the wallpaper through hyprpaper.conf it works but it doesn't with hyprctl.

for some reason it fails to create hyprpaper socket when hyprpaper is executed through hyprctl.

@SymphonySimper
Copy link

Make sure ipc is set to on in your hyprpaper.conf.

ipc = on

@shub39
Copy link

shub39 commented May 7, 2024

Facing the same issue here after the recent hyprpaper update

Couldn't connect to /tmp/hypr/fe7b748eb668136dd0558b7c8279bfcd7ab4d759_1715048344/.hyprpaper.sock. (3)

@Studywarscat
Copy link

Facing the same issue in Fedora 40 kde 6. After the new hyprpaper update🥲

@shub39
Copy link

shub39 commented May 7, 2024

Fixed it by removing this line in my config file and rebooting

env = WLR_RENDERER,vulkan

i dont understand why it works tho....

@Studywarscat
Copy link

There is no such line in my config. I added and yet it did nothing. I am running it in a live environment to test it before installing does that have
any effect?

@vaxerski
Copy link
Member

vaxerski commented May 7, 2024

if you updated hyprpaper, you need to update hyprland to 0.40.0 as well otherwise IPC won't work due to the socket location changes.

@Studywarscat
Copy link

I did sudo dnf install hyprland and it installed hyprpaper along with it as a dependency.

@vaxerski
Copy link
Member

vaxerski commented May 7, 2024

fedora's hyprland in the repos is at 0.39.1. read what I said.

@Studywarscat
Copy link

Alright

@shub39
Copy link

shub39 commented May 7, 2024

https://copr.fedorainfracloud.org/coprs/solopasha/hyprland/

you can use this copr repo

@linuxmobile
Copy link

Hi, same problem on Hyprland in NixOS.

Couldn't connect to /tmp/hypr/_1715209695_887781441/.socket.sock. (3)

I'm using swww instead of hyprpaper.

@mallar-B
Copy link

mallar-B commented May 9, 2024

the socket is starting at /run/1000/hypr/"some random name"/.hyprpaper.sock

So when i send a hyprctl hyprpaper request it tries to find the socket at /tmp/hypr/"some random name"/.hyprpaper.sock

I have tried to create a symlink from the /tmp socket to the /run socket. But it did not work

@KorigamiK
Copy link

I still get this error

$ hyprctl hyprpaper listloaded
Couldn't connect to /tmp/hypr/fe7b748eb668136dd0558b7c8279bfcd7ab4d759_1715365729/.hyprpaper.sock. (3)

@RLB2310
Copy link

RLB2310 commented May 11, 2024

same error after last update
[LOG] hyprpaper socket started at /run/user/1000/hypr/af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715410174/.hyprpaper.sock (fd: 4)

@soufhehe
Copy link

Fixed it by adding this line in my config file and restarting hyprland.

exec-once = ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr &

@RLB2310
Copy link

RLB2310 commented May 14, 2024

Fixed it by adding this line in my config file and restarting hyprland.

exec-once = ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr &

Received: Couldn't connect to /tmp/hypr/af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715670330/.hyprpaper.sock. (3)

Looking into it

@Lederstrumpf
Copy link

Fixed it by adding this line in my config file and restarting hyprland.
exec-once = ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr &

welp: Couldn't connect to /tmp/hypr/af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715670330/.hyprpaper.sock. (3)

Ran into the same - the issue is it's not creating the temp directory.

Assuming tmp_dir=af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715670330

I can workaround by

mkdir `/tmp/hypr/$tmp_dir`
cd $XDG_RUNTIME_DIR/hypr/$tmp_dir
ln -s /tmp/hypr/$tmp_dir/.hyprpaper.sock .

And then hyprctl can find hyprpaper's socket. But that's of course only temporary workaround.

@Lederstrumpf
Copy link

welp: Couldn't connect to /tmp/hypr/af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715670330/.hyprpaper.sock. (3)

Ok, found root cause of my issue, and yours is likely the same/similar:
I was on hyprpaper 0.6.0 (latest version currently on nixpkgs/master), still tries to create the socket under /tmp/hypr. The socket directory has been updated as of d50f0ed - my workaround just linked the old to the new location. Solution is to update hyprpaper - it's working on 0.7.0 for me now.

@RLB2310
Copy link

RLB2310 commented May 21, 2024

welp: Couldn't connect to /tmp/hypr/af3a61a4e437fe728ef69c2739cae79e5a6254c0_1715670330/.hyprpaper.sock. (3)

Ok, found root cause of my issue, and yours is likely the same/similar: I was on hyprpaper 0.6.0 (latest version currently on nixpkgs/master), still tries to create the socket under /tmp/hypr. The socket directory has been updated as of d50f0ed - my workaround just linked the old to the new location. Solution is to update hyprpaper - it's working on 0.7.0 for me now.

The temporary workaround works perfectly. Already on 0.7.0 from the Arch AUR. Thanks for the help

EightBitApple added a commit to EightBitApple/dotfiles that referenced this issue Jun 19, 2024
Implemented a script which sets one of two wallpapers depending on
whether it's day or night. A SystemD timer runs a service every 30
minutes, which in turns runs the aforementioned script.

Hyprland didn't seem to run the script successfully on startup. Going by
the script's output in the SystemD service it seems that the Hyprpaper
socket is not created in time for the script to run. This is remedied by
adding a 3 second delay before the script runs, in which a greyscale
version of the day wallpaper variant is shown in the meantime.

Version 0.7.0 of Hyprpaper from the unstable branch of nixpkgs is being
used since a change to socket location in hyprpaper means that IPC does
not work on 0.6.0, the version currently in the stable branch.
hyprwm/hyprpaper#5 (comment)
@movva-gpu
Copy link

Well, I tried the said workarounds, but still got

Couldn't connect to /run/user/1000/hypr/9e781040d9067c2711ec2e9f5b47b76ef70762b3_1719154863_1039262757/.hyprpaper.sock. (3)%

@movva-gpu
Copy link

oh and, i'm on arch btw x)

@RLB2310
Copy link

RLB2310 commented Jun 23, 2024

oh and, i'm on arch btw x)

The main problem was not being on the newest version. If you are on the new version check if the temporary directory is being made

@movva-gpu
Copy link

i'm on the latest version, the temporary dir is being made too :/

@RLB2310
Copy link

RLB2310 commented Jun 23, 2024

i'm on the latest version, the temporary dir is being made too :/

Probably an unrelated issue then.

@movva-gpu
Copy link

ah

@movva-gpu
Copy link

okay

@SomniaUmbra
Copy link

SomniaUmbra commented Jun 30, 2024

Well, I tried the said workarounds, but still got

Couldn't connect to /run/user/1000/hypr/9e781040d9067c2711ec2e9f5b47b76ef70762b3_1719154863_1039262757/.hyprpaper.sock. (3)%

I was facing the same issue and adding the following to my hyprland.conf:
exec-once = hyprpaper (sorry for the wrong name earlier)

worked flawlessly, thanks to #5 (comment)

@movva-gpu
Copy link

Okay, I'll try that

@enotspace
Copy link

enotspace commented Sep 16, 2024

hyprpaper -n
it`s working
(-n, --no-fractional)

@RLB2310
Copy link

RLB2310 commented Sep 16, 2024

hyprpaper -n it`s working (-n, --no-fractional)

Might be a separate issue. The fractional scaling is simply just how the image is being scaled.

Should've been fixed.

@enotspace
Copy link

hyprpaper -n it`s working (-n, --no-fractional)

Might be a separate issue. The fractional scaling is simply just how the image is being scaled.

Should've been fixed.

Yeah, thanks my image was smaller than screen resolution

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

No branches or pull requests