[GH-ISSUE #896] Error on first start #588

Closed
opened 2026-03-02 11:51:05 +03:00 by kerem · 11 comments
Owner

Originally created by @tiberio87 on GitHub (Jan 17, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/896

Describe the Bug

At the first start I get this error:

Installation: Docker Image
OS: Debian

2025-01-17T06:56:01.874Z info: [Crawler] Connecting to existing browser instance: http://192.168.90.232:9222
2025-01-17T06:56:01.874Z info: [Crawler] Successfully resolved IP address, new address: http://192.168.90.232:9222/
2025-01-17T06:56:01.982Z info: Starting crawler worker ...
2025-01-17T06:56:01.982Z info: Starting inference worker ...
2025-01-17T06:56:01.982Z info: Starting search indexing worker ...
2025-01-17T06:56:01.982Z info: Starting tidy assets worker ...
2025-01-17T06:56:01.983Z info: Starting video worker ...
2025-01-17T06:56:01.983Z info: Starting feed worker ...
2025-01-17T06:56:01.983Z info: Starting asset preprocessing worker ...
 ⨯ Failed to start server
Error: getaddrinfo ENOTFOUND debian-r0cks
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'debian-r0cks'

Steps to Reproduce

My .env file:

## HOARDER
HOARDER_VERSION=latest
DATA_DIR=/data
MEILI_ADDR=http://192.168.90.233:7700
MEILI_MASTER_KEY=******
NEXTAUTH_URL=http://192.168.178.20:3000
NEXTAUTH_SECRET=******** 

My docker-compose.yml:

services:
  web:
    image: ghcr.io/hoarder-app/hoarder:${HOARDER_VERSION:-release}
    restart: unless-stopped
    volumes:
      - data:/data
    networks:
      t3_proxy:
        ipv4_address: 192.168.90.231 # You can specify a static IP
    ports:
      - 3020:3000
    env_file:
      - /home/r0cks/docker/.env
    environment:
      MEILI_ADDR: http://192.168.90.233:7700
      BROWSER_WEB_URL: http://192.168.90.232:9222
      # OPENAI_API_KEY: ...
      DATA_DIR: /data
  chrome:
    image: gcr.io/zenika-hub/alpine-chrome:123
    restart: unless-stopped
    networks:
      t3_proxy:
        ipv4_address: 192.168.90.232 # You can specify a static IP
    command:
      - --no-sandbox
      - --disable-gpu
      - --disable-dev-shm-usage
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=9222
      - --hide-scrollbars
  meilisearch:
    image: getmeili/meilisearch:v1.11.1
    restart: unless-stopped
    networks:
      t3_proxy:
        ipv4_address: 192.168.90.233 # You can specify a static IP
    env_file:
      - /home/r0cks/docker/.env
    environment:
      MEILI_NO_ANALYTICS: "true"
    volumes:
      - meilisearch:/meili_data

volumes:
  meilisearch:
  data:

Expected Behaviour

Start the application.

Screenshots or Additional Context

No response

Device Details

No response

Exact Hoarder Version

latest

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @tiberio87 on GitHub (Jan 17, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/896 ### Describe the Bug At the first start I get this error: Installation: Docker Image OS: Debian ``` 2025-01-17T06:56:01.874Z info: [Crawler] Connecting to existing browser instance: http://192.168.90.232:9222 2025-01-17T06:56:01.874Z info: [Crawler] Successfully resolved IP address, new address: http://192.168.90.232:9222/ 2025-01-17T06:56:01.982Z info: Starting crawler worker ... 2025-01-17T06:56:01.982Z info: Starting inference worker ... 2025-01-17T06:56:01.982Z info: Starting search indexing worker ... 2025-01-17T06:56:01.982Z info: Starting tidy assets worker ... 2025-01-17T06:56:01.983Z info: Starting video worker ... 2025-01-17T06:56:01.983Z info: Starting feed worker ... 2025-01-17T06:56:01.983Z info: Starting asset preprocessing worker ... ⨯ Failed to start server Error: getaddrinfo ENOTFOUND debian-r0cks at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'debian-r0cks' ``` ### Steps to Reproduce My `.env` file: ``` ## HOARDER HOARDER_VERSION=latest DATA_DIR=/data MEILI_ADDR=http://192.168.90.233:7700 MEILI_MASTER_KEY=****** NEXTAUTH_URL=http://192.168.178.20:3000 NEXTAUTH_SECRET=******** ``` My `docker-compose.yml`: ``` services: web: image: ghcr.io/hoarder-app/hoarder:${HOARDER_VERSION:-release} restart: unless-stopped volumes: - data:/data networks: t3_proxy: ipv4_address: 192.168.90.231 # You can specify a static IP ports: - 3020:3000 env_file: - /home/r0cks/docker/.env environment: MEILI_ADDR: http://192.168.90.233:7700 BROWSER_WEB_URL: http://192.168.90.232:9222 # OPENAI_API_KEY: ... DATA_DIR: /data chrome: image: gcr.io/zenika-hub/alpine-chrome:123 restart: unless-stopped networks: t3_proxy: ipv4_address: 192.168.90.232 # You can specify a static IP command: - --no-sandbox - --disable-gpu - --disable-dev-shm-usage - --remote-debugging-address=0.0.0.0 - --remote-debugging-port=9222 - --hide-scrollbars meilisearch: image: getmeili/meilisearch:v1.11.1 restart: unless-stopped networks: t3_proxy: ipv4_address: 192.168.90.233 # You can specify a static IP env_file: - /home/r0cks/docker/.env environment: MEILI_NO_ANALYTICS: "true" volumes: - meilisearch:/meili_data volumes: meilisearch: data: ``` ### Expected Behaviour Start the application. ### Screenshots or Additional Context _No response_ ### Device Details _No response_ ### Exact Hoarder Version latest ### Have you checked the troubleshooting guide? - [x] I have checked the troubleshooting guide and I haven't found a solution to my problem
kerem 2026-03-02 11:51:05 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@kamtschatka commented on GitHub (Jan 17, 2025):

looks like you have some issues with your network setup?
"debian-rocks" is not something hoarder uses by default, but it tries to look it up and can't resolve the ip address based on the name.

<!-- gh-comment-id:2597641657 --> @kamtschatka commented on GitHub (Jan 17, 2025): looks like you have some issues with your network setup? "debian-rocks" is not something hoarder uses by default, but it tries to look it up and can't resolve the ip address based on the name.
Author
Owner

@tiberio87 commented on GitHub (Jan 17, 2025):

Debian-r0cks is the hostname of the machine. In the compose and env files I put the IP addresses and not the host names.

<!-- gh-comment-id:2597701136 --> @tiberio87 commented on GitHub (Jan 17, 2025): Debian-r0cks is the hostname of the machine. In the compose and env files I put the IP addresses and not the host names.
Author
Owner

@MohamedBassem commented on GitHub (Jan 17, 2025):

@tiberio87 you don't need to expose chrome and meillisearch in your network. Keep the default docker network for them, and change meillisearch address and chrome address to be the container names instead

<!-- gh-comment-id:2597710899 --> @MohamedBassem commented on GitHub (Jan 17, 2025): @tiberio87 you don't need to expose chrome and meillisearch in your network. Keep the default docker network for them, and change meillisearch address and chrome address to be the container names instead
Author
Owner

@tiberio87 commented on GitHub (Jan 17, 2025):

@tiberio87 you don't need to expose chrome and meillisearch in your network. Keep the default docker network for them, and change meillisearch address and chrome address to be the container names instead

Same error:

services:
  hoarder:
    image: ghcr.io/hoarder-app/hoarder:${HOARDER_VERSION:-release}
    container_name: hoarder    
    restart: unless-stopped
    volumes:
      - data:/data
    ports:
      - 3000:3000
    env_file:
      - /home/r0cks/docker/.env
    environment:
      MEILI_ADDR: http://meilisearch:7700
      BROWSER_WEB_URL: http://chrome:9222
      # OPENAI_API_KEY: ...
      DATA_DIR: /data
  chrome:
    image: gcr.io/zenika-hub/alpine-chrome:123
    container_name: chrome     
    restart: unless-stopped 
    command:
      - --no-sandbox
      - --disable-gpu
      - --disable-dev-shm-usage
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=9222
      - --hide-scrollbars
  meilisearch:
    image: getmeili/meilisearch:v1.11.1
    container_name: meilisearch    
    restart: unless-stopped 
    env_file:
      - /home/r0cks/docker/.env
    environment:
      MEILI_NO_ANALYTICS: "true"
    volumes:
      - meilisearch:/meili_data

volumes:
  meilisearch:
  data:
## HOARDER
HOARDER_VERSION=latest
DATA_DIR=/data
MEILI_ADDR=http://127.0.0.1:7700
MEILI_MASTER_KEY=******
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=*****

<!-- gh-comment-id:2597752817 --> @tiberio87 commented on GitHub (Jan 17, 2025): > [@tiberio87](https://github.com/tiberio87) you don't need to expose chrome and meillisearch in your network. Keep the default docker network for them, and change meillisearch address and chrome address to be the container names instead Same error: ``` services: hoarder: image: ghcr.io/hoarder-app/hoarder:${HOARDER_VERSION:-release} container_name: hoarder restart: unless-stopped volumes: - data:/data ports: - 3000:3000 env_file: - /home/r0cks/docker/.env environment: MEILI_ADDR: http://meilisearch:7700 BROWSER_WEB_URL: http://chrome:9222 # OPENAI_API_KEY: ... DATA_DIR: /data chrome: image: gcr.io/zenika-hub/alpine-chrome:123 container_name: chrome restart: unless-stopped command: - --no-sandbox - --disable-gpu - --disable-dev-shm-usage - --remote-debugging-address=0.0.0.0 - --remote-debugging-port=9222 - --hide-scrollbars meilisearch: image: getmeili/meilisearch:v1.11.1 container_name: meilisearch restart: unless-stopped env_file: - /home/r0cks/docker/.env environment: MEILI_NO_ANALYTICS: "true" volumes: - meilisearch:/meili_data volumes: meilisearch: data: ``` ``` ## HOARDER HOARDER_VERSION=latest DATA_DIR=/data MEILI_ADDR=http://127.0.0.1:7700 MEILI_MASTER_KEY=****** NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=***** ```
Author
Owner

@MohamedBassem commented on GitHub (Jan 17, 2025):

also remove meilli address from your env variable given that it's overriding what's in the compose file. Can you do that and share the full logs again?

<!-- gh-comment-id:2597758161 --> @MohamedBassem commented on GitHub (Jan 17, 2025): also remove meilli address from your env variable given that it's overriding what's in the compose file. Can you do that and share the full logs again?
Author
Owner

@tiberio87 commented on GitHub (Jan 17, 2025):

updatetd env:


## HOARDER
HOARDER_VERSION=latest
DATA_DIR=/data
# MEILI_ADDR=http://127.0.0.1:7700
MEILI_MASTER_KEY=******
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=******

log:

(node:122) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

(Use `node --trace-deprecation ...` to show where the warning was created)

 ⨯ Failed to start server

Error: getaddrinfo ENOTFOUND debian-r0cks

    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'debian-r0cks'

}

2025-01-17T09:09:03.705Z info: [Crawler] Connecting to existing browser instance: http://chrome:9222

2025-01-17T09:09:03.706Z info: [Crawler] Successfully resolved IP address, new address: http://172.18.0.12:9222/

2025-01-17T09:09:03.789Z info: Starting crawler worker ...

2025-01-17T09:09:03.789Z info: Starting inference worker ...

2025-01-17T09:09:03.790Z info: Starting search indexing worker ...

2025-01-17T09:09:03.790Z info: Starting tidy assets worker ...

2025-01-17T09:09:03.790Z info: Starting video worker ...

2025-01-17T09:09:03.790Z info: Starting feed worker ...

2025-01-17T09:09:03.791Z info: Starting asset preprocessing worker ...

 ⨯ Failed to start server

Error: getaddrinfo ENOTFOUND debian-r0cks

    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'debian-r0cks'

}

 ⨯ Failed to start server

Error: getaddrinfo ENOTFOUND debian-r0cks

    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'debian-r0cks'

}
<!-- gh-comment-id:2597765907 --> @tiberio87 commented on GitHub (Jan 17, 2025): updatetd env: ``` ## HOARDER HOARDER_VERSION=latest DATA_DIR=/data # MEILI_ADDR=http://127.0.0.1:7700 MEILI_MASTER_KEY=****** NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=****** ``` log: ``` (node:122) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) ⨯ Failed to start server Error: getaddrinfo ENOTFOUND debian-r0cks at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'debian-r0cks' } 2025-01-17T09:09:03.705Z info: [Crawler] Connecting to existing browser instance: http://chrome:9222 2025-01-17T09:09:03.706Z info: [Crawler] Successfully resolved IP address, new address: http://172.18.0.12:9222/ 2025-01-17T09:09:03.789Z info: Starting crawler worker ... 2025-01-17T09:09:03.789Z info: Starting inference worker ... 2025-01-17T09:09:03.790Z info: Starting search indexing worker ... 2025-01-17T09:09:03.790Z info: Starting tidy assets worker ... 2025-01-17T09:09:03.790Z info: Starting video worker ... 2025-01-17T09:09:03.790Z info: Starting feed worker ... 2025-01-17T09:09:03.791Z info: Starting asset preprocessing worker ... ⨯ Failed to start server Error: getaddrinfo ENOTFOUND debian-r0cks at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'debian-r0cks' } ⨯ Failed to start server Error: getaddrinfo ENOTFOUND debian-r0cks at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'debian-r0cks' } ```
Author
Owner

@MohamedBassem commented on GitHub (Jan 17, 2025):

I find it very weird that the container is even aware about the host machine's hostname. How is that possible, without any reference to the host machine in the compose file?

<!-- gh-comment-id:2597773227 --> @MohamedBassem commented on GitHub (Jan 17, 2025): I find it very weird that the container is even aware about the host machine's hostname. How is that possible, without any reference to the host machine in the compose file?
Author
Owner

@tiberio87 commented on GitHub (Jan 17, 2025):

I don't know the reason, that's why I wrote here!

<!-- gh-comment-id:2597776254 --> @tiberio87 commented on GitHub (Jan 17, 2025): I don't know the reason, that's why I wrote here!
Author
Owner

@danielnbalasoiu commented on GitHub (Jan 17, 2025):

Hi,

Try using a dedicated network. Add this at the end of your docker-compose file:

networks:
  hoarder:
    driver: bridge

If this doesn't help, it might not be related, but can you test with fresh volumes? I'm wondering is there is something cached in the docker volume 🤔
replace - data:/data with - ./data:/data

Good luck!

<!-- gh-comment-id:2599148974 --> @danielnbalasoiu commented on GitHub (Jan 17, 2025): Hi, Try using a dedicated network. Add this at the end of your docker-compose file: ```yml networks: hoarder: driver: bridge ``` If this doesn't help, it might not be related, but can you test with fresh volumes? I'm wondering is there is something cached in the docker volume 🤔 replace `- data:/data` with `- ./data:/data` Good luck!
Author
Owner

@itsstone commented on GitHub (Jan 19, 2025):

if your env file has hostname variable anywhere, create a seperate .env file for hoarder excluding hostname variable. I had an .env file for all my containers and was passing hostname to traefik. somehow this was messing up hoarder.
i created a seperate .env file just for hoarder, mapped to compose and it worked.

<!-- gh-comment-id:2600640657 --> @itsstone commented on GitHub (Jan 19, 2025): if your env file has hostname variable anywhere, create a seperate .env file for hoarder excluding hostname variable. I had an .env file for all my containers and was passing hostname to traefik. somehow this was messing up hoarder. i created a seperate .env file just for hoarder, mapped to compose and it worked.
Author
Owner

@tiberio87 commented on GitHub (Jan 19, 2025):

if your env file has hostname variable anywhere, create a seperate .env file for hoarder excluding hostname variable. I had an .env file for all my containers and was passing hostname to traefik. somehow this was messing up hoarder. i created a seperate .env file just for hoarder, mapped to compose and it worked.

It finally works, your solution is the right one. Actually with the .env file that I had as a portainer they had passed the wrong values to the container. By creating a .hoarder.env file everything works perfectly. Thank you

<!-- gh-comment-id:2600775437 --> @tiberio87 commented on GitHub (Jan 19, 2025): > if your env file has hostname variable anywhere, create a seperate .env file for hoarder excluding hostname variable. I had an .env file for all my containers and was passing hostname to traefik. somehow this was messing up hoarder. i created a seperate .env file just for hoarder, mapped to compose and it worked. It finally works, your solution is the right one. Actually with the .env file that I had as a portainer they had passed the wrong values to the container. By creating a .hoarder.env file everything works perfectly. Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#588
No description provided.