Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create workflow on default install (4.2.1 and 4.4.0) #394

Open
mattpattie opened this issue Mar 21, 2023 · 7 comments
Open

unable to create workflow on default install (4.2.1 and 4.4.0) #394

mattpattie opened this issue Mar 21, 2023 · 7 comments

Comments

@mattpattie
Copy link

mattpattie commented Mar 21, 2023

I have tried to create a workflow and a top level workflow to version 4.2.1. I am always returning an alert of

Error 403: operation not allowed

I have tried on both a blank install and also an install with the examples no dice

On version 4.4 I am getting Error 403: Not Authorized on an instance with no example data. however if i use the example data it works as expected to create a new workflow

Any assistance would be greatly appreciated

Further update
after doing some testing the [shared] start and [shared] end are not in the empty migration and these, i am guessing, are hardcoded in the work flow builder. without them it breaks the builder.

@mattpattie
Copy link
Author

if you need an empty database. load the examples, you can then export the [shared]Start and [shared]End in the services page and then drop the db (or remove the sqlitedb) and then restart and import the tgz's. at which point you are good to go

@mhill8304
Copy link

mhill8304 commented Oct 1, 2024

@mattpattie could you explain what you mean here? I've been working on resolving the same issue.

I'm not sure exactly how to load the examples, as you say.

I am also finding issues with uploading the backed up services I had in here, so that may be part of it.

@SaneiSaya
Copy link

Did you export the examples? If so you can import them under services instead of workflows. They should be in .tgz format

@mhill8304
Copy link

mhill8304 commented Oct 2, 2024

I have no examples to export, following the instructions at the end of the main readme

Edit: I actually think I found the source of the issue on my end. Digging through the migration_import function in controller.py, and found yaml.CLoader is being called. Jogged my memory on an error that came up during testing yesterday, something like CLoader can not be found - did you mean Loader?

Digging a little further, it looks like ruamel should be importing yaml.CLoader, but it is not, based on the error.

Edit: And final update, looks like this was due to a version issue. From ruamel.yaml:

extras_require={
':platform_python_implementation=="CPython" and python_version<"3.11"': ['ruamel.yaml.clib>=0.2.6'], # NOQA
'jinja2': ['ruamel.yaml.jinja2>=0.2'],
'docs': ['ryd'],
},
classifiers=[
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup',
'Typing :: Typed',
],

I was running python3.12. After downgrading, I'm now launching with examples and everything looks to be working as expected.

@SaneiSaya
Copy link

There are some built in examples that should come with the default build. Do you have logs that you can post?

@mhill8304
Copy link

@SaneiSaya Turns out I was running wrong version of python, which was causing issues with ruamel.yaml, so it wasn't importing anything. Resolved after downgrade. Now instructions above are making more sense.

@SaneiSaya
Copy link

Great! Sounds like you're on your way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants