I'm getting issues in running nightwatch test cases in local configuration. For all browsers there's different issue which are listed as below: - nightwatch.js

Edge:
Error: An error occurred while retrieving a new session: "Unable to create new service: EdgeDriverService"
Chrome:
Error: An error occurred while retrieving a new session: "Unable to create new service: ChromeDriverService"
Firefox:
Error: An error occurred while retrieving a new session: "Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binale to find binary in default locatiory flag set on the command line"

This looks to me like a configuration issue. Assuming that you are using nightwatchjs without selenium, you need to ensure that the runner is able to find the chromedriver and geckodriver binaries. You can check my sample repo here. If you are using selenium, then you can check here.

Related

can't open pom.xml and application.properties in eclipse

I create a simple login program,
but when I tried to open application.properties to initialize the data base it won't,
and I found this error
"An error has occurred. See error log for more details.
Cannot invoke "org.eclipse.e4.core.contexts.IEclipseContext.activate()" because the return value of "org.eclipse.e4.ui.model.application.ui.basic.MPart.getContext()" is nullé
I installed some snapshots files but it doesn't work
and also I tried to write into the file directly from the notepad but also not working
this is the result when I try to open it enter image description here
I was too facing similar issue. Closing and opening the Eclipse again resolved my issue. My Eclipse version was
Version: 2022-09 (4.25.0)
Build id: 20220908-1902
Probably, try restarting the Eclipse by closing all the processes and applications related to Eclipse.
This was my error:
An error has occurred. See error log for more details.
Cannot invoke "org.eclipse.e4.core.contexts.IEclipseContext.activate()" because the return value of "org.eclipse.e4.ui.model.application.ui.basic.MPart.getContext()" is null

Error response from daemon: No such image: localstack/localstack:0.14.0

Recently I had this error
Error response from daemon: No such image: localstack/localstack:0.14.0
when setting up gnomock.
I was getting the error on this line
gmock, err = gnomock.Start(preset, gnomock.WithDebugMode(), gnomock.WithUseLocalImagesFirst())
The test is passing when I test on my machine, but when ran on gitlab's runners it was throwing the error I mention above.
The solution was to clear the cache of the runners.
The internet do not say much about this error. My theory is that because the mock was used in a sub package of the project (wrapped around), labstack got an update, and somehow that did not prop the docker images correctly.

puppeteer-sharp Failed to launch Base

I have implemented it in my local and works well. But when I moved the changes to the window server it's giving the below error
Failed to launch Base! [0402/075840.212:ERROR:os_crypt_win.cc(70)] Failed to encrypt: The system cannot find the file specified. (0x2)\r\n[0402/075840.212:FATAL:headless_browser_main_parts.cc(103)] Check failed: OSCrypt::Init(local_state_.get()). \r\nBacktrace:\r\n\tIsSandboxedProcess [0x00007FFC31341842+705042]\r\n\tIsSandboxedProcess [0x00007FFC312C39A2+189298]\r\n\tIsSandboxedProcess [0x00007FFC312D2AF8+251080]\r\n\tIsSandboxedProcess [0x00007FFC312D39E0+254896]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B12123+12980755]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B11E8D+12980093]\r\n\tovly_debug_event [0x00007FFC2F905929+16331561]\r\n\tovly_debug_event [0x00007FFC2FCC5B17+20264215]\r\n\tovly_debug_event [0x00007FFC2F904675+16326773]\r\n\tovly_debug_event [0x00007FFC2F9073BE+16338366]\r\n\tIsSandboxedProcess [0x00007FFC31DB7DB7+11675527]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A837+8179991]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B5AD+8183437]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B20C+8182508]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A1BD+8178333]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A53A+8179226]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294D1A+8418810]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294BDC+8418492]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC312949E7+8417991]\r\n\tChromeMain [0x00007FFC2E971238+408]\r\n\tOrdinal0 [0x00007FF6E8CF26B8+9912]\r\n\tOrdinal0 [0x00007FF6E8CF1A41+6721]\r\n\tGetHandleVerifier [0x00007FF6E8E3AF42+904642]\r\n\tBaseThreadInitThunk [0x00007FFC68F113F2+34]\r\n\tRtlUserThreadStart [0x00007FFC6AB054F4+52]\r\n\r\n
Can anyone please advise what should be the fix for the above error message?
We had the same error with default browser:
Failed to launch browser! [0428/113352.960:ERROR:os_crypt_win.cc(70)] Failed to encrypt
As #hardkoded suggested, using the revision 851527 we could launch the browser. Thank you!

Error while trying to invoke Golang trace

The following command works fine serving up a web page with a profile and I am able to analyse it, very good.
go tool pprof -http=:8082 https://mytestserver.net:443/debug/pprof/profile?seconds=3
However if I try a trace, this happens
$ go tool pprof -http=:8082 https://mytestserver.net:443/debug/pprof/trace?seconds=3
Fetching profile over HTTP from https://mytestserver.net:443/debug/pprof/trace?seconds=3
https://mytestserver.net:443/debug/pprof/trace?seconds=3: server response: 404 Not Found - Unknown profile
failed to fetch any source profiles
This doesn't work either
$ go tool trace -http=:8082 https://mytestserver.net:443/debug/pprof/trace?seconds=3
2020/09/29 22:34:49 Parsing trace...
failed to open trace file: open https://mytestserver.net:443/debug/pprof/trace?seconds=3: The filename, directory name, or volume label syntax is incorrect.
Was following some examples from
https://jvns.ca/blog/2017/09/24/profiling-go-with-pprof/
Trace could be useful to visualize GC behaviour as well as Goroutine/Threads etc.
Is there another way to generate trace?
I run trace from a Windows machine and the following is the versioning info
$ go version
go version go1.15.2 windows/amd64
Did you tried using http instead of secure connection?
It seems it only works for http connections FYR.. https://golang.org/pkg/net/http/pprof/

Oracle11gR2 silent install on centos6.5

I run ./runInstaller -silent -force -responseFile /data/app/oracle/etc/db_install.rsp and show some warnings
[INS-13014] Target environment do not meet some optional requirements.
I check the log file and find some problems as following
Validating Response File /data/app/oracle/etc/db_install.rsp
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
INFO: Setting Response file data to the Installer
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
I searched many sites and still can not deal with it.
Help me !

Resources