Failed to enable plugin
Using plugin system fails to enable plugin
2024-08-08 08:08:22.001 [2268993] main/150/vshard.rebalancer/vshard.storage I> The cluster is balanced ok. Schedule next rebalancing after 3600.000000 seconds
2024-08-08 08:08:27.207 [2268993] main/116/governor_loop I> checking if plugin is ready for installation on instances
2024-08-08 08:08:27.207 [2268993] main/116/governor_loop I> calling proc_load_plugin_dry_run, instance_id: i1
2024-08-08 08:08:27.207 [2268993] main/116/governor_loop I> calling proc_load_plugin_dry_run, instance_id: i2
2024-08-08 08:08:27.208 [2268993] main/129/.proc_load_plugin_dry_run I> Plugin registry content from file "./plugins/uroboros/0.1.6/liburoboros.so": [("uroboros", "0.1.6")]
2024-08-08 08:08:27.209 [2268993] main/116/governor_loop I> instance is ready to install plugin, instance_id: i2
2024-08-08 08:08:27.209 [2268993] main/116/governor_loop I> instance is ready to install plugin, instance_id: i1
2024-08-08 08:08:27.210 [2268993] main/116/governor_loop I> finalizing plugin installing
2024-08-08 08:08:27.211 [2268993] main/116/governor_loop I> nothing to do, waiting for events to handle
2024-08-08 08:08:27.212 [2268993] main/159/console/unix/: I> applying `UP` migrations, progress: 0/1
2024-08-08 08:08:27.212 [2268993] main/159/console/unix/: I> parsing migrations file './plugins/uroboros/0.1.6/migrations/0001_state.db'
2024-08-08 08:08:27.213 [2268993] main/159/console/unix/: I> done parsing migrations file './plugins/uroboros/0.1.6/migrations/0001_state.db', elapsed time: 288.826µs
2024-08-08 08:08:27.213 [2268993] main/159/console/unix/: schema.rs:2138 W> `sharding_fn` is specified but will be ignored, as `distribution` is `global`
2024-08-08 08:08:27.317 [2268993] main/116/governor_loop I> applying pending schema change
2024-08-08 08:08:27.317 [2268993] main/116/governor_loop I> calling proc_apply_schema_change, instance_id: i1
2024-08-08 08:08:27.318 [2268993] main/116/governor_loop I> applied schema change on instance, instance_id: i1
2024-08-08 08:08:27.318 [2268993] main/116/governor_loop I> finalizing schema change, op: DdlCommit
2024-08-08 08:08:27.319 [2268993] main/159/console/unix/: I> hashing migrations file './plugins/uroboros/0.1.6/migrations/0001_state.db'
2024-08-08 08:08:27.319 [2268993] main/159/console/unix/: I> done hashing migrations file './plugins/uroboros/0.1.6/migrations/0001_state.db', elapsed time: 212.905µs
2024-08-08 08:08:27.320 [2268993] main/116/governor_loop I> nothing to do, waiting for events to handle
2024-08-08 08:08:27.422 [2268993] main/159/console/unix/: I> applying `UP` migrations, progress: 1/1
2024-08-08 08:08:54.511 [2268993] main/116/governor_loop I> enabling/disabling service at new tiers
2024-08-08 08:08:54.511 [2268993] main/116/governor_loop I> finalizing topology update
2024-08-08 08:08:54.513 [2268993] main/116/governor_loop I> nothing to do, waiting for events to handle
2024-08-08 08:08:57.392 [2268993] main/116/governor_loop plan.rs:557 E> Trying to enable a non-fully installed plugin (migration is partially applied)
2024-08-08 08:08:57.392 [2268993] main/116/governor_loop I> enabling plugin
2024-08-08 08:08:57.392 [2268993] main/116/governor_loop I> finalizing plugin enabling
2024-08-08 08:08:57.394 [2268993] main/116/governor_loop I> nothing to do, waiting for events to handle
box.space._pico_plugin:fselect()
- - +----------+-------+------------+-------+---------------------------------+-----------------------------+
- ǀ name ǀenabledǀ services ǀversionǀ description ǀ migration_list ǀ
- +----------+-------+------------+-------+---------------------------------+-----------------------------+
- ǀ"uroboros"ǀ false ǀ["uroboros"]ǀ"0.1.6"ǀ"Plugin tnt clusters replication"ǀ["migrations\/0001_state.db"]ǀ
- +----------+-------+------------+-------+---------------------------------+-----------------------------+
...
box.space._pico_plugin_migration:fselect()
- - +-----------+---------------+----------------------------------+
- ǀplugin_nameǀmigration_file ǀ hash ǀ
- +-----------+---------------+----------------------------------+
- ǀ"uroboros" ǀ"0001_state.db"ǀ"e7baf94a91c4c48393e7400717d6ebe3"ǀ
- +-----------+---------------+----------------------------------+
...
Commands to run instances
RUST_BACKTRACE=full ../picodata/target/debug/picodata run --plugin-dir=./plugins --listen=localhost:4401 --peer=localhost:4401 --service-password-file=password.txt --init-replication-factor=2 --data-dir=one --http-listen=localhost:9091
RUST_BACKTRACE=full ../picodata/target/debug/picodata run --plugin-dir=./plugins --listen=localhost:4402 --peer=localhost:4401 --service-password-file=password.txt --data-dir=two --http-listen=localhost:9092
Plugin steps
pico.install_plugin("uroboros", "0.1.6", {migrate=true})
pico.service_append_tier("uroboros", "0.1.6", "uroboros", "default")
pico.enable_plugin("uroboros", "0.1.6")
Plugin dir contents
plugins/uroboros/0.1.6/liburoboros.so
plugins/uroboros/0.1.6/manifest.yaml
plugins/uroboros/0.1.6/migrations/0001_state.db
Manifest
description: Plugin tnt clusters replication
name: uroboros
version: 0.1.6
services:
- name: uroboros
description: uroboros descr
default_configuration:
password: password
producer:
user_url: http://localhost:9001/api/v1/user
topology_url: http://localhost:9001
consumer:
type: tarantool
attributes:
user_url: http://localhost:9001/api/v1/user
topology_url: http://localhost:9002
enabled_groups: ["default"]
disabled_spaces: []
migration:
- migrations/0001_state.db