xpipe-io / xpipe

Your entire server infrastructure at your fingertips
https://xpipe.io
Apache License 2.0
2.3k stars 66 forks source link

Can't save files with new 9.2 version most of the time #267

Closed pythongod closed 1 month ago

pythongod commented 1 month ago

Error Messages: Process returned exit code 1: dd: failed to open '/home/jack/docker/homepage/config/services.yaml': Permission denied -bash: line 37: /home/jack/docker/homepage/config/services.yaml: Permission denied

io.xpipe.core.process.ProcessOutputException: Process returned exit code 1: dd: failed to open '/home/jack/docker/homepage/config/services.yaml': Permission denied -bash: line 37: /home/jack/docker/homepage/config/services.yaml: Permission denied at io.xpipe.core.process.ProcessOutputException.of(ProcessOutputException.java:53) at io.xpipe.ext.proc.a.a(SourceFile:432) at io.xpipe.ext.proc.a$2.close(SourceFile:115) at io.xpipe.app.util.FileBridge.lambda$openIO$5(FileBridge.java:206) at io.xpipe.app.util.FileBridge.handleWatchEvent(FileBridge.java:99) at io.xpipe.app.util.FileBridge.lambda$init$0(FileBridge.java:59) at io.xpipe.app.core.AppFileWatcher$WatchedDirectory.handleWatchEvent(AppFileWatcher.java:189) at io.xpipe.app.core.AppFileWatcher$WatchedDirectory.update(AppFileWatcher.java:154) at io.xpipe.app.core.AppFileWatcher.lambda$startWatcher$1(AppFileWatcher.java:75) at java.lang.Thread.run(Thread.java:1583)

I'm on mac installed with homebrew

crschnick commented 1 month ago

So according to the error, it can't open the file. If you open a terminal in that directory, and try to edit the files manually, does that also happen? What are the file permissions on that file? Is that a local file or remote?

pythongod commented 1 month ago

It opens the file but can't save it.

i can open that remote file with nano and save only with sudo nano.

permissions are -rw-rw-r-- 1 root root (i open as jack)

if i take a file that is owned by Jack -rw-rw-r-- 1 jack jack I can open and save it without an error.

Case 1 was possible with 9.0 and 9.1 without an error.

crschnick commented 1 month ago

So how are you opening the file browser session? You should be able to open any directory as root in xpipe. If you are opening it as a normal user, then according to the permissions this fails as intended.

There should have been no changes to this behavior in 9.2, at least not intentional. Can you try downgrading to 9.1, maybe by downloading a separate portable version, and check this in 9.1?

pythongod commented 1 month ago

Get the same error on 9.1 portable. Probably a problem on my end. Closing. Sorry.

crschnick commented 1 month ago

Yeah so you would either have to change the owner of that file or use the button in the file browser to open a directory as root and edit it in that session.