I've been developing locally by connecting to Vagrant (vartualbox) with vscode remote-ssh.
But when I restarted vagrant and tried to connect remotely
I get "Time limit reached" and "Could not fetch remote environment" and I can't connect.
I can connect with "vagrant ssh" and "ssh command", but I can't.
error log
[2020-09-11 02:37:51.947] [renderer3] [error] [remote-connection] The time limit has been reached for a connection. Error:
[2020-09-11 02:37:51.947] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:51.947] [renderer3] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-09-11 02:37:51.947] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.061] [renderer3] [error] Time limit reached: Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.221] [renderer3] [error] [remote-connection] The time limit has been reached for a connection. Error:
[2020-09-11 02:37:52.222] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.222] [renderer3] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-09-11 02:37:52.222] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.258] [renderer3] [error] Could not fetch remote environment: Error: Could not fetch remote environment
at d.start (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5022:70)
at async k.createProcess (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5039:827)
[02:37:21.902] Starting forwarding server. localPort 55555 -> socksPort 54444 -> remotePort 43333
[02:37:21.902] Forwarding server listening on 55555
[02:37:21.902] Waiting for ssh tunnel to be ready
[02:37:21.904] [Forwarding server 55555] Got connection 0
[02:37:21.905] Tunneled remote port 43333 to local port 55555
[02:37:21.905] Resolved "ssh-remote+ruby02" to "127.0.0.1:55555"
[02:37:21.921] ------
[02:37:21.948] [Forwarding server 55555] Got connection 1
[02:37:21.949] [Forwarding server 55555] Got connection 2
[02:38:55.872] Picking SSH host
Try to do this:
Login to your remote machine
Get the PID of all vscode-server proccess running in your remote machine
Kill them
Try to login to your remote machine again via vscode ssh extension
Related
On running the command $EAP_HOME/bin/standalone.sh -c standalone-full.xml -b I'm getting error like
12:06:15,197 INFO
[org.kie.server.controller.websocket.client.WebSocketKieServerControllerImpl]
(KieServer-ControllerConnect) Kie Server points to non Web Socket
controller 'http://localhost:8080/business-central/rest/controller',
using default REST mechanism 12:06:15,198 WARN
[org.kie.server.services.impl.controller.DefaultRestControllerImpl]
(KieServer-ControllerConnect) Exception encountered while syncing with
controller at
http://localhost:8080/business-central/rest/controller/server/default-kieserver
error Connection refused (Connection refused) 12:06:19,805 WARN
[org.kie.server.client.impl.AbstractKieServicesClientImpl]
(Thread-125) Marking endpoint
'http://localhost:8080/kie-server/services/rest/server' as failed due
to Connection refused (Connection refused) 12:06:19,805 WARN
[org.kie.server.client.impl.AbstractKieServicesClientImpl]
(Thread-125) Cannot invoke request - 'No available endpoints found'
12:06:24,812 WARN
[org.kie.server.client.impl.AbstractKieServicesClientImpl]
(Thread-125) Marking endpoint
'http://localhost:8080/kie-server/services/rest/server' as failed due
to Connection refused (Connection refused) 12:06:24,812 WARN
[org.kie.server.client.impl.AbstractKieServicesClientImpl]
(Thread-125) Cannot invoke request - 'No available endpoints found'
on bind address, business central is running but I cannot find any execution server
but when I run the same command without bind address like
./standalone.sh -c standalone-full.xml
All are working properly
What would be the issue when using bind address
I'm using
rhpam 7.12.0
jboss eap 7.4.0
I've done default configuration. And I didn't change any configuration
We are running Jenkins in Open-shift and its fully up and running. Now, when trying to add a static agents we are getting the 404 not found error.
Agent startup script:
java -jar remoting_dslave.jar -jnlpUrl http://xxx-xxx-xxx.apps.ocp1.uat.dbs.com/computer/xxxxxxxx2a/jenkins-agent.jnlp -secret xxxxxxxxxxxxxxxxxxxxxx -workDir "/dcifent/JenkinsSlaves/ci3_dynamicSlave"
Getting the below error:
WARNING: Connection refused (Connection refused)
Jun 07, 2022 11:17:23 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: http:/xxxxxxxxx.apps.ocp1.uat.dbs.com/ provided port:8080 is not reachable
java.io.IOException: http://xxxxxxxxx.apps.ocp1.uat.dbs.com/ provided port:8080 is not reachable
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:311)
at hudson.remoting.Engine.innerRun(Engine.java:689)
at hudson.remoting.Engine.run(Engine.java:514)
Creted new router in OpenShift for port 8080 updated the startup script as below
java -jar agent.jar -jnlpUrl http://routefor8080.apps.ocp1.uat.dbs.com/computer/xxxxxxxx2a/jenkins-agent.jnlp -secret xxxxxxxxxxxxxxxxx -workDir "/dcifent/JenkinsSlaves/ci3_dynamicSlave"
Getting the different error now.
Failed to obtain http://routefor8080.apps.ocp1.uat.dbs.com/computer/xxxxxxxx2a/jenkins-agent.jnlp?encrypt=true
java.io.IOException: Failed to load http://routefor8080.apps.ocp1.uat.dbs.com/computer/xxxxxxxx2a/jenkins-agent.jnlp?encrypt=true: 404 Not Found
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:517)
at hudson.remoting.Launcher.run(Launcher.java:345)
at hudson.remoting.Launcher.main(Launcher.java:296)
Waiting 10 seconds before retry
How can i connect static agents to dynamic Jenkins, can someone please help?
I followed this YY video: https://youtu.be/ZB3GLtQvgME?t=2003 but cannot 'chainlink node start'
Running 'chainlink help' is fine. Installation is Ok.
Everything before the video checks out.
Need help with 'chainlink node start' Error:
Jons-MacBook-Pro:.environments jon$ chainlink node start
2022-03-20T20:17:16.999-0700 [INFO] Starting Chainlink Node 1.1.1 at commit
4dba946389cbf063ce374eb832007c3367abe3dc
SHA=4dba946389cbf063ce374eb832007c3367abe3dc Version=1.1.1
logger=1.1.1#4dba946.RunNode
2022-03-20T20:17:17.004-0700 [ERROR] Cannot boot Chainlink: opening db: failed to
open db: failed to connect to `host=/private/tmp user=jon database=`: server
error (FATAL: unrecognized configuration parameter "?application_name" (SQLSTATE
42704)) err=Cannot boot Chainlink: opening db:
failed to open db: failed to connect to `host=/private/tmp user=jon
database=`: server error (FATAL: unrecognized configuration parameter "?
application_name" (SQLSTATE 42704)) errVerbose=opening db: failed to open db: failed
to connect to `host=/private/tmp user=jon database=`: server error (FATAL:
unrecognized configuration parameter "?application_name" (SQLSTATE 42704))
Cannot boot Chainlink
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/Users/jon/chainlink/core/cmd/local_client.go:52
github.com/urfave/cli.HandleAction
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/command.go:173
github.com/urfave/cli.(*App).RunAsSubcommand
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/app.go:405
github.com/urfave/cli.Command.startApp
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/command.go:372
github.com/urfave/cli.Command.Run
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/command.go:102
github.com/urfave/cli.(*App).Run
/Users/jon/go/pkg/mod/github.com/urfave/cli#v1.22.5/app.go:277
main.Run
/Users/jon/chainlink/core/main.go:25
main.main.func1
/Users/jon/chainlink/core/main.go:18
github.com/smartcontractkit/chainlink/core/recovery.ReportPanics
/Users/jon/chainlink/core/recovery/recover.go:17
main.main
/Users/jon/chainlink/core/main.go:17
runtime.main
/usr/local/go/src/runtime/proc.go:255
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1581 logger=1.1.1#4dba946
Cannot boot Chainlink: opening db: failed to open db: failed to connect to
`host=/private/tmp user=jon database=`: server error (FATAL: unrecognized
configuration parameter "?application_name" (SQLSTATE 42704))
Jons-MacBook-Pro:.environments jon$
Thank you!
This is the .env
ETH_URL=wss://kovan.infura.io/ws/v3/fc5cd704c8d44cf3ac09d16d13687ab2
FEATURE_EXTERNAL_INITIATORS=true
LOG_LEVEL=debug
ETH_CHAIN_ID=42
MIN_OUTGOING_CONFIRMATIONS=2
LINK_CONTRACT_ADDRESS=
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*
DATABASE_URL=postgresql://localhost:5432/kovan_demo?sslmode=disable
DATABASE_TIMEOUT=0
FEATURE_FLUX_MONITOR=true
MINIMUM_CONTRACT_PAYMENT=0
CHAINLINK_DEV=true
This is what happened if I use Docker:
failed to open db: failed to connect to
host=localhost user=root database=kovan_demo: dial error (dial
tcp [::1]:5432: connect: cannot assign requested address)
Jons-MacBook-Pro:.environments jon$ docker run -p 6688:6688 -v
~/.chainlink-kovan:/chainlink -it --env-file=.env
smartcontract/chainlink:1.1.1 local n
2022-03-21T21:48:44.372Z [DEBUG] Initializing API credentials
cmd/client.go:636 file=/root/.chainlink/apicredentials
2022-03-21T21:48:44.373Z [INFO] Starting Chainlink Node 1.1.1 at
commit 11788e23888b2d60554720faa237dabc62b1b8e7
cmd/local_client.go:170
SHA=11788e23888b2d60554720faa237dabc62b1b8e7 Version=1.1.1
logger=RunNode
2022-03-21T21:48:44.373Z [WARN] Chainlink is running in
DEVELOPMENT mode. This is a security risk if enabled in
production. cmd/local_client.go:173 logger=RunNode
opening db: failed to open db: failed to connect to
`host=localhost user=root database=kovan_demo`: dial error (dial
tcp [::1]:5432: connect: cannot assign requested address)
Jons-MacBook-Pro:.environments jon$
When I use Wi-Fi to upload code through VS Code, it shows the following error. But if I use mobile network, it works.
[error] Error: Timeout while connecting to server
at Timeout._onTimeout (c:\Users\faraz\.vscode\extensions\liximomo.sftp-1.12.9\dist\extension.js:70:109790)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out :
connect#src/mongo/shell/mongo.js:374:17
#(connect):2:6
exception: connect failed
exiting with code 1
Everytime when I run mongo command , it says error connecting to 127.0.0.1:27017 caused by socket opeartion timed out.
Tried following many instructions given by peers , but it didn't work.
Hope I get rid of this by your instructions.
Thanks!
Reason: mongodb service is not running
Run mongodb service method:
Open the terminal and execute mongod -dbpath "D:\Program Files\MongoDB\data\db"
("D:\Program Files\MongoDB\data\db" is the directory you created to store data)
Open another terminal and execute mongo