acoustic-content-samples / wch-site-application

Source code for the Acoustic Content sample site single page application - Oslo.
Apache License 2.0
6 stars 13 forks source link

OSLO Deploy errors #5

Open jimartinmoreno opened 6 years ago

jimartinmoreno commented 6 years ago

I have been trying to deploy Oslo website to WCH, however, I am encountering errors (14 errors). I have tested the plain source code as is (only env constants updated).

Here is the log:

C:\temp\WCH\OSLO\wch-site-application-master>npm run deploy

wch-site-application@0.0.0 deploy C:\temp\WCH\OSLO\wch-site-application-master wchtools push -A -f -v --dir dist

Password for XXXXX@gmail.com Push modified started [2018-03-02T11:17:24.539] [INFO] cli 2.3.4 - ========== Pushing image profiles =========== [2018-03-02T11:17:24.552] [INFO] cli 2.3.4 - ========== Pushing categories =========== [2018-03-02T11:17:24.556] [INFO] cli 2.3.4 - ========== Pushing assets =========== [2018-03-02T11:17:24.593] [INFO] cli 2.3.4 - ========== Pushing renditions =========== [2018-03-02T11:17:24.595] [INFO] cli 2.3.4 - ========== Pushing layouts =========== [2018-03-02T11:17:24.625] [INFO] cli 2.3.4 - ========== Pushing content types =========== [2018-03-02T11:17:34.021] [ERROR] cli 2.3.4 - Pushing content type with path /10ed9f3f-ab41-45a9-ba24-d988974affa7_tmd.json, name Event and id 10ed9f3f-ab41-45a9-ba24-d988974affa7 resulted in the foll owing error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.024] [ERROR] cli 2.3.4 - Pushing content type with path /547dc280-66f9-4d85-ac81-129eaec89e4b_tmd.json, name Header and id 547dc280-66f9-4d85-ac81-129eaec89e4b resulted in the fol lowing error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.026] [ERROR] cli 2.3.4 - Pushing content type with path /9aeeecef-85ce-4d41-a797-1ad27735d0cb_tmd.json, name List and id 9aeeecef-85ce-4d41-a797-1ad27735d0cb resulted in the follo wing error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.028] [ERROR] cli 2.3.4 - Pushing content type with path /84c0e928-6585-4d34-ba02-5ed1b2e4c21c_tmd.json, name Dynamic list and id 84c0e928-6585-4d34-ba02-5ed1b2e4c21c resulted in t he following error: Item can not be created as it has 4 invalid references. [2018-03-02T11:17:34.029] [ERROR] cli 2.3.4 - Pushing content type with path /2af1d22a-fecf-41e1-a808-7301cb37b79f_tmd.json, name Standard page and id 2af1d22a-fecf-41e1-a808-7301cb37b79f resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.031] [ERROR] cli 2.3.4 - Pushing content type with path /58fd2ad1-df13-4a75-9918-6b34852539ab_tmd.json, name Sign up and id 58fd2ad1-df13-4a75-9918-6b34852539ab resulted in the fo llowing error: Item can not be created as it has 2 invalid references. [2018-03-02T11:17:34.032] [ERROR] cli 2.3.4 - Pushing content type with path /68dea62b-0f3a-479f-a1be-cb3ce9820527_tmd.json, name Feature and id 68dea62b-0f3a-479f-a1be-cb3ce9820527 resulted in the fo llowing error: Item can not be created as it has 4 invalid references. [2018-03-02T11:17:34.033] [ERROR] cli 2.3.4 - Pushing content type with path /a47af09a-9315-4a01-ad30-cd998d341b0b_tmd.json, name Hero video and id a47af09a-9315-4a01-ad30-cd998d341b0b resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.035] [ERROR] cli 2.3.4 - Pushing content type with path /aca5ee5c-a89b-4cf8-aa62-e43a77674663_tmd.json, name Hero image and id aca5ee5c-a89b-4cf8-aa62-e43a77674663 resulted in the following error: Item can not be created as it has 2 invalid references. [2018-03-02T11:17:34.036] [ERROR] cli 2.3.4 - Pushing content type with path /a8fa51a3-4919-4308-a0b3-6cd31ae15d7e_tmd.json, name Design article and id a8fa51a3-4919-4308-a0b3-6cd31ae15d7e resulted in the following error: Item can not be created as it has 4 invalid references. [2018-03-02T11:17:34.037] [ERROR] cli 2.3.4 - Pushing content type with path /b0b91aad-8a9a-4d46-9aff-e35d004f0a1f_tmd.json, name Author profile and id b0b91aad-8a9a-4d46-9aff-e35d004f0a1f resulted in the following error: Item can not be created as it has 2 invalid references. [2018-03-02T11:17:34.039] [ERROR] cli 2.3.4 - Pushing content type with path /bb79c338-1e20-4d53-9ff3-9a6970ad9ed3_tmd.json, name Design page and id bb79c338-1e20-4d53-9ff3-9a6970ad9ed3 resulted in th e following error: Item can not be created as it has 3 invalid references. [2018-03-02T11:17:34.040] [ERROR] cli 2.3.4 - Pushing content type with path /cbde3c3b-d03f-484b-8aa2-0c35227db10c_tmd.json, name Footer and id cbde3c3b-d03f-484b-8aa2-0c35227db10c resulted in the fol lowing error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:34.041] [ERROR] cli 2.3.4 - Pushing content type with path /f9e7f0b9-f57d-4d91-a257-54a64c1ff52f_tmd.json, name Image with information and id f9e7f0b9-f57d-4d91-a257-54a64c1ff52f res ulted in the following error: Item can not be created as it has 3 invalid references. [2018-03-02T11:17:34.042] [ERROR] cli 2.3.4 - Pushing content type with path /fe31fbf4-4bc4-4ffa-9b27-615af51d23fe_tmd.json, name Lead image with information and id fe31fbf4-4bc4-4ffa-9b27-615af51d23f e resulted in the following error: Item can not be created as it has 2 invalid references. [2018-03-02T11:17:34.043] [ERROR] cli 2.3.4 - Pushing content type with path /f9e2e592-81be-4513-86a3-9abd4d869d6e_tmd.json, name Search Results and id f9e2e592-81be-4513-86a3-9abd4d869d6e resulted in the following error: Item can not be created as it has 2 invalid references. [2018-03-02T11:17:34.046] [INFO] cli 2.3.4 - ========== Pushing layout mappings =========== [2018-03-02T11:17:47.440] [ERROR] cli 2.3.4 - Pushing layout mapping with path /carousel-list-mapping.json and id carousel-list-mapping resulted in the following error: Item can not be created as it h as 1 invalid references. [2018-03-02T11:17:47.442] [ERROR] cli 2.3.4 - Pushing layout mapping with path /event-layout-mapping.json and id event-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.444] [ERROR] cli 2.3.4 - Pushing layout mapping with path /carousel-dynamic-list-mapping.json and id carousel-dynamic-list-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.445] [ERROR] cli 2.3.4 - Pushing layout mapping with path /author-profile-layout-mapping.json and id author-profile-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.446] [ERROR] cli 2.3.4 - Pushing layout mapping with path /design-page-left-mapping.json and id design-page-left-mapping resulted in the following error: Item can not be created a s it has 1 invalid references. [2018-03-02T11:17:47.447] [ERROR] cli 2.3.4 - Pushing layout mapping with path /feature-layout-mapping.json and id feature-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.448] [ERROR] cli 2.3.4 - Pushing layout mapping with path /design-article-layout-mapping.json and id design-article-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.450] [ERROR] cli 2.3.4 - Pushing layout mapping with path /image-with-information-layout-mapping.json and id image-with-information-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.451] [ERROR] cli 2.3.4 - Pushing layout mapping with path /hero-image-layout-mapping.json and id hero-image-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.452] [ERROR] cli 2.3.4 - Pushing layout mapping with path /hero-video-layout-mapping.json and id hero-video-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.453] [ERROR] cli 2.3.4 - Pushing layout mapping with path /lead-image-with-information-layout-mapping.json and id lead-image-with-information-layout-mapping resulted in the follow ing error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.455] [ERROR] cli 2.3.4 - Pushing layout mapping with path /sign-up-layout-mapping.json and id sign-up-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.456] [ERROR] cli 2.3.4 - Pushing layout mapping with path /standard-page-layout-mapping.json and id standard-page-layout-mapping resulted in the following error: Item can not be c reated as it has 1 invalid references. [2018-03-02T11:17:47.457] [ERROR] cli 2.3.4 - Pushing layout mapping with path /search-results-layout-mapping.json and id search-results-layout-mapping resulted in the following error: Item can not be created as it has 1 invalid references. [2018-03-02T11:17:47.461] [INFO] cli 2.3.4 - ========== Pushing content =========== [2018-03-02T11:17:47.465] [INFO] cli 2.3.4 - ========== Pushing site definitions =========== [2018-03-02T11:17:47.471] [INFO] cli 2.3.4 - ========== Pushing page definitions for the specified site =========== [2018-03-02T11:17:47.476] [INFO] cli 2.3.4 - Push modified complete [2018-03-02T11:17:47.478] [ERROR] cli 2.3.4 - Push modified complete. Encountered 30 errors while pushing artifacts. Push modified complete. Encountered 30 errors while pushing artifacts. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! wch-site-application@0.0.0 deploy: wchtools push -A -f -v --dir dist npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the wch-site-application@0.0.0 deploy script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\IBM_ADMIN\AppData\Roaming\npm-cache_logs\2018-03-02T10_17_47_517Z-debug.log

C:\temp\WCH\OSLO\wch-site-application-master> 2018-03-02T10_17_47_517Z-debug.log 2018-03-02T10_16_39_616Z-debug.log wchtools-cli.log wchtools-api.log

mburati commented 6 years ago

@jimartin7 , the Oslo SPA depends on the Oslo Authoring artifacts being in your WCH tenant first. The above errors look like it's trying to push a type where assets or categories that the type references aren't found in your tenant.

Is this an old tenant (eg, older than Sept 2017) that did not already have Oslo, or one where you had deleted Oslo, or a tenant where you had a much older Oslo and are trying to build Oslo from the latest source? Knowing which starting point you're working with could help figure out how you got into this situation.

Eg, from your wchtools-api.log:

"message":"Item can not be created as it has 1 invalid references.","category":"USER","level":"ERROR","parameters":{"id":"a47af09a-9315-4a01-ad30-cd998d341b0b","references":[{"id":"652c4957-1636-405a-8604-71b22181deda","classification":"asset"

If this is the latest wch-site-application Oslo project, then try getting the latest Oslo Authoring artifacts from the WCH Authoring About -> Usage Information page (download widget, on the right) and following the instructions there to push the authoring artifacts to your WCH tenant first, before trying to deploy the project.

jimartinmoreno commented 6 years ago

Thank you mike, I did what you suggested and it works fine. The problem was I needed to push the Oslo Authoring artifact first. Have a nice weekend