Open aka-anoop opened 1 month ago
Hi @aka-anoop
Can you give us your version of Kitsu API (Zou) from https://<your-instance>/api/status
?
It looks like your database is not up-to-date!
Try to follow the "update" topic from the documentation, especially the "Update database schema" section: https://zou.cg-wire.com/#update
If the db hasn’t been updated properly you’ll definitely have casting issues. To fully update you’ll not only need to update kitsu but zou and the db:
this is my normal process for updating kitsu etc:
cd /opt/zou sudo /opt/zou/zouenv/bin/python -m pip install --upgrade zou sudo -u zou DB_PASSWORD=YOURDBPASSWORD /opt/zou/zouenv/bin/zou upgrade-db sudo chown -R zou:www-data /opt/zou/backups sudo chown -R zou:www-data /opt/zou/logs sudo chown -R zou:www-data /opt/zou/tmp sudo chown -R zou:www-data /opt/zou/zouenv sudo systemctl restart zou sudo systemctl restart zou-events sudo systemctl restart zou-jobs cd /opt/kitsu sudo git reset --hard sudo git pull --rebase origin build sudo systemctl restart nginx
Try this and see if it works
Thanks for the suggestions @NicoPennec and @PeteDraper
⚠️ Missed mentioning that I am running this off docker for testing.
Here is what I tried based on both of you suggestions:
Connected to the docker instance and ran the following
source /opt/zou/env/bin/activate(env) root@cgwire:/opt/zou# python -m pip install --upgrade zou
Requirement already satisfied: zou in ./env/lib/python3.10/site-packages (0.19.56)
Collecting zou
Successfully installed flask-socketio-5.4.1 gevent-24.10.1 numpy-2.1.2 redis-5.1.1 zou-0.19.57
(env) root@cgwire:/opt/zou# DB_PASSWORD=mysecretpassword /opt/zou/env/bin/zou upgrade-db
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 59a7445a966c -> 8e67c183bed7, add prefeence fields
Updated kitsu using instructions mentioned in https://zou.cg-wire.com/
curl -L -o /tmp/kitsu.tgz $(curl -v <https://api.github.com/repos/cgwire/kitsu/releases/latest> | grep 'browser_download_url.*kitsu-.*.tgz' | cut -d : -f 2,3 | tr -d \\")
tar xvzf /tmp/kitsu.tgz -C /opt/zou/kitsu/
Restarted the docker instance and tried again. Same error! Tested Zou version using api/status endpoint
{
"name": "Zou",
"version": "0.19.57",
"database-up": true,
"key-value-store-up": true,
"event-stream-up": true,
"job-queue-up": false,
"indexer-up": false
}
The request payload is as follows
[
{
"asset_id": "28091433-daff-4fc3-9d97-909e0deb87a0",
"label": "animate",
"nb_occurences": "1ffbd7da7-02d6-47c6-9558-569da0a76711"
}
]
⚠️ It looks like nb_occurences is being concatenated with entity_id 1, ffbd7da7-02d6-47c6-9558-569da0a76711
Context
Studio name: BOTVFX Kitsu version: 0.19.65 Production type: Feature Film
Describe the bug
Error while trying to add +1 to cast assets
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):