how resolve fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.6SUNyz': Permission denied - permission-denied

<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.OVntXJ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.DygYJ9': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.6SUNyz': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.pOdNNZ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.cGU75p': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.uELMoQ': Permission denied
<E> fish: Unable to open temporary file '/opt/PhpStorm-191.6707.66/plugins/terminal/fish/fishd.tmp.xQyTHg': Permission denied

This is a long-standing bug in Intellij's fish integration.
Deactivate it in Tools -> Terminal -> "Shell Integration".

Related

Problem : Firefox / selenium.common.exceptions.TimeoutException: Message: Connection refused (os error 111)

Since I upgraded my ubuntu impish to jammy (22.04.1 LTS), I have problem in my python script using selenium with firefox (before it worked very well).
Below you will find the "generic" message of selenium trouble:
selenium.common.exceptions.TimeoutException: Message: Connection refused (os error 111)
And here you will find the result of the geckodriver.log:
1665336675615 geckodriver INFO Listening on 127.0.0.1:46459
1665336676102 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "47893" "-no-remote" "-profile" "/tmp/rust_mozprofilet2tISh"
mkdir: cannot create directory '/run/user/0': Permission denied
*** You are running in headless mode
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
(firefox:3302): dconf-CRITICAL **: 19:32:19.699: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
(firefox:3302): dconf-CRITICAL **: 19:32:19.737: unable to create directory '/run/user/0/snap.firefox/dconf': Permission denied. dconf will not work properly.
What I have done to "fix" this problem was to directly create the directory /run/user/0 with the full access (777).
After that the problem was stil here, it's not the same message, I have only this one:
*** You are running in headless mode
[GFX1-]: glxtest: Unable to open a connection to the X server
[GFX1-]: glxtest: libEGL initialize failed
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
and the selenium message is still the same:
selenium.common.exceptions.TimeoutException: Message: Connection refused (os error 111)
I found some similar problems on internet but nothing to help me to fix this one.
Thank you for your help.

Unable to transfer file from Arista switch to external machine

I am trying to transfer a file from Arista switch to an external machine using scp using pyeapi run_command.
Reference:
http://www.nycnetworkers.com/upgrade/copying-from-a-sftp-server/
Code:
import pyeapi
node = pyeayi.connect(transport='https', host='x.x.x.x', username='yyy', password='zzz', enable_pwd='xxx', return_node=True)
node.run_command(['copy flash:/file.log.gz scp://user:password#hostname/location/'], encoding='json')
But it throws the following error,
pyeapi.eapilib.CommandError: Error [1000]: CLI command 2 of 2 'copy flash:/file.log.gz scp:user:password#hostname/location/' failed: could not run command
[Error copying flash:/file.log.gz to scp:user:password#hostname/location/ (Warning: Permanently added 'hostname' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). lost connection)]

Can not put a bot for the server of the game Go

I can not put a bot for the server of the game Go.
I get this error
kl#ox:~/kgsBot/kgsGtp$ java -jar kgsGtp.jar pachi.config
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
sep 15, 2015 2:01:09 AM com.gokgs.client.gtp.GtpClient main
FINE: KGS GTP Client v3.5.20 starting up
sep 15, 2015 2:01:10 AM com.gokgs.client.gtp.GtpClient main
SEVERE: Fatal exception
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.gokgs.client.gtp.GtpClient.main(kgsgtp:918)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
What is the problem it?
From your stack trace,
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
Error=13 means that you don't have the execute permission for the file. Find out where pachi file is using find -name pachi and add the execute permission with chmod

permission denied while executing START-DFS.SH in Ubuntu

suresh#suresh-laptop:/$ usr/local/hadoop-2.6.0/sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
15/02/01 00:24:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on []
suresh#localhost's password:
localhost: mkdir: cannot create directory /usr/local/hadoop-2.6.0/logs': Permission denied
localhost: chown: cannot access/usr/local/hadoop-2.6.0/logs': No such file or directory
Please check these commands:
sudo adduser suresh sudo
chown -R /usr/local/hadoop-2.6.0
chmod -R 755 /usr/local/hadoop-2.6.0

The proper type library could not be found in the system registry (VS2012 RC)

I installed the 2012 RC on may 31, everything worked fine until today when I tried to install the TFS Power Tools Beta for TFS 11. Now every time I open VS2012 RC I'm greeted with this message:
"The proper type library could not be found in the system registry.
An Attempt to repair this condition failed because you do not have the permissions to write to the system registry or because the type library could not be loaded."
...
Every time I run VS2012 as a non admin user I get the warning. I uninstalled the Power Tools, repaired VS2012 and nothing.
I launched Process Monitor and found this:
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{65074F7F-63C0-304E-AF0A-D51741CB4A8D}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{65074F7F-63C0-304E-AF0A-D51741CB4A8D}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8} ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8} ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\ProxyStubClsid32 ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\ProxyStubClsid32 ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface\{D0EEAA62-3D30-3EE2-B896-A2F34DDA47D8}\TypeLib ACCESS DENIED
devenv.exe RegOpenKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegCreateKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
devenv.exe RegCreateKey HKCU\Software\Classes\Wow6432Node\Interface ACCESS DENIED
But I'm stuck, I don't know how to fix this permanently, any ideas?
Thanks
I had to manually give "Full Control" permission to my user in the registry.
Right click HKEY_CURRENT_USER, click permissions... and add your user with the "Full Control" option selected.

Resources