Skip to content
New issue

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

Dispatcher migration does not work fails with file already exists in Target folder exception #23

Open
pat-lego opened this issue Sep 22, 2023 · 0 comments

Comments

@pat-lego
Copy link

Expected Behaviour

aio aem-migration:dispatcher-converter --type=ams

Dispatcher should be converted to cloud ready once after executing the following command.

Actual Behaviour

Seeing the following error when running

aio aem-migration:dispatcher-converter --type=ams

patriquelegault@Patriques-MacBook-Pro-2 src % aio aem-migration:dispatcher-converter --type=ams
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
(node:11863) SyntaxError Plugin: @adobe/aio-cli-plugin-aem-rde: Unexpected token '||='
module: @oclif/[email protected]
task: toCached
plugin: @adobe/aio-cli-plugin-aem-rde
root: /Users/patriquelegault/.local/share/@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-aem-rde
See more details with DEBUG=*
 ›   Warning: @adobe/aio-cli update available from 9.2.0 to 9.3.0.
 ›   Run npm install -g @adobe/aio-cli to update.

********** Executing Dispatcher Converter **********
Converting Dispatcher Configurations...
Found usage of undefined variable:
target/dispatcher/src/conf.d/available_vhosts/aem_com.vhost:${COM_HOST}

Apache configuration uses non-whitelisted directives:
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:5 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:5 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:10 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:11 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:11 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:42 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:43 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:43 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:93 <Macro>
target/dispatcher/src/conf.d/available_vhosts/all_mos.vhost:162 <Macro>
FileOperationsUtility: Commented out all usages of non-whitelisted directives listed above.
    Error: EEXIST: file already exists, mkdir 'target/dispatcher/src/conf.dispatcher.d/enabled_farms'
    Code: EEXIST

aem-migration-config.yaml

dispatcherConverter:
  sdkSrc: /Users/patriquelegault/Documents/aem-sdk/cloud/author/aem-sdk-2023.8.13323.20230831T134651Z-230800/dispatcher-sdk-2.0.184/src
  ams:
    cfg: "/Users/patriquelegault/Desktop/disp/src_disp"

Reproduce Scenario (including but not limited to)

Please reach out to me for the sample Dispatcher configuration used to reproduce the issue. I used the dispatcher sdk version dispatcher-sdk-2.0.184 as input source and a dispatcher version used for on prem.

Platform and Version

Src: dispatcher-sdk-2.0.184

Sample Code that illustrates the problem

I can provide you with a sample dispatcher configuration on demand.

Logs taken while reproducing problem

result.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant