Testing AYON pipeline early access beta (Deprecated)

I’m not too familiar with docker on Windows and seem to be getting stuck running the ayon server correctly.

My getting started

These are roughly the steps I had taken:

git clone https://github.com/ynput/OpenPype.git
pushd OpenPype
git checkout release/next-minor
git submodule update --init --recursive
popd

git clone https://github.com/ynput/ayon-docker.git
:: manually comment out the volume line for Windows in docker-compose.yml

git clone https://github.com/ynput/ayon-addons-settings.git
:: copy addons to ayon docker addons
xcopy .\ayon-addons-settings .\ayon-docker\addons /E /H /C /I

cd ayon-docker
docker compose up -d
powershell.exe -executionpolicy bypass -file ./manage.ps1 demo

With docker compose up -d I initially got to:

 ✔ Network ayon-docker_default       Created  
 ✔ Volume "ayon-docker_db"           Created   
 ✔ Container ayon-docker-redis-1     Started   
 ✔ Container ayon-docker-postgres-1  Healthy
 ✔ Container ayon-docker-server-1    Started

Failing due to no disk space :wink:

But rather quickly it started showing them as Exited with postgres: Exited (139) and ynput:ayon-dev: Exited (3) and the demo creation also failed:

powershell.exe -executionpolicy bypass -file ./manage.ps1 demo
Error response from daemon: Container 987654321verylongid122 is not running
Error response from daemon: Container 987654321verylongid122 is not running
Error response from daemon: Container 987654321verylongid122 is not running

I found out that apparently this was due to my disk drive being full at that point in time. I cleared up some space

Clear everything, try again…

I removed the full stack, I tried both docker compose down -v and just deleting things through Docker Desktop. Restarted my machine (since Docker itself was giving some issues too.) The images/stack didn’t show anymore so I redid the docker compose up -d

Now it seemed like it started running as intended so I tried to set up the demo:

powershell.exe -executionpolicy bypass -file ./manage.ps1 demo
2023-06-13 20:47:04 INFO       Log collector initialized
Exception in thread Thread-1 (execute):
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/backend/ayon_server/entities/core/attrib.py", line 37, in execute
    loop.run_until_complete(self.load())
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/backend/ayon_server/entities/core/attrib.py", line 47, in load
    async for row in Postgres.iterate(query):
  File "/backend/ayon_server/lib/postgres.py", line 96, in iterate
    statement = await connection.prepare(query)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 565, in prepare
    return await self._prepare(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 583, in _prepare
    stmt = await self._get_statement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 397, in _get_statement
    statement = await self._protocol.prepare(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "asyncpg/protocol/protocol.pyx", line 168, in prepare
asyncpg.exceptions.UndefinedTableError: relation "public.attributes" does not exist
Error response from daemon: Container ca0801d51216be4c7de88e1fb3c1e49ae34a31fa8873a0c00085f5f0908f105b is restarting, wait until the container is running
Error response from daemon: Container ca0801d51216be4c7de88e1fb3c1e49ae34a31fa8873a0c00085f5f0908f105b is restarting, wait until the container is running

And then I also noticed the ayon-docker-server container kept restarting and noticed this in the logs:

2023-06-13 22:50:51 2023-06-13 20:50:51 INFO       Log collector initialized
2023-06-13 22:50:53 Exception in thread Thread-1 (execute):
2023-06-13 22:50:53 Traceback (most recent call last):
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
2023-06-13 22:50:53     self.run()
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/threading.py", line 975, in run
2023-06-13 22:50:53     self._target(*self._args, **self._kwargs)
2023-06-13 22:50:53   File "/backend/ayon_server/entities/core/attrib.py", line 37, in execute
2023-06-13 22:50:53     loop.run_until_complete(self.load())
2023-06-13 22:50:53   File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
2023-06-13 22:50:53   File "/backend/ayon_server/entities/core/attrib.py", line 47, in load
2023-06-13 22:50:53     async for row in Postgres.iterate(query):
2023-06-13 22:50:53   File "/backend/ayon_server/lib/postgres.py", line 96, in iterate
2023-06-13 22:50:53     statement = await connection.prepare(query)
2023-06-13 22:50:53                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 565, in prepare
2023-06-13 22:50:53     return await self._prepare(
2023-06-13 22:50:53            ^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 583, in _prepare
2023-06-13 22:50:53     stmt = await self._get_statement(
2023-06-13 22:50:53            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 397, in _get_statement
2023-06-13 22:50:53     statement = await self._protocol.prepare(
2023-06-13 22:50:53                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "asyncpg/protocol/protocol.pyx", line 168, in prepare
2023-06-13 22:50:53 asyncpg.exceptions.UndefinedTableError: relation "public.attributes" does not exist
2023-06-13 22:50:53 [2023-06-13 20:50:53 +0000] [7] [ERROR] Exception in worker process
2023-06-13 22:50:53 Traceback (most recent call last):
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2023-06-13 22:50:53     worker.init_process()
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/uvicorn/workers.py", line 66, in init_process
2023-06-13 22:50:53     super(UvicornWorker, self).init_process()
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2023-06-13 22:50:53     self.load_wsgi()
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2023-06-13 22:50:53     self.wsgi = self.app.wsgi()
2023-06-13 22:50:53                 ^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2023-06-13 22:50:53     self.callable = self.load()
2023-06-13 22:50:53                     ^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2023-06-13 22:50:53     return self.load_wsgiapp()
2023-06-13 22:50:53            ^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2023-06-13 22:50:53     return util.import_app(self.app_uri)
2023-06-13 22:50:53            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
2023-06-13 22:50:53     mod = importlib.import_module(module)
2023-06-13 22:50:53           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
2023-06-13 22:50:53     return _bootstrap._gcd_import(name[level:], package, level)
2023-06-13 22:50:53            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2023-06-13 22:50:53   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2023-06-13 22:50:53   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
2023-06-13 22:50:53   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
2023-06-13 22:50:53   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
2023-06-13 22:50:53   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2023-06-13 22:50:53   File "/backend/ayon_server/api/__init__.py", line 38, in <module>
2023-06-13 22:50:53     from ayon_server.api.server import app
2023-06-13 22:50:53   File "/backend/ayon_server/api/server.py", line 26, in <module>
2023-06-13 22:50:53     from ayon_server.graphql import router as graphql_router
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/__init__.py", line 29, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.nodes.folder import folder_from_record
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/nodes/folder.py", line 9, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.resolvers.products import get_products
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/resolvers/products.py", line 8, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.nodes.product import ProductNode
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/nodes/product.py", line 9, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.resolvers.versions import get_versions
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/resolvers/versions.py", line 7, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.nodes.version import VersionNode
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/nodes/version.py", line 9, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.resolvers.representations import get_representations
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/resolvers/representations.py", line 7, in <module>
2023-06-13 22:50:53     from ayon_server.graphql.nodes.representation import RepresentationNode
2023-06-13 22:50:53   File "/backend/ayon_server/graphql/nodes/representation.py", line 49, in <module>
2023-06-13 22:50:53     @RepresentationEntity.strawberry_attrib()
2023-06-13 22:50:53      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-06-13 22:50:53   File "/usr/local/lib/python3.11/site-packages/strawberry/experimental/pydantic/object_type.py", line 168, in wrap
2023-06-13 22:50:53     raise MissingFieldsListError(cls)
2023-06-13 22:50:53 strawberry.experimental.pydantic.exceptions.MissingFieldsListError: List of fields to copy from <class 'ayon_server.graphql.nodes.representation.RepresentationAttribType'> is empty. Add fields with the `auto` type annotation

What obvious thing did I do wrong?

Solved :white_check_mark:

EDIT: @martin.wacker mentioned on discord this is a bug in pushed updates from today. A solution is to manually trigger setup to deploy the database.

I ran:

powershell.exe -executionpolicy bypass -file ./manage.ps1 setup

Which gave me:

Server container: server
2023-06-13 21:06:05 INFO       Log collector initialized
2023-06-13 21:06:05 INFO       Starting setup
2023-06-13 21:06:06 INFO       (re)creating database schema
2023-06-13 21:06:06 DEBUG      Creating password for user admin
2023-06-13 21:06:06 INFO       Saving user admin
2023-06-13 21:06:06 DEBUG      Creating password for user demo
2023-06-13 21:06:06 INFO       Saving user demo
2023-06-13 21:06:06 DEBUG      Creating api key for user service
2023-06-13 21:06:06 INFO       Saving user service
2023-06-13 21:06:06 INFO       Deploying settings
2023-06-13 21:06:06 INFO       Saving settings for ftrack 1.0.0
2023-06-13 21:06:06 GOOD NEWS  Setup is finished

After that the server worked and I could trigger the demo deployment with powershell.exe -executionpolicy bypass -file ./manage.ps1 demo.

More strangeness.

So now, I ran a fresh server copy from the latest docker changes made by martastain and a new build from the latest commits.

  • Blender now publishes just fine, all the files parse into the directory just fine (models as FBX etc etc).

  • Photoshop works, After Effects works.

  • Nuke, can’t test till I get a non NC license.

  • Unreal, doesn’t seem to load as I get the same error I listed above “error in anatomy.format: ‘work_unreal’”

  • Resolve won’t load the menu at all, I get this error:

Summary
SyntaxError: future feature annotations is not defined
C:\Program Files\AYON\dependencies\pymongo\pyopenssl_context.py:26: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
  from cryptography.hazmat.backends import default_backend as _default_backend
Traceback (most recent call last):
  File "C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Comp\OpenPype__Menu.py", line 4, in <module>
    from openpype.pipeline import install_host
  File "C:\Program Files\AYON\openpype\pipeline\__init__.py", line 7, in <module>
    from .mongodb import (
  File "C:\Program Files\AYON\openpype\pipeline\mongodb.py", line 9, in <module>
    from openpype.client import OpenPypeMongoConnection
  File "C:\Program Files\AYON\openpype\client\__init__.py", line 5, in <module>
    from .entities import (
  File "C:\Program Files\AYON\openpype\client\entities.py", line 6, in <module>
    from .server.entities import *
  File "C:\Program Files\AYON\openpype\client\server\entities.py", line 3, in <module>
    from ayon_api import get_server_api_connection
  File "C:\Program Files\AYON\openpype\vendor\python\common\ayon_api\__init__.py", line 1, in <module>
    from .utils import (
  File "C:\Program Files\AYON\openpype\vendor\python\common\ayon_api\utils.py", line 14, in <module>
    import requests
  File "C:\Program Files\AYON\dependencies\requests\__init__.py", line 43, in <module>
    import urllib3
  File "C:\Program Files\AYON\dependencies\urllib3\__init__.py", line 5
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined```
  • Blender (and the tray tool) Loader doesn’t load at all, spinning wheel after selecting the project with the following error
Summary
Fetching asset..
Requested specific key from data subsetGroup
Traceback (most recent call last):
  File "C:\Program Files\AYON\openpype\tools\utils\lib.py", line 754, in run
    func(*args, **kwargs)
  File "C:\Program Files\AYON\openpype\tools\loader\model.py", line 447, in _fetch
    last_versions_by_subset_id = get_last_versions(
TypeError: get_last_versions() got an unexpected keyword argument 'active'
Traceback (most recent call last):
  File "C:\Program Files\AYON\openpype\tools\utils\lib.py", line 754, in run
    func(*args, **kwargs)
  File "C:\Program Files\AYON\openpype\tools\loader\model.py", line 447, in _fetch
    last_versions_by_subset_id = get_last_versions(
TypeError: get_last_versions() got an unexpected keyword argument 'active'```
  • Lastly, the tray publisher, it opens and I can select a project, the shot/asset and a task just fine but I can’t drag anything into it. I just get a black cursor stop sign suggesting that I’m dragging in something that’s not accepted
Summary

Blender (and tray tool) Loader doesn’t load

This was added with this PR Loader: Hide inactive versions in UI by iLLiCiTiT · Pull Request #5101 · ynput/OpenPype · GitHub which seems to hint that you are not up-to-date with latest release/next-minor state of OpenPype itself? Are you sure your branch is up to date?

Resolve

What Python version are you using in Resolve? annotations feature I believe is Py3.7+ only and thus if you’re using e.g. Py3.6 with Resolve then that will indeed fail. I suspect this is a recent change since I’ve used Py3.6 with resolve in the past just fine. Anyone knows where this might’ve originated from?

Hey @BigRoy

Thanks for your reply!

For the first issue, I can confirm that I’m using the latest version from that branch.
Just to satiate my paranoia, pretty much every time I’m re-building the tray tool or updating the docker container I’m deleting everything and doing a brand new clone job with this command:

git clone --recursive -b release/next-minor https://github.com/ynput/OpenPype.git

Then for the Resolve issue, so I read that as well as I was trying to debug the issue (that annots are Py3.7) but I thought it better to put the issue here as all instruction points to using Py3.6.2 with the Resolve integration.

and this is the default env:

So maybe it’s more of a documentation issue if we’re meant to be using 3.7.x instead?

So for 3.7, I installed the latest 3.7 binary install, change the env variable.

This time though I get this error when trying to load the menu tool in Resolve:

Summary
C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\numpy\__init__.py:139: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
  from . import _distributor_init
Traceback (most recent call last):
  File "C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Comp\OpenPype__Menu.py", line 20, in <module>
    result = main(os.environ)
  File "C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Comp\OpenPype__Menu.py", line 11, in main
    import openpype.hosts.resolve.api as bmdvr
  File "C:\Users\dragonfly\Documents\OpenPype\openpype\hosts\resolve\api\__init__.py", line 8, in <module>
    from .pipeline import (
  File "C:\Users\dragonfly\Documents\OpenPype\openpype\hosts\resolve\api\pipeline.py", line 21, in <module>
    from . import lib
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Users\dragonfly\Documents\OpenPype\openpype\hosts\resolve\api\lib.py", line 6, in <module>
    from opentimelineio import opentime
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\opentimelineio\__init__.py", line 35, in <module>
    from . import (
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\opentimelineio\opentime.py", line 1, in <module>
    from . _opentime import ( # noqa
  File "C:\ProgramData\miniconda3\envs\ayonPython\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'opentimelineio._opentime'

Okay so I did some digging, I just can’t work out why I have an issue loading the Loader in all apps. I get the same error yet I can Publish just fine, Workfiles too and I can see all the publishes on the server front end.

For Resolve, I randomly tried installing Python 3.9 (along with PySide2) and somehow I get further this time.
Now I do get the OpenPype Menu inside Resolve and all the panels load (same issue with Loader) but when I go to Publish I get this error mainly:
AttributeError: 'NoneType' object has no attribute 'GetProjectManager'

Here’s the full screenshot, showing the major errors from Resolve along with the build I’m running:

Summary

I feel like we’re getting closer, but I also somehow feel like I’m the only one here having these issues?

This sounds like something is trying to use resolve variable which failed to actually retrieve the resolve application correctly and thus is None. This can happen in particular in the Resolve integration if the host install hasn’t triggered because I believe then the bmdvr variable has not been set yet.

I expect that the actual error has thus happened much higher in your console log since it failed on initializing some particular part of the Resolve integration. Any chance you can copy paste the full log from Resolve’s console window instead?

Hi, I’m looking for the way connect to ayon-docker server and ayon tray (openpype) .
How did you configure the Ayon tray communicating with the server?

I’m encountering an error message while trying to establish a connection between the desktop app and the Ayon server. Do you have any suggestions regarding this issue?

Getting back into trying to build OpenPype release/next-minor via Cocker

Running Rocky Linux 8.7

>>> Using Dockerfile for centos7 ...
--- Cleaning build directory ...
>>> Running docker build ...
[+] Building 2.2s (20/23)                                                                                                                                                                 
 => [internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 2.20kB                                                                                                                                                  0.0s
 => [internal] load build definition from Dockerfile.centos7                                                                                                                         0.0s
 => => transferring dockerfile: 3.13kB                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/centos:7                                                                                                                          0.9s
 => [internal] load build context                                                                                                                                                    0.2s
 => => transferring context: 354.13kB                                                                                                                                                0.1s
 => [ 1/19] FROM docker.io/library/centos:7@sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4                                                                  0.0s
 => CACHED [ 2/19] RUN yum -y install deltarpm     && yum -y update     && yum clean all                                                                                             0.0s
 => CACHED [ 3/19] RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm     && yum -y install centos-release-scl     && yum -y install          0.0s
 => CACHED [ 4/19] WORKDIR /temp-patchelf                                                                                                                                            0.0s
 => CACHED [ 5/19] RUN git clone -b 0.17.0 --single-branch https://github.com/NixOS/patchelf.git .     && source scl_source enable devtoolset-7     && ./bootstrap.sh     && ./conf  0.0s
 => CACHED [ 6/19] RUN mkdir /opt/openpype                                                                                                                                           0.0s
 => CACHED [ 7/19] RUN curl https://pyenv.run | bash                                                                                                                                 0.0s
 => CACHED [ 8/19] RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"'>> $HOME/.bashrc     && echo 'eval "$(pyenv init -)"' >> $HOME/.bashrc     && echo 'eval "$(pyenv virtualenv-init  0.0s
 => CACHED [ 9/19] RUN source $HOME/.bashrc && pyenv install 3.9.12                                                                                                                  0.0s
 => CACHED [10/19] COPY . /opt/openpype/                                                                                                                                             0.0s
 => CACHED [11/19] RUN rm -rf /openpype/.poetry || echo "No Poetry installed yet."                                                                                                   0.0s
 => CACHED [12/19] RUN chmod +x /opt/openpype/tools/create_env.sh && chmod +x /opt/openpype/tools/build.sh                                                                           0.0s
 => CACHED [13/19] WORKDIR /opt/openpype                                                                                                                                             0.0s
 => CACHED [14/19] RUN cd /opt/openpype     && source $HOME/.bashrc     && pyenv local 3.9.12                                                                                        0.0s
 => CACHED [15/19] RUN source $HOME/.bashrc     && ./tools/create_env.sh                                                                                                             0.0s
 => ERROR [16/19] RUN source $HOME/.bashrc     && ./tools/fetch_thirdparty_libs.sh                                                                                                   1.0s
------                                                                                                                                                                                    
 > [16/19] RUN source $HOME/.bashrc     && ./tools/fetch_thirdparty_libs.sh:                                                                                                              
#0 0.506                                                                                                                                                                                  
#0 0.507                                                                                                                                                                                  
#0 0.507              . .   ..     .    ..                                                                                                                                                
#0 0.507         _oOOP3OPP3Op_. .                                                                                                                                                         
#0 0.507      .PPpo~·   ··   ~2p.  ··  ····  ·  ·
#0 0.507     ·Ppo · .pPO3Op.· · O:· · · ·
#0 0.507    .3Pp · oP3'· 'P33· · 4 ··   ·  ·   · ·· ·  ·  ·
#0 0.507   ·~OP    3PO·  .Op3    : · ··  _____  _____  _____
#0 0.507   ·P3O  · oP3oP3O3P' · · ·   · /    /·/    /·/    /
#0 0.507    O3:·   O3p~ ·       ·:· · ·/____/·/____/ /____/
#0 0.507    'P ·   3p3·  oP3~· ·.P:· ·  · ··  ·   · ·· ·  ·  ·
#0 0.507   · ':  · Po'  ·Opo'· .3O· .  o[ by Pype Club ]]]==- - - ·  ·
#0 0.507     · '_ ..  ·    . _OP3··  ·  ·https://openpype.io·· ·
#0 0.507          ~P3·OPPPO3OP~ · ··  ·
#0 0.507            ·  ' '· ·  ·· · · · ··  ·
#0 0.507 
#0 0.507 
#0 0.516 >>> Reading Poetry ... OK
#0 0.516 >>> Running Pype tool ...
#0 0.874 Traceback (most recent call last):
#0 0.874   File "/opt/openpype/./tools/fetch_thirdparty_libs.py", line 13, in <module>
#0 0.874     import requests
#0 0.874   File "/opt/openpype/.venv/lib/python3.9/site-packages/requests/__init__.py", line 43, in <module>
#0 0.874     import urllib3
#0 0.874   File "/opt/openpype/.venv/lib/python3.9/site-packages/urllib3/__init__.py", line 38, in <module>
#0 0.874     raise ImportError(
#0 0.874 ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips  26 Jan 2017. See: https://github.com/urllib3/urllib3/issues/2168
------
Dockerfile.centos7:93
--------------------
  92 |     
  93 | >>> RUN source $HOME/.bashrc \
  94 | >>>     && ./tools/fetch_thirdparty_libs.sh
  95 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c source $HOME/.bashrc     && ./tools/fetch_thirdparty_libs.sh" did not complete successfully: exit code: 1
0
!!! Docker build failed.
!!! Docker command failed, cannot find image id.

Any idea whats wrong here?

UPDATE:
I’ve worked around the issue now by reading PR #5209 and found that I can set the environment variable AYON_BUNDLE_NAME to the bundle name that I’ve created. Doing so caused the desktop app to open successfully.

After git-pulling on ayon-docker and OpenPype repos and trying to update to the new 3.16.1 release, I’m having trouble getting the ayon desktop app to launch. Seems like there is some new “bundle” assignment for the site that is required now.
image
I’ve setup a bundle on the new bundle tab on the settings page, but I’m unsure how to assign this as production.


Using Ayon Server v0.3.1

I agree its not very intuitive, but you’ll need to assign the bundle as production and/or staging, by right-clicking on the bundle.

1 Like

@tokestuartjepsen

Is this documented somewhere that I missed?

Not as far as I know. Bundles are a quite recent addition.

1 Like

Bundles are still very new and are in the early stages of prototyping. What you are seeing there is more of a proof of concept than final design.

We are in the process rethinking it to make it more initiative. But the feedback is still good to have to validate our initial assumptions.

This is also why there isn’t any documentation yet.

when launcher starts, no application icon is visible


*** WRN: >>> { ModulesLoader }: [  Directory for addon applications 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\applications_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon blender 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\blender_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon celaction 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\celaction_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon clockify 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\clockify_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon core 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon deadline 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\deadline_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon flame 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\flame_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon fusion 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\fusion_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon hiero 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\hiero_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon houdini 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\houdini_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon kitsu 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\kitsu_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon maya 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\maya_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon muster 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\muster_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon nuke 0.1.1 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\nuke_0.1.1"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon resolve 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\resolve_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon royalrender 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\royalrender_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon timers_manager 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\timers_manager_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon traypublisher 0.1.1 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\traypublisher_0.1.1"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon tvpaint 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\tvpaint_0.1.0"  ]
*** WRN: >>> { ModulesLoader }: [  Directory for addon unreal 0.1.0 does not exists. Path "C:\Users\User\AppData\Local\Ynput\AYON\addons\unreal_0.1.0"  ]
Initialization of module ClockifyModule failed.
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 798, in initialize_modules
    module = modules_item(self, modules_settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 587, in __init__
    self.initialize(settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\clockify\clockify_module.py", line 20, in initialize
    raise Exception("Clockify Workspace is not set in settings.")
Exception: Clockify Workspace is not set in settings.
>>> loading environments ...
  - global AYON ...
  - for addons ...
WARNING:ModulesManager:Initialization of module ClockifyModule failed.
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 798, in initialize_modules
    module = modules_item(self, modules_settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 587, in __init__
    self.initialize(settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\clockify\clockify_module.py", line 20, in initialize
    raise Exception("Clockify Workspace is not set in settings.")
Exception: Clockify Workspace is not set in settings.
*** AYON [ 3.16.2 ] ---------------------------------------------------------------------------------------------------->>> Using AYON from [  C:\Program Files (x86)\OpenPype\3.16.2  ]
... AYON variant: [  production  ]
... AYON bundle:  [  None  ]
Registered font families: Noto Sans, Noto Sans, Noto Sans, Noto Sans, Noto Sans Mono Black, Noto Sans Mono, Noto Sans Mono ExtraBold, Noto Sans Mono ExtraLight, Noto Sans Mono Light, Noto Sans Mono Medium, Noto Sans Mono, Noto Sans Mono SemiBold, Noto Sans Mono Thin
*** WRN: >>> { TrayModulesManager }: [  Initialization of module ClockifyModule FAILED.  ]
==============================
Clockify Workspace is not set in settings.
==============================
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 798, in initialize_modules
    module = modules_item(self, modules_settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 587, in __init__
    self.initialize(settings)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\clockify\clockify_module.py", line 20, in initialize
    raise Exception("Clockify Workspace is not set in settings.")
Exception: Clockify Workspace is not set in settings.
*** WRN: >>> { TrayModulesManager }: [  Module "kitsu" crashed on `tray_start`.  ]
=======================
Host 'None' is invalid.
=======================
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 1313, in start_modules
    module.tray_start()
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\kitsu\kitsu_module.py", line 60, in tray_start
    if validate_credentials(login, password):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\kitsu\utils\credentials.py", line 28, in validate_credentials
    validate_host(kitsu_url)
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\kitsu\utils\credentials.py", line 57, in validate_host
    raise gazu.exception.HostException(
gazu.exception.HostException: Host 'None' is invalid.
*** WRN: >>> { TrayModulesManager }: [  Module "muster" crashed on `tray_start`.  ]
==============================
[ Errno 2 ] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\pype\\pype-app\\muster_cred.json'
==============================
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\muster\muster.py", line 80, in load_credentials
    file = open(self.cred_path, 'r')
FileNotFoundERROR: [ Errno 2 ] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\pype\\pype-app\\muster_cred.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\base.py", line 1313, in start_modules
    module.tray_start()
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\muster\muster.py", line 47, in tray_start
    cred = self.load_credentials()
  File "C:\Program Files (x86)\OpenPype\3.16.2\openpype\modules\muster\muster.py", line 83, in load_credentials
    file = open(self.cred_path, 'w+')
FileNotFoundERROR: [ Errno 2 ] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\pype\\pype-app\\muster_cred.json'
>>> [  IdleManager has started  ]
-----------------------+--------------+---------+---------------+---------+-------------+-----
Module name            |Initialization|Tray init|Connect modules|Tray menu|Modules start|Total
-----------------------+--------------+---------+---------------+---------+-------------+-----
AfterEffectsAddon      |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
AvalonModule           |0.000         |0.027    |0.000          |0.000    |0.000        |0.027
BlenderAddon           |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
CelactionAddon         |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
DeadlineModule         |0.001         |N/A      |0.000          |N/A      |N/A          |0.001
FlameAddon             |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
FtrackModule           |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
FusionAddon            |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
HarmonyAddon           |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
HieroAddon             |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
HoudiniAddon           |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
JobQueueModule         |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
KitsuModule            |0.000         |0.156    |0.000          |0.000    |0.001        |0.158
LauncherAction         |0.000         |0.227    |0.000          |0.000    |0.000        |0.228
LocalSettingsAction    |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
LogViewModule          |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
MaxAddon               |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
MayaAddon              |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
MusterModule           |0.000         |0.199    |0.000          |0.000    |0.001        |0.200
NukeAddon              |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
PhotoshopAddon         |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
ProjectManagerAction   |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
PythonInterpreterAction|0.000         |0.008    |0.000          |0.000    |0.000        |0.008
ResolveAddon           |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
RoyalRenderModule      |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
SettingsAction         |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
ShotgridModule         |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
SlackIntegrationModule |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
StandAlonePublishAddon |0.001         |N/A      |N/A            |N/A      |N/A          |0.001
SubstanceAddon         |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
SyncServerModule       |0.000         |N/A      |N/A            |N/A      |N/A          |0.000
TVPaintAddon           |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
TimersManager          |0.000         |0.015    |0.000          |0.006    |0.000        |0.021
TrayPublishAddon       |0.000         |0.000    |0.000          |0.000    |0.000        |0.000
UnrealAddon            |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
WebServerModule        |0.001         |0.032    |0.002          |0.000    |0.000        |0.035
WebpublisherAddon      |0.000         |N/A      |0.000          |N/A      |N/A          |0.000
-----------------------+--------------+---------+---------------+---------+-------------+-----
Total                  |0.002         |0.664    |0.002          |0.006    |0.003        |0.677
>>> [  Starting WebServer server  ]

edit by @BigRoy - this seems to be a duplicate post of: Dont works addons

Hello !

This guide was written 4 months ago, and then a lot of stuff changed.
I would like to know if there is a similar thread (or doc) that lists all steps to install the latest version of Ayon’s server and desktop app (the native one, not the Ayon mode of OpenPype).

Thanks !

Hi Yul

We’re about to release a new large update across the board with new guides which make everything incomparably simpler as well.

Should be out sometime next week.

3 Likes

Thank you very much !