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

Development Environment on Docker - "UnauthorizedError: Not Login" Error #4256

Closed
halil-bugol opened this issue Jan 1, 2024 · 13 comments
Closed
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@halil-bugol
Copy link
Member

I want to create a development environment on Windows Docker. I want it to be run as dev and add the local folder as a volume. I wrote a dockerfile. But I get "UnauthorizedError: Not Login" error.

Console Log:

2024-01-01 22:28:23 yarn run v1.22.19
2024-01-01 22:28:23 $ concurrently -k --raw "yarn dev:client" "yarn dev:server"
2024-01-01 22:28:24 $ cross-env NODE_ENV=development webpack-dev-server --config scripts/webpack.dev.js -w
2024-01-01 22:28:24 $ cross-env NODE_ENV=development nodemon -w ./common -w ./server -e js,yaml server/server.js
2024-01-01 22:28:24 [nodemon] 1.19.4
2024-01-01 22:28:24 [nodemon] to restart at any time, enter `rs`
2024-01-01 22:28:24 [nodemon] watching dir(s): common server/**/*
2024-01-01 22:28:24 [nodemon] watching extensions: js,yaml
2024-01-01 22:28:24 [nodemon] starting `node server/server.js`
2024-01-01 22:28:24 Dashboard app running at port 8000
2024-01-01 22:28:25 Happy[jsx]: Version: 5.0.1. Threads: 3
2024-01-01 22:28:25 ℹ 「wds」: Project is running at http://0.0.0.0:8001/
2024-01-01 22:28:25 ℹ 「wds」: webpack output is served from /
2024-01-01 22:28:25 ℹ 「wds」: Content not from webpack is served from /app
2024-01-01 22:28:25 Happy[jsx]: All set; signaling webpack to proceed.
2024-01-01 22:28:25 [hardsource:555efd16] Writing new cache 555efd16...
2024-01-01 22:28:25 [hardsource:555efd16] Tracking node dependencies with: yarn.lock.
2024-01-01 22:28:25 [7:28:25 PM] Compiling webpack
2024-01-01 22:28:26 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:26 npx browserslist@latest --update-db
2024-01-01 22:28:26 
2024-01-01 22:28:26 Why you should do it regularly:
2024-01-01 22:28:26 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:26 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:26 npx browserslist@latest --update-db
2024-01-01 22:28:26 
2024-01-01 22:28:26 Why you should do it regularly:
2024-01-01 22:28:26 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:27 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:27 npx browserslist@latest --update-db
2024-01-01 22:28:27 
2024-01-01 22:28:27 Why you should do it regularly:
2024-01-01 22:28:27 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:30 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:30 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:39 { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
2024-01-01 22:28:39 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:39 npx browserslist@latest --update-db
2024-01-01 22:28:39 
2024-01-01 22:28:39 Why you should do it regularly:
2024-01-01 22:28:39 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:29:03 UnauthorizedError: Not Login
2024-01-01 22:29:03     at Object.throw (/app/node_modules/koa/lib/context.js:97:11)
2024-01-01 22:29:03     at getCurrentUser (/app/server/services/session.js:401:14)
2024-01-01 22:29:03     at renderView (/app/server/controllers/view.js:45:7)
2024-01-01 22:29:03     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2024-01-01 22:29:03     at async /app/server/components/errorProcess.js:24:7
2024-01-01 22:29:03     at async /app/server/components/boot.js:52:9
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:28 [7:29:28 PM] Compiled webpack in 1m

Dockerfile.local

FROM node:14-alpine as builder

ARG YARN_VERSION=1.22.4

RUN apk add --no-cache --virtual python2 curl
RUN apk add --no-cache --virtual .build-deps ca-certificates python3 py3-pip make openssl g++ bash
RUN npm install yarn@${YARN_VERSION}

FROM node:14-alpine

WORKDIR /kubesphere

COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

RUN ls /root/.yarn && cp -r /root/.yarn /root/.yarn || true

COPY --from=builder /usr/local/bin/yarn /usr/local/bin/yarn
COPY --from=builder /usr/local/bin/yarnpkg /usr/local/bin/yarnpkg

COPY . .

EXPOSE 8000

CMD ["yarn", "start"]

@halil-bugol halil-bugol changed the title Development Development Environment on Docker - "UnauthorizedError: Not Login" Error Jan 1, 2024
@halil-bugol halil-bugol added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jan 1, 2024
@halil-bugol
Copy link
Member Author

ping @VioZhang @calvinyv

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

Hi, try opening http://localhost:8000/ and see what happens

@halil-bugol
Copy link
Member Author

Hi, @zheng1

Just loading page and some connection error.

image

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

Any errors reported in the Docker container?

@halil-bugol
Copy link
Member Author

Full log:

2024-01-01 22:28:23 yarn run v1.22.19
2024-01-01 22:28:23 $ concurrently -k --raw "yarn dev:client" "yarn dev:server"
2024-01-01 22:28:24 $ cross-env NODE_ENV=development webpack-dev-server --config scripts/webpack.dev.js -w
2024-01-01 22:28:24 $ cross-env NODE_ENV=development nodemon -w ./common -w ./server -e js,yaml server/server.js
2024-01-01 22:28:24 [nodemon] 1.19.4
2024-01-01 22:28:24 [nodemon] to restart at any time, enter `rs`
2024-01-01 22:28:24 [nodemon] watching dir(s): common server/**/*
2024-01-01 22:28:24 [nodemon] watching extensions: js,yaml
2024-01-01 22:28:24 [nodemon] starting `node server/server.js`
2024-01-01 22:28:24 Dashboard app running at port 8000
2024-01-01 22:28:25 Happy[jsx]: Version: 5.0.1. Threads: 3
2024-01-01 22:28:25 ℹ 「wds」: Project is running at http://0.0.0.0:8001/
2024-01-01 22:28:25 ℹ 「wds」: webpack output is served from /
2024-01-01 22:28:25 ℹ 「wds」: Content not from webpack is served from /app
2024-01-01 22:28:25 Happy[jsx]: All set; signaling webpack to proceed.
2024-01-01 22:28:25 [7:28:25 PM] Compiling webpack
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:28 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:29 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:30 [HMR] Waiting for update signal from WDS...
2024-01-01 22:28:30 [HMR] Waiting for update signal from WDS...
2024-01-01 22:29:28 [7:29:28 PM] Compiled webpack in 1m
2024-01-01 22:29:28 ℹ 「wdm」: Hash: f597760946b3f6cb8990de88fccb7a7ffaa4881f
2024-01-01 22:29:28 Version: webpack 4.44.2
2024-01-01 22:29:28 Child
2024-01-01 22:29:28     Hash: f597760946b3f6cb8990
2024-01-01 22:29:28     Time: 63042ms
2024-01-01 22:29:28     Built at: 01/01/2024 7:29:28 PM
2024-01-01 22:29:28                                      Asset      Size         Chunks             Chunk Names
2024-01-01 22:29:28     13ec0eb5bdb821ff4930237d7c9f943f.woff2  69.6 KiB                 [emitted]  
2024-01-01 22:29:28       1eb7a893589ddce89d81cdb22a356660.ttf   171 KiB                 [emitted]  
2024-01-01 22:29:28       3e1af3ef546b9e6ecef9f3ba197bf7d2.ttf   168 KiB                 [emitted]  
2024-01-01 22:29:28       42bbe4eefcde1297b11dc4b6491e9746.ttf   170 KiB                 [emitted]  
2024-01-01 22:29:28     4357beb823a5f8d65c260f045d9e019a.woff2  68.6 KiB                 [emitted]  
2024-01-01 22:29:28      563c4bd6da24f5ce46e7aee2aace04f9.woff    94 KiB                 [emitted]  
2024-01-01 22:29:28      5df7f0532c1c39e04011b2ab0be1fe3c.woff  95.2 KiB                 [emitted]  
2024-01-01 22:29:28      6521f388081e84791dba294c9e7cfb4e.woff  93.5 KiB                 [emitted]  
2024-01-01 22:29:28     73f0a88bbca1bec19fb1303c689d04c6.woff2  63.1 KiB                 [emitted]  
2024-01-01 22:29:28      7b225d4d9324ee54ce6d9ec50e339668.woff  88.4 KiB                 [emitted]  
2024-01-01 22:29:28      878ad7158f6fa9136d796d4bad613bc2.woff  87.7 KiB                 [emitted]  
2024-01-01 22:29:28     90d1676003d9c28c04994c18bfd8b558.woff2  63.9 KiB                 [emitted]  
2024-01-01 22:29:28     94008e69aaf05da75c0bbf8f8bb0db41.woff2  68.7 KiB                 [emitted]  
2024-01-01 22:29:28                                  access.js   178 KiB         access  [emitted]  access
2024-01-01 22:29:28                                 actions.js  8.27 MiB        actions  [emitted]  actions
2024-01-01 22:29:28                                    apps.js   414 KiB           apps  [emitted]  apps
2024-01-01 22:29:28     b52fac2bb93c5858f3f2675e4b52e1de.woff2  63.2 KiB                 [emitted]  
2024-01-01 22:29:28       bd19ad60600a1537c00d3b4923a5e5de.ttf   173 KiB                 [emitted]  
2024-01-01 22:29:28                                clusters.js  3.27 MiB       clusters  [emitted]  clusters
2024-01-01 22:29:28                                  common.js  15.2 MiB         common  [emitted]  common
2024-01-01 22:29:28                                 console.js   450 KiB        console  [emitted]  console
2024-01-01 22:29:28       d08840599e05db7345652d3d417574a9.ttf   168 KiB                 [emitted]  
2024-01-01 22:29:28                                  devops.js  1.78 MiB         devops  [emitted]  devops
2024-01-01 22:29:28      eb43b4c3b3b6cac224f76c0a524946a1.woff  88.2 KiB                 [emitted]  
2024-01-01 22:29:28       ee7b96fa85d8fdb8c126409326ac2d2b.ttf   167 KiB                 [emitted]  
2024-01-01 22:29:28                             fedprojects.js  1.71 MiB    fedprojects  [emitted]  fedprojects
2024-01-01 22:29:28                                    main.js  13.1 MiB           main  [emitted]  main
2024-01-01 22:29:28                              manifest.json  1.82 KiB                 [emitted]  
2024-01-01 22:29:28                                projects.js  2.47 MiB       projects  [emitted]  projects
2024-01-01 22:29:28                               react-ace.js  2.16 MiB      react-ace  [emitted]  react-ace
2024-01-01 22:29:28                                settings.js   663 KiB       settings  [emitted]  settings
2024-01-01 22:29:28                                terminal.js  1000 KiB       terminal  [emitted]  terminal
2024-01-01 22:29:28                           terminalEntry.js  12.2 MiB  terminalEntry  [emitted]  terminalEntry
2024-01-01 22:29:28                                  vendor.js  11.5 MiB         vendor  [emitted]  vendor
2024-01-01 22:29:28                              workspaces.js  1.19 MiB     workspaces  [emitted]  workspaces
2024-01-01 22:29:28     Entrypoint main = main.js
2024-01-01 22:29:28     Entrypoint terminalEntry = terminalEntry.js
2024-01-01 22:29:28     [2] multi (webpack)-dev-server/client?http://0.0.0.0:8001 (webpack)/hot/dev-server.js ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/index.js 64 bytes {main} [built]
2024-01-01 22:29:28     [5] multi (webpack)-dev-server/client?http://0.0.0.0:8001 (webpack)/hot/dev-server.js ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/terminal.js 64 bytes {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@babel/runtime/helpers/asyncToGenerator.js] 809 bytes {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@babel/runtime/helpers/interopRequireDefault.js] 147 bytes {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@babel/runtime/helpers/interopRequireWildcard.js] 1.16 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@babel/runtime/regenerator/index.js] 49 bytes {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@kube-design/components/esm/index.js] 1.51 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@kube-design/components/esm/styles/index.scss] 1.14 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js] 500 bytes {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/utils/safeThis.js] 523 bytes {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js] 5.62 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8001] (webpack)-dev-server/client?http://0.0.0.0:8001 4.29 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {main} {terminalEntry} [built]
2024-01-01 22:29:28     [./src/core/index.js] 13 KiB {main} [built]
2024-01-01 22:29:28     [./src/core/terminal.js] 12.2 KiB {terminalEntry} [built]
2024-01-01 22:29:28         + 5687 hidden modules
2024-01-01 22:29:28 Child
2024-01-01 22:29:28     Hash: de88fccb7a7ffaa4881f
2024-01-01 22:29:28     Time: 6042ms
2024-01-01 22:29:28     Built at: 01/01/2024 7:28:31 PM
2024-01-01 22:29:28                    Asset      Size     Chunks             Chunk Names
2024-01-01 22:29:28           locale-ar.json   234 KiB  locale-ar  [emitted]  locale-ar
2024-01-01 22:29:28           locale-de.json   226 KiB  locale-de  [emitted]  locale-de
2024-01-01 22:29:28           locale-en.json   236 KiB  locale-en  [emitted]  locale-en
2024-01-01 22:29:28           locale-es.json   251 KiB  locale-es  [emitted]  locale-es
2024-01-01 22:29:28           locale-fr.json   231 KiB  locale-fr  [emitted]  locale-fr
2024-01-01 22:29:28           locale-hi.json   238 KiB  locale-hi  [emitted]  locale-hi
2024-01-01 22:29:28           locale-ko.json   262 KiB  locale-ko  [emitted]  locale-ko
2024-01-01 22:29:28           locale-lt.json   231 KiB  locale-lt  [emitted]  locale-lt
2024-01-01 22:29:28           locale-pl.json   231 KiB  locale-pl  [emitted]  locale-pl
2024-01-01 22:29:28           locale-pt.json   218 KiB  locale-pt  [emitted]  locale-pt
2024-01-01 22:29:28           locale-tc.json   227 KiB  locale-tc  [emitted]  locale-tc
2024-01-01 22:29:28           locale-tr.json   247 KiB  locale-tr  [emitted]  locale-tr
2024-01-01 22:29:28           locale-zh.json   214 KiB  locale-zh  [emitted]  locale-zh
2024-01-01 22:29:28     manifest.locale.json  1.46 KiB             [emitted]  
2024-01-01 22:29:28     Entrypoint locale-ar = locale-ar.json
2024-01-01 22:29:28     Entrypoint locale-de = locale-de.json
2024-01-01 22:29:28     Entrypoint locale-en = locale-en.json
2024-01-01 22:29:28     Entrypoint locale-es = locale-es.json
2024-01-01 22:29:28     Entrypoint locale-fr = locale-fr.json
2024-01-01 22:29:28     Entrypoint locale-hi = locale-hi.json
2024-01-01 22:29:28     Entrypoint locale-ko = locale-ko.json
2024-01-01 22:29:28     Entrypoint locale-lt = locale-lt.json
2024-01-01 22:29:28     Entrypoint locale-pl = locale-pl.json
2024-01-01 22:29:28     Entrypoint locale-pt = locale-pt.json
2024-01-01 22:29:28     Entrypoint locale-tc = locale-tc.json
2024-01-01 22:29:28     Entrypoint locale-tr = locale-tr.json
2024-01-01 22:29:28     Entrypoint locale-zh = locale-zh.json
2024-01-01 22:29:28      [0] multi (webpack)/hot/dev-server.js ./locales/ar/index.js 40 bytes {locale-ar} [built]
2024-01-01 22:29:28      [1] multi (webpack)/hot/dev-server.js ./locales/de/index.js 40 bytes {locale-de} [built]
2024-01-01 22:29:28      [2] multi (webpack)/hot/dev-server.js ./locales/en/index.js 40 bytes {locale-en} [built]
2024-01-01 22:29:28      [3] multi (webpack)/hot/dev-server.js ./locales/es/index.js 40 bytes {locale-es} [built]
2024-01-01 22:29:28      [4] multi (webpack)/hot/dev-server.js ./locales/fr/index.js 40 bytes {locale-fr} [built]
2024-01-01 22:29:28      [5] multi (webpack)/hot/dev-server.js ./locales/hi/index.js 40 bytes {locale-hi} [built]
2024-01-01 22:29:28      [6] multi (webpack)/hot/dev-server.js ./locales/ko/index.js 40 bytes {locale-ko} [built]
2024-01-01 22:29:28      [7] multi (webpack)/hot/dev-server.js ./locales/lt/index.js 40 bytes {locale-lt} [built]
2024-01-01 22:29:28      [8] multi (webpack)/hot/dev-server.js ./locales/pl/index.js 40 bytes {locale-pl} [built]
2024-01-01 22:29:28      [9] multi (webpack)/hot/dev-server.js ./locales/pt/index.js 40 bytes {locale-pt} [built]
2024-01-01 22:29:28     [10] multi (webpack)/hot/dev-server.js ./locales/tc/index.js 40 bytes {locale-tc} [built]
2024-01-01 22:29:28     [11] multi (webpack)/hot/dev-server.js ./locales/tr/index.js 40 bytes {locale-tr} [built]
2024-01-01 22:29:28     [12] multi (webpack)/hot/dev-server.js ./locales/zh/index.js 40 bytes {locale-zh} [built]
2024-01-01 22:29:28      [./locales/ar/index.js] 1.14 KiB {locale-ar} [built]
2024-01-01 22:29:28      [./locales/de/index.js] 1.14 KiB {locale-de} [built]
2024-01-01 22:29:28         + 2589 hidden modules
2024-01-01 22:29:28 ℹ 「wdm」: Compiled successfully.
2024-01-01 22:28:25 [hardsource:555efd16] Writing new cache 555efd16...
2024-01-01 22:28:25 [hardsource:555efd16] Tracking node dependencies with: yarn.lock.
2024-01-01 22:28:26 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:26 npx browserslist@latest --update-db
2024-01-01 22:28:26 
2024-01-01 22:28:26 Why you should do it regularly:
2024-01-01 22:28:26 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:26 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:26 npx browserslist@latest --update-db
2024-01-01 22:28:26 
2024-01-01 22:28:26 Why you should do it regularly:
2024-01-01 22:28:26 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:27 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:27 npx browserslist@latest --update-db
2024-01-01 22:28:27 
2024-01-01 22:28:27 Why you should do it regularly:
2024-01-01 22:28:27 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:28:39 { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
2024-01-01 22:28:39 Browserslist: caniuse-lite is outdated. Please run:
2024-01-01 22:28:39 npx browserslist@latest --update-db
2024-01-01 22:28:39 
2024-01-01 22:28:39 Why you should do it regularly:
2024-01-01 22:28:39 https://github.com/browserslist/browserslist#browsers-data-updating
2024-01-01 22:29:03 UnauthorizedError: Not Login
2024-01-01 22:29:03     at Object.throw (/app/node_modules/koa/lib/context.js:97:11)
2024-01-01 22:29:03     at getCurrentUser (/app/server/services/session.js:401:14)
2024-01-01 22:29:03     at renderView (/app/server/controllers/view.js:45:7)
2024-01-01 22:29:03     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2024-01-01 22:29:03     at async /app/server/components/errorProcess.js:24:7
2024-01-01 22:29:03     at async /app/server/components/boot.js:52:9
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-02 10:35:37 yarn run v1.22.19
2024-01-02 10:35:37 $ concurrently -k --raw "yarn dev:client" "yarn dev:server"
2024-01-02 10:35:38 $ cross-env NODE_ENV=development nodemon -w ./common -w ./server -e js,yaml server/server.js
2024-01-02 10:35:38 $ cross-env NODE_ENV=development webpack-dev-server --config scripts/webpack.dev.js -w
2024-01-02 10:35:38 [nodemon] 1.19.4
2024-01-02 10:35:38 [nodemon] to restart at any time, enter `rs`
2024-01-02 10:35:38 [nodemon] watching dir(s): common server/**/*
2024-01-02 10:35:38 [nodemon] watching extensions: js,yaml
2024-01-02 10:35:38 [nodemon] starting `node server/server.js`
2024-01-02 10:35:39 Dashboard app running at port 8000
2024-01-02 10:35:39 Happy[jsx]: Version: 5.0.1. Threads: 3
2024-01-02 10:35:40 ℹ 「wds」: Project is running at http://0.0.0.0:8001/
2024-01-02 10:35:40 ℹ 「wds」: webpack output is served from /
2024-01-02 10:35:40 ℹ 「wds」: Content not from webpack is served from /app
2024-01-02 10:35:40 Happy[jsx]: All set; signaling webpack to proceed.
2024-01-02 10:35:41 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 UnauthorizedError: Not Login
2024-01-02 10:35:42     at Object.throw (/app/node_modules/koa/lib/context.js:97:11)
2024-01-02 10:35:42     at getCurrentUser (/app/server/services/session.js:401:14)
2024-01-02 10:35:42     at renderView (/app/server/controllers/view.js:45:7)
2024-01-02 10:35:42     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2024-01-02 10:35:42     at async /app/server/components/errorProcess.js:24:7
2024-01-02 10:35:42     at async /app/server/components/boot.js:52:9
2024-01-02 10:35:42     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-02 10:35:42     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-02 10:35:42     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-02 10:35:42     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:42 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:43 [HMR] Waiting for update signal from WDS...
2024-01-02 10:35:45 [hardsource:555efd16] Using 446 MB of disk space.
2024-01-02 10:35:45 [hardsource:555efd16] Tracking node dependencies with: yarn.lock.
2024-01-02 10:35:45 [hardsource:555efd16] Reading from cache 555efd16...
2024-01-02 10:35:50 [7:35:50 AM] Compiling webpack
2024-01-02 10:35:56 [7:35:56 AM] Compiled webpack in 5s
2024-01-02 10:35:56 ℹ 「wdm」: Hash: f597760946b3f6cb8990de88fccb7a7ffaa4881f
2024-01-02 10:35:56 Version: webpack 4.44.2
2024-01-02 10:35:56 Child
2024-01-02 10:35:56     Hash: f597760946b3f6cb8990
2024-01-02 10:35:56     Time: 16093ms
2024-01-02 10:35:56     Built at: 01/02/2024 7:35:56 AM
2024-01-02 10:35:56                                      Asset       Size         Chunks             Chunk Names
2024-01-02 10:35:56     13ec0eb5bdb821ff4930237d7c9f943f.woff2   69.6 KiB                 [emitted]  
2024-01-02 10:35:56       1eb7a893589ddce89d81cdb22a356660.ttf    171 KiB                 [emitted]  
2024-01-02 10:35:56       3e1af3ef546b9e6ecef9f3ba197bf7d2.ttf    168 KiB                 [emitted]  
2024-01-02 10:35:56       42bbe4eefcde1297b11dc4b6491e9746.ttf    170 KiB                 [emitted]  
2024-01-02 10:35:56     4357beb823a5f8d65c260f045d9e019a.woff2   68.6 KiB                 [emitted]  
2024-01-02 10:35:56      563c4bd6da24f5ce46e7aee2aace04f9.woff     94 KiB                 [emitted]  
2024-01-02 10:35:56      5df7f0532c1c39e04011b2ab0be1fe3c.woff   95.2 KiB                 [emitted]  
2024-01-02 10:35:56      6521f388081e84791dba294c9e7cfb4e.woff   93.5 KiB                 [emitted]  
2024-01-02 10:35:56     73f0a88bbca1bec19fb1303c689d04c6.woff2   63.1 KiB                 [emitted]  
2024-01-02 10:35:56      7b225d4d9324ee54ce6d9ec50e339668.woff   88.4 KiB                 [emitted]  
2024-01-02 10:35:56      878ad7158f6fa9136d796d4bad613bc2.woff   87.7 KiB                 [emitted]  
2024-01-02 10:35:56     90d1676003d9c28c04994c18bfd8b558.woff2   63.9 KiB                 [emitted]  
2024-01-02 10:35:56     94008e69aaf05da75c0bbf8f8bb0db41.woff2   68.7 KiB                 [emitted]  
2024-01-02 10:35:56                                  access.js    178 KiB         access  [emitted]  access
2024-01-02 10:35:56                                 actions.js   8.27 MiB        actions  [emitted]  actions
2024-01-02 10:35:56                                    apps.js    414 KiB           apps  [emitted]  apps
2024-01-02 10:35:56     b52fac2bb93c5858f3f2675e4b52e1de.woff2   63.2 KiB                 [emitted]  
2024-01-02 10:35:56       bd19ad60600a1537c00d3b4923a5e5de.ttf    173 KiB                 [emitted]  
2024-01-02 10:35:56                                clusters.js   3.27 MiB       clusters  [emitted]  clusters
2024-01-02 10:35:56                                  common.js   15.2 MiB         common  [emitted]  common
2024-01-02 10:35:56                                 console.js    450 KiB        console  [emitted]  console
2024-01-02 10:35:56       d08840599e05db7345652d3d417574a9.ttf    168 KiB                 [emitted]  
2024-01-02 10:35:56                                  devops.js   1.78 MiB         devops  [emitted]  devops
2024-01-02 10:35:56      eb43b4c3b3b6cac224f76c0a524946a1.woff   88.2 KiB                 [emitted]  
2024-01-02 10:35:56       ee7b96fa85d8fdb8c126409326ac2d2b.ttf    167 KiB                 [emitted]  
2024-01-02 10:35:56                             fedprojects.js   1.71 MiB    fedprojects  [emitted]  fedprojects
2024-01-02 10:35:56                                    main.js   13.1 MiB           main  [emitted]  main
2024-01-02 10:35:56                              manifest.json  663 bytes                 [emitted]  
2024-01-02 10:35:56                                projects.js   2.47 MiB       projects  [emitted]  projects
2024-01-02 10:35:56                               react-ace.js   2.16 MiB      react-ace  [emitted]  react-ace
2024-01-02 10:35:56                                settings.js    663 KiB       settings  [emitted]  settings
2024-01-02 10:35:56                                terminal.js   1000 KiB       terminal  [emitted]  terminal
2024-01-02 10:35:56                           terminalEntry.js   12.2 MiB  terminalEntry  [emitted]  terminalEntry
2024-01-02 10:35:56                                  vendor.js   11.5 MiB         vendor  [emitted]  vendor
2024-01-02 10:35:56                              workspaces.js   1.19 MiB     workspaces  [emitted]  workspaces
2024-01-02 10:35:56     Entrypoint main = main.js
2024-01-02 10:35:56     Entrypoint terminalEntry = terminalEntry.js
2024-01-02 10:35:56     [0] multi ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/index.js 40 bytes [built]
2024-01-02 10:35:56     [1] multi ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/terminal.js 40 bytes [built]
2024-01-02 10:35:56     [2] multi (webpack)-dev-server/client?http://0.0.0.0:8001 (webpack)/hot/dev-server.js ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/index.js 64 bytes {main} [built]
2024-01-02 10:35:56     [3] ./locale-data/complete.js (ignored) 15 bytes {main} {terminalEntry} [built]
2024-01-02 10:35:56     [4] ./lib/locales (ignored) 15 bytes {main} {terminalEntry} [built]
2024-01-02 10:35:56     [5] multi (webpack)-dev-server/client?http://0.0.0.0:8001 (webpack)/hot/dev-server.js ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/core/terminal.js 64 bytes {terminalEntry} [built]
2024-01-02 10:35:56     [./node_modules/moment-mini/locale sync recursive ^\.\/.*$] ./node_modules/moment-mini/locale sync ^\.\/.*$ 189 bytes {main} {terminalEntry} [optional] [built]
2024-01-02 10:35:56     [./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} {terminalEntry} [built]
2024-01-02 10:35:56     [./src/actions sync \.js$] ./src/actions sync nonrecursive \.js$ 847 bytes {actions} [built]
2024-01-02 10:35:56     [./src/pages/clusters/actions sync \.js$] ./src/pages/clusters/actions sync nonrecursive \.js$ 192 bytes {clusters} [built]
2024-01-02 10:35:56         + 5692 hidden modules
2024-01-02 10:35:56 Child
2024-01-02 10:35:56     Hash: de88fccb7a7ffaa4881f
2024-01-02 10:35:56     Time: 4741ms
2024-01-02 10:35:56     Built at: 01/02/2024 7:35:44 AM
2024-01-02 10:35:56                    Asset      Size     Chunks             Chunk Names
2024-01-02 10:35:56           locale-ar.json   234 KiB  locale-ar  [emitted]  locale-ar
2024-01-02 10:35:56           locale-de.json   226 KiB  locale-de  [emitted]  locale-de
2024-01-02 10:35:56           locale-en.json   236 KiB  locale-en  [emitted]  locale-en
2024-01-02 10:35:56           locale-es.json   251 KiB  locale-es  [emitted]  locale-es
2024-01-02 10:35:56           locale-fr.json   231 KiB  locale-fr  [emitted]  locale-fr
2024-01-02 10:35:56           locale-hi.json   238 KiB  locale-hi  [emitted]  locale-hi
2024-01-02 10:35:56           locale-ko.json   262 KiB  locale-ko  [emitted]  locale-ko
2024-01-02 10:35:56           locale-lt.json   231 KiB  locale-lt  [emitted]  locale-lt
2024-01-02 10:35:56           locale-pl.json   231 KiB  locale-pl  [emitted]  locale-pl
2024-01-02 10:35:56           locale-pt.json   218 KiB  locale-pt  [emitted]  locale-pt
2024-01-02 10:35:56           locale-tc.json   227 KiB  locale-tc  [emitted]  locale-tc
2024-01-02 10:35:56           locale-tr.json   247 KiB  locale-tr  [emitted]  locale-tr
2024-01-02 10:35:56           locale-zh.json   214 KiB  locale-zh  [emitted]  locale-zh
2024-01-02 10:35:56     manifest.locale.json  1.46 KiB             [emitted]  
2024-01-02 10:35:56     Entrypoint locale-ar = locale-ar.json
2024-01-02 10:35:56     Entrypoint locale-de = locale-de.json
2024-01-02 10:35:56     Entrypoint locale-en = locale-en.json
2024-01-02 10:35:56     Entrypoint locale-es = locale-es.json
2024-01-02 10:35:56     Entrypoint locale-fr = locale-fr.json
2024-01-02 10:35:56     Entrypoint locale-hi = locale-hi.json
2024-01-02 10:35:56     Entrypoint locale-ko = locale-ko.json
2024-01-02 10:35:56     Entrypoint locale-lt = locale-lt.json
2024-01-02 10:35:56     Entrypoint locale-pl = locale-pl.json
2024-01-02 10:35:56     Entrypoint locale-pt = locale-pt.json
2024-01-02 10:35:56     Entrypoint locale-tc = locale-tc.json
2024-01-02 10:35:56     Entrypoint locale-tr = locale-tr.json
2024-01-02 10:35:56     Entrypoint locale-zh = locale-zh.json
2024-01-02 10:35:56      [0] multi (webpack)/hot/dev-server.js ./locales/ar/index.js 40 bytes {locale-ar} [built]
2024-01-02 10:35:56      [1] multi (webpack)/hot/dev-server.js ./locales/de/index.js 40 bytes {locale-de} [built]
2024-01-02 10:35:56      [2] multi (webpack)/hot/dev-server.js ./locales/en/index.js 40 bytes {locale-en} [built]
2024-01-02 10:35:56      [3] multi (webpack)/hot/dev-server.js ./locales/es/index.js 40 bytes {locale-es} [built]
2024-01-02 10:35:56      [4] multi (webpack)/hot/dev-server.js ./locales/fr/index.js 40 bytes {locale-fr} [built]
2024-01-02 10:35:56      [5] multi (webpack)/hot/dev-server.js ./locales/hi/index.js 40 bytes {locale-hi} [built]
2024-01-02 10:35:56      [6] multi (webpack)/hot/dev-server.js ./locales/ko/index.js 40 bytes {locale-ko} [built]
2024-01-02 10:35:56      [7] multi (webpack)/hot/dev-server.js ./locales/lt/index.js 40 bytes {locale-lt} [built]
2024-01-02 10:35:56      [8] multi (webpack)/hot/dev-server.js ./locales/pl/index.js 40 bytes {locale-pl} [built]
2024-01-02 10:35:56      [9] multi (webpack)/hot/dev-server.js ./locales/pt/index.js 40 bytes {locale-pt} [built]
2024-01-02 10:35:56     [10] multi (webpack)/hot/dev-server.js ./locales/tc/index.js 40 bytes {locale-tc} [built]
2024-01-02 10:35:56     [11] multi (webpack)/hot/dev-server.js ./locales/tr/index.js 40 bytes {locale-tr} [built]
2024-01-02 10:35:56     [12] multi (webpack)/hot/dev-server.js ./locales/zh/index.js 40 bytes {locale-zh} [built]
2024-01-02 10:35:56      [./locales/ar/index.js] 1.14 KiB {locale-ar} [built]
2024-01-02 10:35:56      [./locales/de/index.js] 1.14 KiB {locale-de} [built]

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

It looks like the UnauthorizedError: Not Login error is not coming from inside the docker container.

@halil-bugol
Copy link
Member Author

Yes

2024-01-01 22:29:03 UnauthorizedError: Not Login
2024-01-01 22:29:03     at Object.throw (/app/node_modules/koa/lib/context.js:97:11)
2024-01-01 22:29:03     at getCurrentUser (/app/server/services/session.js:401:14)
2024-01-01 22:29:03     at renderView (/app/server/controllers/view.js:45:7)
2024-01-01 22:29:03     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2024-01-01 22:29:03     at async /app/server/components/errorProcess.js:24:7
2024-01-01 22:29:03     at async /app/server/components/boot.js:52:9
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26
2024-01-01 22:29:03     at async /app/node_modules/koa-mount/index.js:52:26

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

Did yo configure Docker for port forwarding? According to this error, it was not later than 2024-01-02 10:35:56

@halil-bugol
Copy link
Member Author

Which port? 8001?

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

8000 and 8001

@halil-bugol
Copy link
Member Author

The problem was solved when I opened the 8001 port. Thank you @zheng1 As I mentioned at the beginning, I want to create a development environment on Docker. Do you think it will cause problems if I mount the ./src folder to the working directory?

image

@zheng1
Copy link
Member

zheng1 commented Jan 2, 2024

For node.js projects, using docker to develop will have a lot of problems, it is highly recommended that you use VM to develop, and then develop via vscode remote, it will reduce a lot of strange problems

@halil-bugol
Copy link
Member Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

No branches or pull requests

2 participants