Cannot set a staging-dir in the project-anatomy

I want to add a stagingdir in the project-anatomy of a testproject (<my_project>/anatomy/templates/staging-directories). I click the plus-button and add my settings, then I click “save changes”(top-right), but then the button stays blue and when I refresh, the settings are not stored.
When I change this under a n anatomy-preset, then it saves normally.

Am I overlooking something why this does not work?

I’m using:
core-1.0.3
applications-1.0.2

I’m now also experiencing this while saving modifications to the tools-attribute (/studio-settings/attributes->tools->enum-list.
I can save but the savings are not persistent. When I refresh the changes are gone.

I’m using the ayon-docker, and if I check the logs with:
docker logs -f $(docker ps -q -f name=ayon-docker-server)
Then I do see an error, but I don’t know if it is related:

2024-11-01 15:23:51 DEBUG      server          Initializing addon zbrush
2024-11-01 15:23:51 DEBUG      server          Initializing addon kitsu v1.2.3 in /addons/kitsu/1.2.3
2024-11-01 15:23:51 DEBUG      server          Initializing addon kitsu
2024-11-01 15:23:51 ERROR      server          Error during applications 0.1.5 setup

    Traceback (most recent call last):
      File "/backend/ayon_server/api/server.py", line 448, in startup_event
        await version.setup()
      File "/addons/applications/0.1.5/server/__init__.py", line 121, in setup
        need_restart = await self.create_applications_attribute()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/addons/applications/0.1.5/server/__init__.py", line 156, in create_applications_attribute
        apps_enum = get_enum_items_from_groups(all_applications)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/addons/applications/0.1.5/server/__init__.py", line 72, in get_enum_items_from_groups
        group_label = group["label"] or group_name
                      ~~~~~^^^^^^^^^
    KeyError: 'label'


2024-11-01 15:23:51 ERROR      server          Addon applications 0.1.5 failed to start. Unloading.
2024-11-01 15:23:51 INFO       server          Unloading addon applications 0.1.5
2024-11-01 15:23:52 GOOD NEWS  server          Server is now ready to connect

According to the addon-list, ‘applications-0.1.5’ is broken. But I cannot remove it… But we are using the latest anyway(1.0.2)

Sorry for the dump, but maybe someone has a solutions or some deeper knowledge to share about this… I’m still getting to know the code. An impressive improvement since Avalon I must say :slight_smile:

Ah yes - this may be due to a bug in that very old ayon-applications addon and you’d need to purge it from your server.

You can either delete it from the docker storage manually I believe. OR delete the newer ayon-applications addon first (which is what is breaking the older version), then delete the old, then reinstall the new one.

Whether that influences the “losing of settings” on save that you’re facing - I’m not sure because I haven’t seen that particular case.

Thanks, I deleted the /addons/applications/0.1.5-folder manually, and after a restart it is now gone… like it should :slight_smile:
Unfortunately the saving of the staging-dir is still not possible.

Is there a way to get more debugging-messages on the server side?

Ah now I see - I missed this screenshot.

You should NOT need to customize the attribute at all. The addon manages it for you.

You either do it via Application Filters and Tools filters in Applications addon, or if using the legacy method you set it on Project Anatomy > Attributes > Applications and Tools.

See: Applications and Tools | AYON Docs

Thanks again!
I was a little confused because when I added my tool-variant(mgear for example) in the “studio-settings/applications/tools-defenitions”, it did not appear in the “project-settings/anatomy/attributes/tools”-dropdownmenu-list. (aand I read that this method is deprecated anyway… :slight_smile:

But it does appear in the filter-menu, and it the environment gets loaded now… so thats working nicely!

1 Like

@kaspar111 I marked the topic as solved - but looking back at the topic title and the initial question your issue there seems completely different. Did you resolve that too?

Unfortunately not… Saving of the staging-dir in project-anatomy is still not persistent.

I wanted to create a separate render/export-folder(stagingfolder) because of folder-permission-restrictions. But we are changing the folder-permissions atm, so we probably won’t be needing this option (for now). I’ll see if future updates might fix this issue (and report to this topic if so…)

I can reproduce the bug here on server 1.5.4+202411011131

Before save I add an entry to setting ayon+anatomy://{PROJECTNAME}/templates/staging:

After save and refresh:

Thanks for your report. Fix will be included in the next release Fix: Saving staging directories to existing project anatomy by martastain · Pull Request #422 · ynput/ayon-backend · GitHub