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

Codex crashing on startup #318

Open
Bag72 opened this issue May 30, 2024 · 2 comments
Open

Codex crashing on startup #318

Bag72 opened this issue May 30, 2024 · 2 comments

Comments

@Bag72
Copy link

Bag72 commented May 30, 2024

My CodeX instance has started crashing on startup.

I've looked but can't see anyone with any similar errors nor can I find any details about what could be wrong. I've attached the output to the docker log file. I've rebuilt the container but nor deleted the files as I want to access them.

Any ideas on what is wrong?

Dave

CodeX Reference Error.txt

@Bag72
Copy link
Author

Bag72 commented May 30, 2024

OK. I made a bit of progress. In another thread it was suggested by @gribanoveu that I add in config

frontend:
menu:

  • title: Login
    uri: "/auth"

Which I did do. It didn't work but at the same time it didn't crash so I left it in. Now it is crashing.
I edited the changes from the file and it now starts up OK.
Which I assumed is docs-config.yaml. Documentation on this is sparse.

What is the correct way to add this to the config file.

@gribanoveu
Copy link

gribanoveu commented Jun 2, 2024

@Bag72 configs, uses local db on disk, not in docker volume.

version: "3.2"
services:
  docs:
    container_name: codex_doc
    image: ghcr.io/codex-team/codex.docs:v2.2.3
    restart: always
    ports:
      - 3000:3000
    environment:
      - APP_CONFIG_auth_password=codex
      - APP_CONFIG_frontend_title=WIKI
    volumes:
      - ./uploads:/usr/src/app/uploads
      - ./db:/usr/src/app/db
      - ./docs-config.yaml:/usr/src/app/docs-config.yaml

docs-config.yaml

port: 3000
host: "localhost"
uploads:
  driver: "local"
  local:
    path: "./uploads"

frontend:
  startPage: ""
  menu:
    - title: Login
      uri: "/auth"

database:
  driver: local # you can change database driver here. 'mongodb' or 'local'
  local:
    path: ./db
#  mongodb:
#    uri: mongodb://localhost:27017/docs

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

2 participants