Closed dannylin108 closed 9 months ago
A bit late, but did you have Dokku installed via a docker container or on the host? We used to not support container-based installs of Dokku, but that should be fixed now.
For posterity:
root@dokku:~# dokku typesense:create lollipop
Waiting for container to be ready
=====> Typesense container created: lollipop
=====> lollipop typesense service information
Config dir: /var/lib/dokku/services/typesense/lollipop/config
Config options:
Data dir: /var/lib/dokku/services/typesense/lollipop/data
Dsn: typesense://:438e0f4b07b6793778d47e870191bd0f09f0308902472034956f4ba0327e1aec@dokku-typesense-lollipop:8108
Exposed ports: -
Id: 99c00d29ad8855e063ecd1338fe13bfec8193712dc064d5232b0681cd0795dab
Internal ip: 172.17.0.12
Initial network:
Links: -
Post create network:
Post start network:
Service root: /var/lib/dokku/services/typesense/lollipop
Status: running
Version: typesense/typesense:0.24.1
root@dokku:~# dokku typesense:logs lollipop
I20230428 02:14:26.955669 1 typesense_server_utils.cpp:357] Starting Typesense 0.24.1
I20230428 02:14:26.955978 1 typesense_server_utils.cpp:360] Typesense is using jemalloc.
I20230428 02:14:26.956535 1 typesense_server_utils.cpp:409] Thread pool size: 16
I20230428 02:14:26.960058 1 store.h:63] Initializing DB by opening state dir: /data/db
I20230428 02:14:26.974615 1 store.h:63] Initializing DB by opening state dir: /data/meta
I20230428 02:14:26.995528 1 ratelimit_manager.cpp:475] Loaded 0 rate limit rules.
I20230428 02:14:26.995556 1 ratelimit_manager.cpp:476] Loaded 0 rate limit bans.
I20230428 02:14:26.995743 1 typesense_server_utils.cpp:504] Starting API service...
I20230428 02:14:26.996053 118 typesense_server_utils.cpp:255] Since no --nodes argument is provided, starting a single node Typesense cluster.
I20230428 02:14:26.996438 1 http_server.cpp:178] Typesense has started listening on port 8108
I20230428 02:14:27.006129 118 server.cpp:1045] Server[braft::RaftStatImpl+braft::FileServiceImpl+braft::RaftServiceImpl+braft::CliServiceImpl] is serving on port=8107.
I20230428 02:14:27.006155 118 server.cpp:1048] Check out http://dokku.typesense.lollipop:8107 in web browser.
I20230428 02:14:27.008188 118 raft_server.cpp:65] Nodes configuration: 172.17.0.12:8107:8108
I20230428 02:14:27.008302 118 raft_server.cpp:106] Snapshot does not exist. We will remove db dir and init db fresh.
I20230428 02:14:27.009232 119 batched_indexer.cpp:124] Starting batch indexer with 16 threads.
I20230428 02:14:27.010565 119 batched_indexer.cpp:129] BatchedIndexer skip_index: -9999
I20230428 02:14:27.010857 118 store.h:298] rm /data/db success
I20230428 02:14:27.011085 118 store.h:63] Initializing DB by opening state dir: /data/db
I20230428 02:14:27.023252 118 store.h:322] DB open success!
I20230428 02:14:27.023445 118 raft_server.cpp:491] Loading collections from disk...
I20230428 02:14:27.023600 118 collection_manager.cpp:159] CollectionManager::load()
I20230428 02:14:27.023747 118 auth_manager.cpp:34] Indexing 0 API key(s) found on disk.
I20230428 02:14:27.023883 118 collection_manager.cpp:179] Loading upto 8 collections in parallel, 1000 documents at a time.
I20230428 02:14:27.023953 118 collection_manager.cpp:188] Found 0 collection(s) on disk.
I20230428 02:14:27.024503 118 collection_manager.cpp:278] Loaded 0 collection(s).
I20230428 02:14:27.025064 118 collection_manager.cpp:282] Initializing batched indexer from snapshot state...
I20230428 02:14:27.025205 118 raft_server.cpp:498] Finished loading collections from disk.
I20230428 02:14:27.025863 118 log.cpp:674] Use crc32c as the checksum type of appending entries
W20230428 02:14:27.026041 118 protobuf_file.cpp:91] open file failed, path: /data/state/log/log_meta: FILE_ERROR_NOT_FOUND
W20230428 02:14:27.026146 118 log.cpp:685] /data/state/log is empty
I20230428 02:14:27.027343 118 log.cpp:1136] log save_meta /data/state/log/log_meta first_log_index: 1 time: 996
W20230428 02:14:27.027570 118 protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
I20230428 02:14:27.027710 118 raft_meta.cpp:521] Loaded single stable meta, path /data/state/meta term 1 votedfor 0.0.0.0:0:0 time: 144
W20230428 02:14:27.027912 118 protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
I20230428 02:14:27.028021 118 raft_meta.cpp:521] Loaded single stable meta, path /data/state/meta term 1 votedfor 0.0.0.0:0:0 time: 127
I20230428 02:14:27.028148 118 node.cpp:576] node default_group:172.17.0.12:8107:8108 init, term: 1 last_log_id: (index=0,term=0) conf: 172.17.0.12:8107:8108 old_conf:
I20230428 02:14:27.028357 118 node.cpp:1549] node default_group:172.17.0.12:8107:8108 term 1 start vote and grant vote self
I20230428 02:14:27.029490 118 raft_meta.cpp:546] Saved single stable meta, path /data/state/meta term 2 votedfor 172.17.0.12:8107:8108 time: 1023
I20230428 02:14:27.029654 118 node.cpp:1783] node default_group:172.17.0.12:8107:8108 term 2 become leader of group 172.17.0.12:8107:8108
I20230428 02:14:27.030758 127 log.cpp:108] Created new segment `/data/state/log/log_inprogress_00000000000000000001' with fd=23
I20230428 02:14:27.031026 127 raft_server.h:273] Configuration of this group is 172.17.0.12:8107:8108
I20230428 02:14:27.031107 127 node.cpp:3142] node default_group:172.17.0.12:8107:8108 reset ConfigurationCtx, new_peers: 172.17.0.12:8107:8108, old_peers: 172.17.0.12:8107:8108
I20230428 02:14:27.031205 127 raft_server.h:256] Node becomes leader, term: 2
I20230428 02:14:27.031286 118 raft_server.cpp:129] Node last_index: 1
I20230428 02:14:27.031363 118 typesense_server_utils.cpp:306] Typesense peering service is running on 172.17.0.12:8107
I20230428 02:14:27.031435 118 typesense_server_utils.cpp:307] Snapshot interval configured as: 3600s
I20230428 02:14:27.031476 118 typesense_server_utils.cpp:308] Snapshot max byte count configured as: 4194304
W20230428 02:14:27.031538 118 controller.cpp:1454] SIGINT was installed with 1
I20230428 02:14:27.031605 118 raft_server.cpp:546] Term: 2, last_index index: 1, committed_index: 1, known_applied_index: 1, applying_index: 0, queued_writes: 0, pending_queue_size: 0, local_sequence: 0
I20230428 02:14:27.031692 127 raft_server.h:60] Peer refresh succeeded!
I20230428 02:14:37.032969 118 raft_server.cpp:546] Term: 2, last_index index: 1, committed_index: 1, known_applied_index: 1, applying_index: 0, queued_writes: 0, pending_queue_size: 0, local_sequence: 0
I20230428 02:14:37.033282 127 raft_server.h:60] Peer refresh succeeded!
root@dokku:~#
Closing as there hasn't been a response.
Description of problem
typesense container can not start, because fails to parse the config file.
How reproducible
just using the manual trying to do
dokku typesense:create lollipop
. It fails with the message 'Unable to connect'$ docker container ls
shows that thedokku.typesense.lollipop
container is in infinite restarting cycle.$ dokku typesense:logs lollipop
shows the message: