I imported DXA 1.6 into SDL Web 8.
But publishing failed at phase 2- transporting.
The error message is below:
Transport failed: Could not transport tcm:xxx-xxx-xxx.Content.zip using HTTPS, cause: Unauthorizaed.
I guess this has relation with the DXA CD Environment because when I ran ttm-prepare.ps1
, I left the Client ID and Secret blank. So the Environment created is like below (AuthenticationType is "Anonymous"):
Then I tried to set the Authentication type to OAuth with Client ID "cmuser" & its password.
But this failed with an error message. Please refer to the picture below, and I translate Japanese part into English.
'CDEnvironment2' could not be saved. Authentication failed while trying to communicate with service "http://localhost:8092/discovery.svc" which is detected by CD. Failed to authenticate with the token provider.
Additional information maybe useful:
I have a discovery service which uses port 8082 and token service's url localhost:8082/token.svc
The discovery used by DXA Environment uses port 8092 and the same token service's url as above. Is this the problem?
Thanks in advance.
More Information
I have tried to modified the token's url of DXA discovery service (whose port is 8092). Now the token service's url is localhost:8092/token.svc
rather than localhost:8082/token.svc
UPDATE
This picture shows what I want.
I checked each new created service and found that they were linked with the existing discovery service, not the new created service.
Then I correct the dependency between them. (New created services are made to link with new created discovery service.)
However, even though my publishing DXA page failed. The error message showed that "Unable to establish transport to destination.".
I also could not set the Authentication type to OAuth with Client ID "cmuser" & its password of DXA CD Environment.
Any idea?
Thanks in advance.