tg-spam: Can't migrate to 1.16
Here is my compose:
tg-spam:
image: umputun/tg-spam:v1.15.0
restart: always
container_name: tg-spam
user: "1000:1000" # set uid:gid to host user to avoid permission issues with mounted volumes
environment:
- TZ=Europe/Berlin
- TELEGRAM_TOKEN=tokenhere
- TELEGRAM_GROUP=-gid1
- ADMIN_GROUP=-gid2
- LOGGER_ENABLED=true
- LOGGER_FILE=/srv/log/tg-spam.log
- LOGGER_MAX_SIZE=5M
- FILES_DYNAMIC=/srv/dynamic
- NO_SPAM_REPLY=true
- DEBUG=false
- TRAINING=false
- FIRST_MESSAGES_COUNT=3
- SERVER_ENABLED=false
- SERVER_AUTH=
- MIN_MSG_LEN=25
- DISABLE_ADMIN_SPAM_FORWARD=true
volumes:
- ./log/tg-spam:/srv/log
- ./var/tg-spam:/srv/dynamic
When I update the version to 1.16.0 or 1.16.1 I always get the error like
tg-spam | start tg-spam
tg-spam | content of /srv/dynamic
tg-spam | total 2028
tg-spam | drwxrwxr-x 2 app app 4096 Feb 10 08:51 .
tg-spam | drwxr-xr-x 1 root root 4096 Feb 10 08:51 ..
tg-spam | -rw-r--r-- 1 app app 505 Jun 26 2024 ham-dynamic.txt.loaded
tg-spam | -rw-r--r-- 1 app app 349 Feb 10 08:45 spam-dynamic.txt.loaded
tg-spam | -rw-r--r-- 1 app app 1028096 Feb 10 08:51 tg-spam.db
tg-spam | -rw-r--r-- 1 app app 1028096 Feb 10 08:51 tg-spam.db.v1_16_1-2742a37-20250209T20:33:19
tg-spam | tg-spam v1.16.1-2742a37-20250209T20:33:19
tg-spam | 2025/02/10 08:51:07.339 [ERROR] can't make spam bot, can't reload samples, no pesistent spam or ham samples found in the store
tg-spam | 2025/02/10 08:51:07.339 [ERROR] can't make spam bot, can't reload samples, no pesistent spam or ham samples found in the store
tg-spam | >>> stack trace:
tg-spam | main.main()
tg-spam | /build/app/main.go:200 +0x678
tg-spam | start tg-spam
tg-spam | content of /srv/dynamic
tg-spam | total 2028
tg-spam | drwxrwxr-x 2 app app 4096 Feb 10 08:51 .
tg-spam | drwxr-xr-x 1 root root 4096 Feb 10 08:51 ..
tg-spam | -rw-r--r-- 1 app app 505 Jun 26 2024 ham-dynamic.txt.loaded
tg-spam | -rw-r--r-- 1 app app 349 Feb 10 08:45 spam-dynamic.txt.loaded
tg-spam | -rw-r--r-- 1 app app 1028096 Feb 10 08:51 tg-spam.db
tg-spam | -rw-r--r-- 1 app app 1028096 Feb 10 08:51 tg-spam.db.v1_16_1-2742a37-20250209T20:33:19
tg-spam | tg-spam v1.16.1-2742a37-20250209T20:33:19
tg-spam | 2025/02/10 08:51:08.489 [ERROR] can't make spam bot, can't reload samples, no pesistent spam or ham samples found in the store
tg-spam | 2025/02/10 08:51:08.489 [ERROR] can't make spam bot, can't reload samples, no pesistent spam or ham samples found in the store
tg-spam | >>> stack trace:
tg-spam | main.main()
tg-spam | /build/app/main.go:200 +0x678
I thnk I need migration manual
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- it should address #246 and #245 The issue is the lack of mounted sample volumes, and the default set of samples in this case is not available for migration. To address it, the default location of sam... — committed to umputun/tg-spam by umputun 2 years ago
- it should address #246 and #245 The issue is the lack of mounted sample volumes, and the default set of samples in this case is not available for migration. To address it, the default location of sam... — committed to umputun/tg-spam by umputun 2 years ago
yes, this is expected, see https://github.com/umputun/tg-spam/pull/247
The fix was merged in, and hot-fix v1.16.2 was released.
@asm0dey - Let’s keep this issue open for now. I’m not sure yet what the correct fix should be as I need to make sure it won’t affect those with FILES_SAMPLES set and won’t cause re-import every time it starts. But at least there is a manual fix in place, and affected users will be able to find it right away. I will also pin it.