Comments (13)
Yes, it is sometimes necessary to create some shell scripts. That is done in /tmp by default as I assumed that users would have write access to that. Does your user not have any rights or just not for /tmp ?
How exactly does the connection chain look like here? Is it possible to create an elevated shell environment first, and create the ssh connection in that so that everything is done as root?
from xpipe.
Correct this user does not have permissions other then its home directory other then elevating with sudo. I just noticed even when trying to connect with a standard shell now I'm getting the below. maybe placing the scripts in a .xpipe
folder within the user directory would be a better all rounder solution?
io.xpipe.core.process.ProcessOutputException: Process returned exit code 1:
-bash: line 13: /tmp/xpipe/exec/exec-762986757.sh: Permission denied
at io.xpipe.core.process.ProcessOutputException.of(ProcessOutputException.java:34)
at io.xpipe.ext.proc.a.a(SourceFile:280)
at io.xpipe.ext.proc.a.discardOrThrow(SourceFile:346)
at io.xpipe.core.process.CommandControl.execute(CommandControl.java:41)
at io.xpipe.app.util.ScriptHelper.createExecScript(ScriptHelper.java:117)
at io.xpipe.app.util.ScriptHelper.constructInitFile(ScriptHelper.java:76)
at io.xpipe.ext.procx.g.prepareIntermediateTerminalOpen(SourceFile:98)
at io.xpipe.ext.procx.g.prepareTerminalOpen(SourceFile:89)
at io.xpipe.core.store.ShellStore.prepareLaunchCommand(ShellStore.java:27)
at io.xpipe.ext.base.action.LaunchAction$Action.execute(LaunchAction.java:29)
at io.xpipe.app.comp.storage.store.StoreEntryWrapper.executeDefaultAction(StoreEntryWrapper.java:197)
at io.xpipe.app.comp.storage.store.StoreEntryComp.lambda$createSimple$1(StoreEntryComp.java:77)
at io.xpipe.app.util.ThreadHelper.lambda$runFailableAsync$0(ThreadHelper.java:18)
at java.lang.Thread.run(Thread.java:1589)
from xpipe.
Yes that would make sense, I just went for /tmp as these are indeed intended to be temporary files. I think a good solution would be a dynamic detection, i.e. check if we have permissions for /tmp/ and if not, go for something like ~/.xpipe/tmp. Where exactly the directory resides doesn't really matter in the end.
from xpipe.
yeah that sounds like a perfect solution!
from xpipe.
Can you try whether this build works for you: https://github.com/xpipe-io/xpipe_staging/releases/tag/1.3.2
It should fall back to a subdirectory in the user home in case it doesn't have all permissions for /tmp.
from xpipe.
still getting the below =[
io.xpipe.core.process.ProcessOutputException: Process returned exit code 1:
-bash: line 27: /tmp/xpipe/exec/askpass-1331980410.sh.1.txt: Permission denied
at io.xpipe.core.process.ProcessOutputException.of(ProcessOutputException.java:34)
at io.xpipe.ext.proc.a.a(SourceFile:280)
at io.xpipe.ext.proc.a.discardOrThrow(SourceFile:346)
at io.xpipe.core.process.CommandControl.execute(CommandControl.java:41)
at io.xpipe.ext.procx.dialect.c.prepareAskpassContent(SourceFile:691)
at io.xpipe.app.util.ScriptHelper.createAskPassScript(ScriptHelper.java:161)
at io.xpipe.app.util.ScriptHelper.createAskPassScript(ScriptHelper.java:139)
at io.xpipe.app.util.ScriptHelper.createAskPassScript(ScriptHelper.java:127)
at io.xpipe.ext.procx.util.a.a(SourceFile:45)
at io.xpipe.ext.procx.util.a.a(SourceFile:118)
at io.xpipe.ext.procx.g.prepareIntermediateTerminalOpen(SourceFile:107)
at io.xpipe.ext.procx.g.prepareTerminalOpen(SourceFile:89)
at io.xpipe.core.store.ShellStore.prepareLaunchCommand(ShellStore.java:27)
at io.xpipe.ext.base.action.LaunchAction$Action.execute(LaunchAction.java:29)
at io.xpipe.app.comp.storage.store.StoreEntryWrapper.executeDefaultAction(StoreEntryWrapper.java:197)
at io.xpipe.app.comp.storage.store.StoreEntryComp.lambda$createSimple$1(StoreEntryComp.java:77)
at io.xpipe.app.util.ThreadHelper.lambda$runFailableAsync$0(ThreadHelper.java:18)
at java.lang.Thread.run(Thread.java:1589)
from xpipe.
Hmm ... what is the exit code of test -r /tmp && test -w /tmp && test -x /tmp
for your user? That is what this build is checking
from xpipe.
looks like exit code for that is 0
. So I checked again and the user does have permissions to the /tmp
folder(my bad there, I should have fully checked that 🤦♂️) but it looks like the files within the folder are owned by root
? do you think that could be causing the issue?
from xpipe.
I see, I will just rewrite the entire tempory directory logic to be bullet-proof as there are also a few other issues with it.
from xpipe.
Alright, I updated the build at https://github.com/xpipe-io/xpipe_staging/releases/tag/1.3.2 to now be more robust with regards to temporary directory handling. So you can try that out
from xpipe.
We are golden now!
PS: If anyone else does have this issue you will first need to manually sudo rm -rf /tmp/xpipe
to remove stuff that was previously created, or you will still have the previous errors.
from xpipe.
Your suggestion of putting the files into the user home directory actually makes more sense, so I switched the logic around in 1.3.2.. It will put the files into ~/.xpipe/temp by default and if by some weird configuration you don't have permissions for that directory, it will use /tmp.
(In case you downloaded the staging release, note that it is a incompatible version to the normal releases and won't get updates. So you would have to download and install a proper release again. I am in the process of completely separating both types of installation so in the future you can have staging and normal releases side by side.)
from xpipe.
Awesome ok sounds good! I'll do a manual re-install then!
from xpipe.
Related Issues (20)
- custom script naming convention HOT 3
- Handle double click for host bands. HOT 2
- PTB: Dont interract with system gives error despite with valid licence (9.0.4) HOT 1
- [REQUEST] Danish translation 🇩🇰 HOT 4
- Mac/Linux to Windows Connection | Shell opener command was unsuccessful: client_loop: send disconnect: Broken pipe HOT 8
- SSH Tunnel fails to connect when using ssh config from WSL2 HOT 1
- No matching key exchange HOT 5
- UI modal clipped bug in XFCE HOT 1
- FR: Option to move files in the integrated file manager HOT 2
- Existing Connections on ssh user config HOT 8
- Connection tree with sub-labels with the same name HOT 2
- Enabled Pro Preview but a feature is greyed HOT 3
- First sync HOT 6
- [Homebrew] Warning: No checksum defined for cask 'xpipe', skipping verification HOT 3
- [macOS] Getting jave exception when trying to launch ssh connection HOT 5
- WIndows to Windows OpenSSH: Shell opener command was unsuccessful: client_loop: send disconnect: Connection reset HOT 13
- NoMachine Integration HOT 1
- Strange WM_CLASS(STRING) HOT 5
- Bug Copying files HOT 2
- Tabby reports issue when connecting to Calix Router HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xpipe.