Troubleshooting Deployment
note
Account Management API is now deprecated and we recommend that you use Account Management functionality built into Elastic Path Commerce 8.2 and later.
InvalidKeySpecException
Returned in Logs
Problem
The following exception returned in the log:
java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : DER input, Integer tag error
at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:217)
at java.security.KeyFactory.generatePrivate(KeyFactory.java:372)
at com.elasticpath.am.appauth.service.impl.AppTokenServiceImpl.activate(AppTokenServiceImpl.java:76)
Cause
The JWT private key is not created properly.
Solution
Ensure that the key is created properly and the value of the environment variable is set to Account Management API service.
Account Management API container fails to start up from a local deployment package
Problem
The following exception is returned in the log:
am-api_1 | mv: cannot stat 'template/tomcat/context.xml': No such file or directory
account-management-210_am-api_1 exited with code 1
Solution
Run the docker-compose down -v
command before running the docker-compose up
command again.