requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.25k stars 2.68k forks source link

Can't finish web setup when using docker #644

Closed efreesen closed 5 years ago

efreesen commented 5 years ago

Actual behavior

The Graphql API is not available and can't finish setup on the client.

Here are the docker container setup error messages when trying to install the dependencies for the project:

...
Step 6/9 : RUN yarn --silent
 ---> Running in 8617aa3e7eb7
warning passport-cas > node-uuid@1.4.1: Use uuid module instead
(node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
warning postcss-cssnext > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning postcss-cssnext > caniuse-api > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning postcss-cssnext > pixrem > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning webpack-bundle-analyzer > bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
warning "apollo-server > graphql-subscriptions@0.5.8" has incorrect peer dependency "graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0".
warning " > graphql-tools@3.1.1" has incorrect peer dependency "graphql@^0.13.0".
warning " > graphql-tag@2.9.2" has incorrect peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "apollo-server > apollo-server-core > @apollographql/apollo-upload-server@5.0.3" has incorrect peer dependency "graphql@^0.13.1".
warning " > apollo-link-persisted-queries@0.2.1" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning " > apollo-cache-inmemory@1.2.9" has incorrect peer dependency "graphql@0.11.7 || ^0.12.0 || ^0.13.0".
warning " > apollo-link@1.2.2" has incorrect peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0".
warning " > apollo-link-batch-http@1.2.2" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.3 || ^0.13.0".
warning " > apollo-link-http@1.5.4" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning " > babel-jest@23.4.2" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
warning "babel-plugin-graphql-tag > babel-literal-to-ast@0.1.2" has unmet peer dependency "babel-core@>=6.0.20".
warning " > eslint-plugin-vue@4.7.1" has incorrect peer dependency "eslint@^3.18.0 || ^4.0.0".
warning " > graphiql@0.11.11" has incorrect peer dependency "graphql@^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0".
warning " > graphiql@0.11.11" has unmet peer dependency "prop-types@>=15.5.0".
warning "graphiql > codemirror-graphql@0.6.12" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface@1.3.2" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-parser@1.2.2" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-types@1.2.2" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphiql > codemirror-graphql > graphql-language-service-parser > graphql-language-service-types@0.1.14" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface > graphql-config@2.0.1" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface > graphql-language-service-utils@1.2.2" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphiql > codemirror-graphql > graphql-language-service-interface > graphql-config > graphql-import@0.4.5" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning "graphql-voyager > react-modal@2.4.1" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "graphql-voyager > react-modal@2.4.1" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "graphql-voyager > react-toolbox@2.0.0-beta.13" has unmet peer dependency "react-transition-group@^2.2.0".
warning "graphql-voyager > react-toolbox > react-css-themr@2.1.2" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0".
warning " > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
Removing intermediate container 8617aa3e7eb7
 ---> 4e900719d4ff
Step 7/9 : ENV dockerdev 1
 ---> Running in a62e7c83623e
Removing intermediate container a62e7c83623e
 ---> 8bbcf3fa4dbe
Step 8/9 : EXPOSE 3000
 ---> Running in e1f890e84338
...

After the wiki is up and accessing localhost:3000 the developer console show the following:

vue-apollo.umd.js:1334 <ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly.
provide @ vue-apollo.umd.js:1334

vue.esm.js:8543 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
client.js:88 [HMR] connected

:3000/graphql:1 Failed to load resource: the server responded with a status of 404 (Not Found)

localization.js:52 Error: Network error: Response not successful: Received status code 404
    at new ApolloError (bundle.umd.js:84)
    at eval (bundle.umd.js:1038)
    at eval (bundle.umd.js:1413)
    at Array.forEach (<anonymous>)
    at eval (bundle.umd.js:1412)
    at Map.forEach (<anonymous>)
    at QueryManager.broadcastQueries (bundle.umd.js:1407)
    at eval (bundle.umd.js:987)
(anonymous) @ localization.js:52

:3000/graphql:1 Failed to load resource: the server responded with a status of 404 (Not Found)
localization.js:52 Error: Network error: Response not successful: Received status code 404
    at new ApolloError (bundle.umd.js:84)
    at eval (bundle.umd.js:1038)
    at eval (bundle.umd.js:1413)
    at Array.forEach (<anonymous>)
    at eval (bundle.umd.js:1412)
    at Map.forEach (<anonymous>)
    at QueryManager.broadcastQueries (bundle.umd.js:1407)
    at eval (bundle.umd.js:987)
(anonymous) @ localization.js:52

vuetify.js:20300 [Vuetify] ':append-icon-cb' is deprecated, use '@click:append' instead

found in

---> <VTextField>
       <VForm>
         <VStepperContent>
           <VStepper>
             <VContent>
               <VApp>
                 <Setup> at client/components/setup.vue
                   <Root>
consoleWarn @ vuetify.js:20300

vue.esm.js:8543 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools

vue.esm.js:8554 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

:3000/__webpack_hmr:1 Failed to load resource: net::ERR_CONNECTION_RESET

The FetchEvent for "<URL>" resulted in a network error response: an object that was not a Response was passed to respondWith().

13:3000/__webpack_hmr:1 Failed to load resource: net::ERR_FAILED

And the page doesn't respond to the continue button click.

Expected behavior

Every dependency should be installed correctly and the user should be able to finish setup.

Steps to reproduce the behavior

Clone the project and run the command make docker-dev-up.

NGPixel commented 5 years ago

Fixed.

Get latest commit, run make docker-dev-rebuild then make docker-dev-up