homarr: Homarr not working after upgrade

Environment

Docker

Version

No response

Describe the problem

Upgraded homarr as usual and I get an error message -> An unexpected error has occurred -> Detailed error information: type client side

The logs

My docker-compose services: homarr: container_name: homarr image: ghcr.io/ajnart/homarr:latest restart: unless-stopped volumes: - /configs/homar/configs:/app/data/configs - /configs/homar/icons:/app/public/icons - /configs/homar/data:/data - /var/run/docker.sock:/var/run/docker.sock environment: - NEXTAUTH_URL=http://localhost:7575 ports: - '7575:7575'

What I have tried

  • deleted the homarr folder
  • used a different folder
  • tried env variable of nextauth_url above (and without)

None of the above works/brings about a new error message

Logs

} }, responseJSON: [ { error: { json: { message: 'no such table: user', code: -32603, data: { code: 'INTERNAL_SERVER_ERROR', httpStatus: 500, path: 'user.count', zodError: null } } } } ] }, shape: { message: 'no such table: user', code: -32603, data: { code: 'INTERNAL_SERVER_ERROR', httpStatus: 500, path: 'user.count', zodError: null } }, data: { code: 'INTERNAL_SERVER_ERROR', httpStatus: 500, path: 'user.count', zodError: null }, name: 'TRPCClientError' }, elapsedMs: 13 } Error [TRPCClientError]: no such table: user at TRPCClientError.from (file:///app/.next/server/src/middleware.js:1718:20) at <unknown> (file:///app/.next/server/src/middleware.js:2273:60) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Context

No response

Please tick the boxes

  • I confirm that I attached the proper logs
  • I’ve read the docs
  • I’ve checked for duplicate issues
  • I’ve tried to debug myself

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

The problem lies in the fact that the database has not been initialized. The temporary solution is as follows:

# enter the docker container
docker exec -it <your_docker_container_id> /bin/bash

# grant executable permission to the script file
chmod +x /app/scripts/run.sh

# initialize the database
/app/scripts/run.sh