Cause: Issue with syntax of the docker-compose.yml file.
Solution: Correct the docker-compose.yml file. The easiest way would be to copy and paste the yml content from Jira connector Github as is. Alternatively, use the syntax validators yamllint on your linux machine or the online yaml syntax validator to correct the yaml syntax.
Cause: Image mentioned in the docker-compose.yml file is not present on docker hub.
Solution: Verify if the image names used in your local docker-compose.yml file and Jira connector's Github docker-compose.yml file have same image names.
If both of them are correct, check if your host needs proxy to connect with docker hub which could be blocking docker pull operation.
The presence of two Custom fields with the same name and different field type in your Jira instance leads to this error scenario.
In such a case, you need to configure the Custom Field ID in Ticketing Scheme template for the custom field which has correct field type.
Configure Custom field Id for that custom Field in Ticketing Scheme Template as per below Example.
"Impact": {
"value":"${vuln.impact}",
"customFieldId": "customfield_10009"
}
You can read more about this in depth at Configurations.
Cause:
Solution
Check the fields for which error is being thrown in the logs.
The Jira Connector throws an error response from the Jira API which contains only field custom field ID.
To identify the corresponding field name, use the following curl call.
Curl call to fetch all the fields in Jira instance
curl --request GET --url '<jira-instance-url>/rest/api/latest/field' --user 'email@email.com:<API-token>' --header 'Accept: application/json' > output.json
Now, that you have list of your fields ready with you, Go to jira instance (needs admin login here)
The page lists all the field on this screen. We need to add the fields for errors being thrown to this list. To do so, move down to bottom of the page, you can find an option to add field.
Once, all the fields are added to this list. from this point onwords, Jira client should not face the screen related error.
Cause:
As of Jira connector v1.0.1, passwords provided in config.json are encrypted by Qualys client service. After encryption, the service replaces actual passwords in config.json with a static string saying, "Password has been encrypted".
Default owner of the config.json file is 'app' (Jira connector App user - 555) with permissions rw-r--r-- (644). When the file is uploaded to the docker-volume-path/_date/config/, its owner changes from 'app' (Jira connector App user - 555) to root.
Hence, when Qualys client service tries to replace the 'password' in config.json with static string post encrypting your password, it runs into Insufficient permissions to write into config.json file
Solution:Provide required permissions to the config.json file at 'docker-volume-path/_date/config/'
dir
Minimum set of permissions required are 706, which you can provide from the Linux terminal
by using the command 'chmod 706 config.json'
On winscp, your permissions matrix for file should look like as follows
Cause:
The host running JIra Connector has insufficient disk space.
Use the command df -h to check for availalbe disk space. We recommend a minimum 30GB free space to run the Jira Connector application smoothly. To clear space, delete old log files from the 'logs' directory at regular intervals.
Cause:
The redis host information is not correctly configured in docker-compose.yml.
The 'SPRING_REDIS_HOST' field under 'environment' should be configured with the host IP where redis is running (the host on which Jira connector containers are spinning).
Correct the redis host configuration in docker-compose.yml as highlighted in below sample.
Sample - docker-compose.yml
version: "3.7"
services:
qualys-client-service:
image: qualys/qualys-client-for-jira-integration:1.1.0
networks:
- qualys-jira-connector
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/
environment:
- SPRING_REDIS_HOST=10.10.10.10
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_USER=default
- SPRING_REDIS_PASSWORD=JiraConnectorRedisDB
redis-client-service:
image: qualys/redis-test:1.1.0
networks:
- qualys-jira-connector
ports:
- 6379:6379
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/db
jira-client-service:
image: qualys/jira-client-for-jira-integration:1.1.0
networks:
- qualys-jira-connector
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/
depends_on:
- qualys-client-service
networks:
qualys-jira-connector:
volumes:
qualys-jira-volume:
Cause:
The application and port configured in docker-compose.yml for redis service is already in use.
Solution:In your docker-compose.yml, change the port mapping configuration in docker-compose.yml file.
Refer the highlighted part in following sample.
Sample
version: "3.7"
services:
qualys-client-service:
image: qualys/qualys-client-for-jira-integration:1.1.0
networks:
- qualys-jira-connector
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/
environment:
- SPRING_REDIS_HOST=10.10.10.10
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_USER=default
- SPRING_REDIS_PASSWORD=JiraConnectorRedisDB
redis-client-service:
image: qualys/redis-test:.1.1.0
networks:
- qualys-jira-connector
ports:
- 6379:6379
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/db
jira-client-service:
image: qualys/jira-client-for-jira-integration:1.1.0
networks:
- qualys-jira-connector
volumes:
- qualys-jira-volume:/opt/qualys/common/jiraconnector/
depends_on:
- qualys-client-service
networks:
qualys-jira-connector:
volumes:
qualys-jira-volume: