Getting error while trying to run the node - pokt

When I am running the pocket start command, I am getting the following error:
invalid chains.json: unexpected end of JSON input
When I run the command to check node status curl http://localhost:26657/status, it is telling me catching_up: false so not sure now if node is running or not.

Your node is running, however you have either not provided a chains.json in your datadir or the file is not a valid json file. Your chains.json lives in your <datadir>/config directory.
Here's an example of how to set it up: https://docs.pokt.network/core/guides/quickstart#chains-json

Related

Error while trying to run shell script using OS process sampler in jmeter

one.jmx file takes command line arguments so i am putting the long command to run one.jmx in a shell script(RUN_GET_CALLS.sh). Now i am using Two.jmx which calls One.jmx via the shell script using OS process sampler.
When i execute Two.jmx it is giving error
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
1548833794770,4,"Patient_""_id""",500,"Exception occurred whilst executing system call: java.io.IOException: Cannot run program ""bash /home/ubuntu/HSDP_Suit/TestSuite/JMX_files/RUN_GET_CALLS.sh"" (in directory ""/home/ubuntu/JMeter/apache-jmeter-5.0/bin""): error=2, No such file or directory",Patient 1-4,text,false,,0,0,6,6,null,0,0,0
I tried putting path in Working directory box also but it is not working
Your syntax is a little bit incorrect you should configure the OS Process Sampler as follows:
Command: /bin/bash
Working directory: /home/ubuntu/HSDP_Suit/TestSuite/JMX_files
Argument #1: -c
Argument #2: ./RUN_GET_CALLS.sh ${PROPERTY_FILE} ${RESOURCE} ${PARAMETERS_STRING} ${FILE_NAME} ${RESULT_FILE}
Example configuration screenshot:
As per bash man page
-c string
If the -c option is present, then commands are read from string. If there are arguments after the string, they are assigned to the positional parameters, starting with $0.
More information: How to Run External Commands and Programs Locally and Remotely from JMeter

Ubuntu upstart script error

I am getting an error:
init: zeus main process (1636) terminated with status 1
when i try to run my very simple upstart script which looks like this:
#!upstart
description ""
author ""
script
cd /home/ubuntu/zeus
xvfb-run node --harmony www
emit zeus_running
end script
Any ideas on what the actual problem is? I have added a pre-stgart and post-start script section with logs and I have confirmed that it is failing in the main script that i have posted here.

how do you run arguments in a custom monitor on uptime

i am trying to run a custom monitor in the up-time monitoring system and when i have it open a .bat that i have created it gives me an error stating that the #echo off is not a command.
the .bat file contains
#echo off
start c:\OpenSSL-Win64\bin\openssl.exe
when i run the .bat in windows it opens up openssl and lets me pass in information
the error i am getting when running on uptime is
Status: OK Message:
D:\uptime software\scripts\custom>#echo off
D:\uptime software\scripts\custom>start
c:\OpenSSL-Win64\bin\openssl.exe , error data returned: '#echo' is
not recognized as an internal or external command, operable program or
batch file. Output:
D:\uptime software\scripts\custom>#echo off
D:\uptime software\scripts\custom>start
c:\OpenSSL-Win64\bin\openssl.exe Response time: 531 ms
I need the custom monitor to open the .bat and have it pass in commands to check the xml web sites through their corresponding ports.
for example i need this web site for XML to be checked "blank-xml.mycompany.com:4021"
i can run s_client -connect blank-xml.mycompany.com:4021 in openssl and see that the port is actually active and running. then i check the packages that have been loaded by running <BL30DOC><XPLN/></BL30DOC> and it returns information of the current packages that have been loaded.
how would i get the .bat to open with up-time and pass in arguments that are needed to run?
Update
I have changed the encoding to the .bat to be ANSI and now get this response from uptime
Status: OK Message: (No output) Output: Response time: 547 ms
the problem now seems to be that the argument i want to run is actually not doing anything.
the argument i am trying to run is s_client -connect blank-xml.mycompany.com:4021 and i still get the same response from up-time with the argument in place.

Getting First Run status of Test Scripts in QC through OTA

I would like to have the 'First Run Status' of the scripts present in a path through the OTA.
Ex:
If I give a QC Test Lab Path, I would like to see All the Test Scripts along with their First Run Status.
Say, 1234 is a Test Script. It might have either Passed or Failed or any other status on the First Run while executing. Then the next day the same script might have been altered to a new status if it is failed.
I would like to know the First Run Status.
It should access the RUN table to extract ALL RUNS of the Test Script from Test Lab whose path will be got as input from User.
If you have a list of runs (see this post to get it), just iterate over the runs and get the execution date and execution time fields to find the first run:
exec_date = run.Field("RN_EXECUTION_DATE")
exec_time = run.Field("RN_EXECUTION_TIME")
When you have the run you want, get the run status:
status = run.Status

service load fails through createprocess?

I have a windows service.
I can install it through cmd with "c:\serviceName -install"
when I do createProcess and pass command line -install it does not appear in the Service Control manager. The createProcess returns non-zero value
"GetExitCodeProcess" gives 0.
Following is a line from the code:
CreateProcess(Process,pCmdLine,NULL,NULL,FALSE,DETACHED_PROCESS,NULL,NULL,&stStartupInfo,pProcessInfo);
Variable name are fairly self-explained.
Please comment.

Resources