- 
                Notifications
    You must be signed in to change notification settings 
- Fork 180
Description
Windows 11 with 32gb of ram - Terminal Powershell
I've ran through the file permission fixes
Logs are
Terminal
PS C:\github\DevDocs> .\docker-start.bat
C:\github\DevDocs>scripts/docker/docker-start.bat
[94mProject root directory: C:\github\DevDocs[0m
[94mEnsuring docker-compose.yml is properly formatted...[0m
1 file(s) moved.
[92mdocker-compose.yml has been fixed for Windows compatibility[0m
[94mCreating necessary directories...[0m
[94mSetting directory permissions...[0m
processed file: logs
processed file: logs\backend.log
processed file: logs\frontend.log
processed file: logs\mcp.log
Successfully processed 4 files; Failed processing 0 files
processed file: storage
processed file: storage\markdown
Successfully processed 2 files; Failed processing 0 files
processed file: crawl_results
Successfully processed 1 files; Failed processing 0 files
[94mStarting Docker containers...[0m
[94mBuilding Docker images to include latest code changes...[0m
Compose now can delegate build to bake for better performances
Just set COMPOSE_BAKE=true
[+] Building 5.6s (33/33) FINISHED                                                                 docker:desktop-linux
=> [mcp internal] load build definition from Dockerfile.mcp                                                       0.0s
=> => transferring dockerfile: 755B                                                                               0.0s
=> [backend internal] load metadata for docker.io/library/python:3.11-slim                                        0.8s
=> [mcp internal] load .dockerignore                                                                              0.0s
=> => transferring context: 2B                                                                                    0.0s
=> [backend 1/7] FROM docker.io/library/python:3.11-slim@sha256:4389cc6fa9619c221de286d522a7f784c03ffbe39c18028f  0.1s
=> => resolve docker.io/library/python:3.11-slim@sha256:4389cc6fa9619c221de286d522a7f784c03ffbe39c18028fda4e7aff  0.0s
=> [mcp internal] load build context                                                                              0.1s
=> => transferring context: 813B                                                                                  0.1s
=> CACHED [backend 2/7] WORKDIR /app                                                                              0.0s
=> CACHED [mcp 3/6] RUN apt-get update && apt-get install -y --no-install-recommends     build-essential     &&   0.0s
=> CACHED [mcp 4/6] COPY fast-markdown-mcp/ /app/                                                                 0.0s
=> CACHED [mcp 5/6] RUN pip install --no-cache-dir -e .                                                           0.0s
=> CACHED [mcp 6/6] RUN mkdir -p /app/storage/markdown                                                            0.0s
=> [mcp] exporting to image                                                                                       0.2s
=> => exporting layers                                                                                            0.0s
=> => exporting manifest sha256:08e46750d5c36ed8b439376c2b46712c4b4d54324a6fbb1397631fbe9b4e4512                  0.0s
=> => exporting config sha256:cabd1a6ea58c315cc77f9fb6bfff6112a128b1652e889cf680b5400974590049                    0.0s
=> => exporting attestation manifest sha256:2c453c66f059b0c7d927322093485db747d5dce5cb3f8149ec7e841cfc2f1a60      0.1s
=> => exporting manifest list sha256:25b33969a3d9dd97b67941486ba541574e9e8f6891d2876deb3090cbbab985b0             0.0s
=> => naming to docker.io/library/devdocs-mcp:latest                                                              0.0s
=> => unpacking to docker.io/library/devdocs-mcp:latest                                                           0.0s
=> [mcp] resolving provenance for metadata file                                                                   0.0s
=> [backend internal] load build definition from Dockerfile.backend                                               0.0s
=> => transferring dockerfile: 726B                                                                               0.0s
=> [backend internal] load .dockerignore                                                                          0.0s
=> => transferring context: 2B                                                                                    0.0s
=> [backend internal] load build context                                                                          1.0s
=> => transferring context: 33.04MB                                                                               1.0s
=> CACHED [backend 3/7] RUN apt-get update && apt-get install -y --no-install-recommends     build-essential      0.0s
=> CACHED [backend 4/7] COPY backend/requirements.txt .                                                           0.0s
=> CACHED [backend 5/7] RUN pip install --no-cache-dir -r requirements.txt                                        0.0s
=> CACHED [backend 6/7] COPY backend/ .                                                                           0.0s
=> CACHED [backend 7/7] RUN mkdir -p /app/logs                                                                    0.0s
=> [backend] exporting to image                                                                                   0.2s
=> => exporting layers                                                                                            0.0s
=> => exporting manifest sha256:30ab4cf5fc1627e91e9d4a250fe046941a4940f40803a7ed0f32baa312c95021                  0.0s
=> => exporting config sha256:e4c4d19d8f614241f037e5a453ebfe1de71189a51d2bf6601b0afcbecd9ff4e8                    0.0s
=> => exporting attestation manifest sha256:a28bb58459cca2f27ce5e3a3361a8af98840c36f8a54f32ec267e770bfd8c872      0.1s
=> => exporting manifest list sha256:01c15b52b95b24754a9e344ad8e96ce6c5804886c5e40627db888803f02017a2             0.0s
=> => naming to docker.io/library/devdocs-backend:latest                                                          0.0s
=> => unpacking to docker.io/library/devdocs-backend:latest                                                       0.0s
=> [backend] resolving provenance for metadata file                                                               0.0s
=> [frontend internal] load build definition from Dockerfile.frontend                                             0.0s
=> => transferring dockerfile: 541B                                                                               0.0s
=> [frontend internal] load metadata for docker.io/library/node:20-alpine                                         0.5s
=> [frontend internal] load .dockerignore                                                                         0.0s
=> => transferring context: 2B                                                                                    0.0s
=> [frontend 1/7] FROM docker.io/library/node:20-alpine@sha256:8bda036ddd59ea51a23bc1a1035d3b5c614e72c01366d989f  0.0s
=> => resolve docker.io/library/node:20-alpine@sha256:8bda036ddd59ea51a23bc1a1035d3b5c614e72c01366d989f4120e8adc  0.0s
=> [frontend internal] load build context                                                                         0.3s
=> => transferring context: 5.50MB                                                                                0.3s
=> CACHED [frontend 2/7] WORKDIR /app                                                                             0.0s
=> CACHED [frontend 3/7] COPY package.json package-lock.json ./                                                   0.0s
=> CACHED [frontend 4/7] RUN npm ci                                                                               0.0s
=> CACHED [frontend 5/7] COPY . .                                                                                 0.0s
=> CACHED [frontend 6/7] RUN mkdir -p public                                                                      0.0s
=> ERROR [frontend 7/7] RUN npm run build                                                                         1.3s
[frontend 7/7] RUN npm run build:
0.490
0.490 > devdocs-explorer@0.1.0 build
0.490 > next build
0.490
1.152 ⨯ Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
1.168
1.168 > Build error occurred
1.173 ReferenceError: config is not defined
1.173 at (next.config.mjs:1:1)
Logs folder is empty
Fixes so far
updated C:\github\DevDocs\next.config.mjs
to
"C:\github\DevDocs\config\next.config.mjs"
Next
C:\github\DevDocs\tsconfig.json by copying the content from /config as it was getting a similar error
I'm now stuck with this
=> CACHED [frontend 6/7] RUN mkdir -p public                                                                      0.0s
=> ERROR [frontend 7/7] RUN npm run build                                                                        13.5s
[frontend 7/7] RUN npm run build:
0.514
0.514 > devdocs-explorer@0.1.0 build
0.514 > next build
0.514
1.163 Attention: Next.js now collects completely anonymous telemetry regarding usage.
1.163 This information is used to shape Next.js' roadmap and prioritize features.
1.163 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
1.163 https://nextjs.org/telemetry
1.163
1.231 ▲ Next.js 15.1.4
1.231
1.304 Creating an optimized production build ...
13.25 Failed to compile.
13.25
13.25 ./app/globals.css.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css
13.25 ReferenceError: config is not defined
13.25 at file:///app/postcss.config.mjs:1:1
13.25 at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
13.25 at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
13.25 at async findConfig (/app/node_modules/next/dist/lib/find-config.js:90:21)
13.25 at async getPostCssPlugins (/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:89:18)
13.25 at async /app/node_modules/next/dist/build/webpack/config/blocks/css/index.js:124:36
13.25 at async /app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js:52:40
13.25 at async Span.traceAsyncFn (/app/node_modules/next/dist/trace/trace.js:153:20)
13.25
13.25 Import trace for requested module:
13.25 ./app/globals.css.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css
13.25 ./app/globals.css
13.25
13.25 ./app/globals.css
13.25 ReferenceError: config is not defined
13.25 at file:///app/postcss.config.mjs:1:1
13.25 at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
13.25 at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
13.25 at async findConfig (/app/node_modules/next/dist/lib/find-config.js:90:21)
13.25 at async getPostCssPlugins (/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:89:18)
13.25 at async /app/node_modules/next/dist/build/webpack/config/blocks/css/index.js:124:36
13.25 at async /app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js:52:40
13.25 at async Span.traceAsyncFn (/app/node_modules/next/dist/trace/trace.js:153:20)
13.25 at tryRunOrWebpackError (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:314962)
13.25 at webpack_require_module (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:131434)
13.25 at nested_webpack_require_161179 (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:130872)
13.25 at /app/node_modules/next/dist/compiled/webpack/bundle5.js:28:131723
13.25 at symbolIterator (/app/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
13.25 at done (/app/node_modules/next/dist/compiled/neo-async/async.js:1:14824)
13.25 at Hook.eval [as callAsync] (eval at create (/app/node_modules/next/dist/compiled/webpack/bundle5.js:13:9218), :15:1)
13.25 at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/app/node_modules/next/dist/compiled/webpack/bundle5.js:13:6372)
13.25 at /app/node_modules/next/dist/compiled/webpack/bundle5.js:28:130593
13.25 at symbolIterator (/app/node_modules/next/dist/compiled/neo-async/async.js:1:14402)
13.25 -- inner error --
13.25 ReferenceError: config is not defined
13.25 at file:///app/postcss.config.mjs:1:1
13.25 at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
13.25 at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
13.25 at async findConfig (/app/node_modules/next/dist/lib/find-config.js:90:21)
13.25 at async getPostCssPlugins (/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:89:18)
13.25 at async /app/node_modules/next/dist/build/webpack/config/blocks/css/index.js:124:36
13.25 at async /app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js:52:40
13.25 at async Span.traceAsyncFn (/app/node_modules/next/dist/trace/trace.js:153:20)
13.25 at Object. (/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!/app/app/globals.css:1:7)
13.25 at /app/node_modules/next/dist/compiled/webpack/bundle5.js:28:955548
13.25 at Hook.eval [as call] (eval at create (/app/node_modules/next/dist/compiled/webpack/bundle5.js:13:8996), :7:1)
13.25 at Hook.CALL_DELEGATE [as _call] (/app/node_modules/next/dist/compiled/webpack/bundle5.js:13:6266)
13.25 at /app/node_modules/next/dist/compiled/webpack/bundle5.js:28:131467
13.25 at tryRunOrWebpackError (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:314916)
13.25 at webpack_require_module (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:131434)
13.25 at nested_webpack_require_161179 (/app/node_modules/next/dist/compiled/webpack/bundle5.js:28:130872)
13.25 at /app/node_modules/next/dist/compiled/webpack/bundle5.js:28:131723
13.25 at symbolIterator (/app/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
13.25
13.25 Generated code for /app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!/app/app/globals.css
13.25
13.25 Import trace for requested module:
13.25 ./app/globals.css
13.25
13.26
13.26 > Build failed because of webpack errors
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
[92mAll services are running[0m
[94mFrontend:[0m http://localhost:3001
[94mBackend:[0m http://localhost:24125
[94mCrawl4AI:[0m http://localhost:11235
[94mLogs:[0m .\logs
[94mPress Ctrl+C to stop all services[0m
[94mMonitoring services...[0m
[91mFrontend container has stopped unexpectedly[0m
[94mShutting down services...[0m
[92mAll services stopped[0m
PS C:\github\DevDocs>
I do believe its still a file permissions issue, but I tried the manual and command prompt fixes and nothing.
This is what I got
PS C:\github\DevDocs> icacls logs /grant Everyone:F /T
processed file: logs
Successfully processed 1 files; Failed processing 0 files
PS C:\github\DevDocs> icacls storage /grant Everyone:F /T
processed file: storage
processed file: storage\markdown
Successfully processed 2 files; Failed processing 0 files
PS C:\github\DevDocs> icacls crawl_results /grant Everyone:F /T
processed file: crawl_results
Successfully processed 1 files; Failed processing 0 files
PS C:\github\DevDocs>
Would love some help as im stuck!