We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Team,
When attempting to import an API using APICTL 4.1.3 in API Manager 4.1.0, we are encountering the following error.
Executed ImportExportCLI (apictl) on Thu, 12 Sep 2024 13:45:11 +0530 [INFO]: Insecure: true [INFO]: api called [INFO]: connecting to https://localhost:9444/oauth2/token [INFO]: Resolving for API path... [INFO]: API Location: /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/testAPI_v1.zip [INFO]: Creating workspace [INFO]: Extracting /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/testAPI_v1.zip to /tmp/apim1453209140 [INFO]: Substituting environment variables in API files... [INFO]: Loading parameters from /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/DeploymentArtifacts_testAPI-v1/params.yaml [INFO]: Processing Params file /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/DeploymentArtifacts_testAPI-v1/params.yaml [INFO]: Creating the zipDirectory artifact /tmp/apim1453209140/testAPI-v1/SourceArchive.zip [INFO]: Creating: SourceArchive/ [INFO]: Creating: SourceArchive/Client-certificates/ [INFO]: Creating: SourceArchive/Client-certificates/cert1.crt [INFO]: Creating: SourceArchive/Client-certificates/cert2.crt [INFO]: Creating: SourceArchive/Client-certificates/client_certificates.yaml [INFO]: Creating: SourceArchive/Definitions/ [INFO]: Creating: SourceArchive/Definitions/swagger.yaml [INFO]: Creating: SourceArchive/Endpoint-certificates/ [INFO]: Creating: SourceArchive/Endpoint-certificates/cert1.crt [INFO]: Creating: SourceArchive/Endpoint-certificates/cert2.crt [INFO]: Creating: SourceArchive/Endpoint-certificates/endpoint_certificates.yaml [INFO]: Creating: SourceArchive/api.yaml [INFO]: Creating: SourceArchive/api_meta.yaml unexpected fault address 0x0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x46df6f] goroutine 1 gp=0xc0000061c0 m=2 mp=0xc00007c808 [running]: runtime.throw({0xdbc8ba?, 0x10?}) /usr/local/Cellar/go/1.22.5/libexec/src/runtime/panic.go:1023 +0x5c fp=0xc000541408 sp=0xc0005413d8 pc=0x43b91c runtime.sigpanic() /usr/local/Cellar/go/1.22.5/libexec/src/runtime/signal_unix.go:895 +0x285 fp=0xc000541468 sp=0xc000541408 pc=0x453565 aeshashbody() /usr/local/Cellar/go/1.22.5/libexec/src/runtime/asm_amd64.s:1466 +0x39f fp=0xc000541470 sp=0xc000541468 pc=0x46df6f runtime.mapiternext(0xc000055980) /usr/local/Cellar/go/1.22.5/libexec/src/runtime/map.go:932 +0x2bc fp=0xc0005414e0 sp=0xc000541470 pc=0x4141bc runtime.mapiterinit(0x47ac35?, 0xc0002eec90, 0xc000055980) /usr/local/Cellar/go/1.22.5/libexec/src/runtime/map.go:859 +0x1e8 fp=0xc000541500 sp=0xc0005414e0 pc=0x413ec8 reflect.mapiterinit(0x0?, 0x0?, 0xc0000bc6a0?) /usr/local/Cellar/go/1.22.5/libexec/src/runtime/map.go:1387 +0x13 fp=0xc000541528 sp=0xc000541500 pc=0x46aa53 github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...) /Users/nadunipamudika/go/pkg/mod/github.com/modern-go/[email protected]/unsafe_map.go:112 github.com/json-iterator/go.(*mapEncoder).Encode(0xc0002ef680, 0xc0000bc6b0, 0xc000181980) /Users/nadunipamudika/go/pkg/mod/github.com/json-iterator/[email protected]/reflect_map.go:257 +0x1e8 fp=0xc0005415d0 sp=0xc000541528 pc=0x8a2488 github.com/json-iterator/go.
1.) I started two APIM 4.1.0 servers, one for the dev environment and one for the QA environment (with an offset of 1).
2.) In the dev environment, I created and published an API.
3.) Using the APICTL tool, I added both environments.
4.) I then logged into the dev environment and exported the API using the following command:
./apictl export api -n testAPI -v v1 -e dev -k
5.) I generated the deployment directory [1] using the following command:
apictl gen deployment-dir -s /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/apictl-4.1.3-linux-amd64/apictl/testAPI_v1.zip
6.) I modified the DeploymentArtifacts_testAPI-v1/params.yaml accordingly.
7.) I logged into the QA environment.
8.) I then used the following API import command with the --params flag. When attempting to import, the error occurred:
./apictl import api -f /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/testAPI_v1.zip --params /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/DeploymentArtifacts_testAPI-v1/params.yaml --preserve-provider=false --update --verbose -k -e qa
[1] https://apim.docs.wso2.com/en/4.1.0/install-and-setup/setup/api-controller/advanced-topics/configuring-environment-specific-parameters/#generating-the-deployment-directory
APICTL
4.1.3
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Hi Team,
When attempting to import an API using APICTL 4.1.3 in API Manager 4.1.0, we are encountering the following error.
Steps to Reproduce
1.) I started two APIM 4.1.0 servers, one for the dev environment and one for the QA environment (with an offset of 1).
2.) In the dev environment, I created and published an API.
3.) Using the APICTL tool, I added both environments.
4.) I then logged into the dev environment and exported the API using the following command:
./apictl export api -n testAPI -v v1 -e dev -k
5.) I generated the deployment directory [1] using the following command:
apictl gen deployment-dir -s /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/apictl-4.1.3-linux-amd64/apictl/testAPI_v1.zip
6.) I modified the DeploymentArtifacts_testAPI-v1/params.yaml accordingly.
7.) I logged into the QA environment.
8.) I then used the following API import command with the --params flag. When attempting to import, the error occurred:
./apictl import api -f /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/testAPI_v1.zip --params /home/wso2/Downloads/Tickets/CANARAHSBCOCBSUB-410/DeploymentArtifacts_testAPI-v1/params.yaml --preserve-provider=false --update --verbose -k -e qa
[1] https://apim.docs.wso2.com/en/4.1.0/install-and-setup/setup/api-controller/advanced-topics/configuring-environment-specific-parameters/#generating-the-deployment-directory
Affected Component
APICTL
Version
4.1.3
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: