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

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.

Related

Git push error: "unable to read askpass response from '', fatal: could not read Username for '': Device not configured"

I'm using MacBook andAndroid Studio.
When I tried to push to the remote repo I came across on this error:
Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
Caused by: java.net.SocketException: Unexpected end of file from server
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:27)
... 1 more
error: unable to read askpass response from '/.../.../Library/Caches/Google/AndroidStudio2021.2/tmp/intellij-git-askpass-local.sh'
fatal: could not read Username for 'https://gitlab-sfo.xxx.net': Device not configured
I tried:
Confirm Use credential helper in the Android Studio settings
Invalidate caches and restart.
It didn't help. Any suggestions?
I was changing my password few weeks ago, maybe this causes issue?

Facing Appium error: Error getting device API level

These are the errors I got, as a test is done on cucumber, appium for mobile testing. I used windows and eclipse (cucumber) and I got these errors, before it was running
Failed to Create Session. The session identified by fca400..... is not known
and when I ran
adb uninstall io.appium.uiautomator2.server; adb uninstall io.appium.uiautomator2.server.test; adb uninstall io.appium.unlock (was throwing error); adb uninstall io.appium.settings
I got the following error
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\Diego\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 1115fbab02003004 shell getprop ro.build.version.sdk' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability

Bitvise : the ssh session has terminated with error. reason flowsocketreader: Error receiving bytes. Windows error 10054

I'm using Debian and connecting it to Bit vise SSH server, I configured everything is /etc/ssh/sshd_config but when I try to connect using root and its password I get this Error:
The SSH session has terminated with error. Reason: FlowSocketReader: Error receiving bytes. Windows error 10054: An existing connection was forcibly closed by the remote host.
Is there anyway to fix this? I've been searching all night please help

Chef-server-ctl reconfigure/ Creating Admin User on chef server

I am fairly new to Linux (and brand new to chef) and I have ran into an issue when setting up my chef server. I am trying to create an admin user with the command
sudo chef-server-ctl user-create admin Admin Ladmin admin#example.com
examplepass -f admin.pem
but after I keep getting this error:
ERROR: Connection refused connecting...
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refused
connecting to https://..., giving up
Check your knife configuration and network settings
I also noticed that when I ran chef-server-ctl I got this output:
[2016-12-21T13:24:59-05:00] ERROR: Running exception handlers Running
handlers complete
[2016-12-21T13:24:59-05:00] ERROR: Exception
handlers complete Chef Client failed. 0 resources updated in 01 seconds
[2016-12-21T13:24:59-05:00] FATAL: Stacktrace dumped to
/var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-12-21T13:24:59-05:00] FATAL: Please provide the contents of the
stacktrace.out file if you file a bug report
[2016-12-21T13:24:59-05:00] FATAL:
Chef::Exceptions::CannotDetermineNodeName: Unable to determine node
name: configure node_name or configure the system's hostname and fqdn
I read that this error is due to a prerequisite mistake but I'm uncertain as to what it means or how to fix it. So any input would be greatly appreciated.
Your server does not have a valid FQDN (aka full host name). You'll have to fix this before installing Chef server.

pgadmin3 connect to server failed

I just installed pgadmin3, when iam trying to connect to a server it throws error like this,.
(pgadmin3:8963): GLib-GObject-WARNING **: invalid cast from `GtkFileChooserButton' to `GtkBin'
(pgadmin3:8963): Gtk-CRITICAL **: IA__gtk_widget_modify_style: assertion `GTK_IS_WIDGET (widget)' failed
How to resolve this?
Thanks in advance

Resources