I was running runwhen-local with podman, I was encountered with Error 500 Message while discovering resources.
Run the container image
podman run --name RunWhenLocal -p 8081:8081 -v $workdir/shared:/shared --userns=keep-id:uid=999,gid=999 ghcr.io/runwhen-contrib/runwhen-local:latest
Trying to pull ghcr.io/runwhen-contrib/runwhen-local:latest...
Getting image source signatures
Copying blob sha256:47bcaba622c99cea3f9f529579f9714eea4f752d0fa962fdcdffccc32755d970
Copying blob sha256:14726c8f78342865030f97a8d3492e2d1a68fbd22778f9a31dc6be4b4f12a9bc
Copying blob sha256:f7d4946b1998501e173a27b5106ab354beefe3a0cead8354e4f41fc3bc266f22
Copying blob sha256:98a8504abe389a4c8f0b40ca0f43e8394ceecfc90fc5f483f064b5a82b5ee893
Copying blob sha256:227f24781f6bd764b0b800ad8181f3fe4feb7c974df900a8aed47d5fc6939a17
Copying blob sha256:e3f84e9db4a1ee24db5a8ad6b39b7dfac8baf7c533eccad9c1b1ec979fd9da1f
Copying blob sha256:247b7ffb1b23854ca97d9e0f525c7bf004a5b020ad59073c3ad122939ed12023
Copying blob sha256:4bd9d73adfda118620666cb30e399571043b82fc17866d12edd2c880bfb70db9
Copying blob sha256:66b2cb53484684459a1e96284e30d58b51d34ab1a599a6b423017b2984ea36e2
Copying blob sha256:f82910e5a9e1568664faeb21e356a2ace6857bf9176a5c6e375147c1882065ab
Copying blob sha256:31ea48e98a13de8ce1947a50786c59e25c3b81baca2566ed69a9498eb562340c
Copying blob sha256:a7ffe3f652a34476291971d5d0145af680e3ad32276f60d484396362ee628794
Copying blob sha256:b7a708fb29abd16c0c9b41d09197690bbb98550ad1d6fba040bf6a6b883c175a
Copying blob sha256:93a5f4a23a2a39450862862c71bcbad0f8d640dfe5e2b2481e81552fbe3cdca1
Copying blob sha256:b0f50eff62fb4a201a7b5674ae158c6aad357545fd6ce04641012bb56abd0899
Copying blob sha256:36e50f18fcd15a5938bc30dbd61f77e723f3c7313eefc555dd6d0b71a1f4360c
Copying blob sha256:b6e594ce037e18cf0c543be8f93791a6ec71c7a31b4ca38bdbe9c18a4b7a9a2f
Copying config sha256:6cc446bc739696fdc057b0a4ab5d4113848cb0fbbf5f86d0b96d42500d09ab82
Writing manifest to image destination
Directory /shared/output already exists.
Starting up neo4j
Waiting a bit before starting workspace builder REST server
WARNING - Config value 'build': Unrecognised configuration name: build
WARNING - Config value 'dev_addr': The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead.
INFO - Building documentation...
INFO - Cleaning site directory
INFO - Documentation built in 1.95 seconds
INFO - [13:10:55] Watching paths for changes: 'cheat-sheet-docs/docs', 'cheat-sheet-docs/mkdocs.yml'
INFO - [13:10:55] Serving on http://0.0.0.0:8081/
Changed password for user 'neo4j'. IMPORTANT: this change will only take effect if performed before the database is started for the first time.
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying sessions.0001_initial... OK
Starting workspace builder REST server
Performing system checks...
System check identified no issues (0 silenced).
September 13, 2023 - 13:11:10
Django version 4.2.4, using settings 'config.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
2023-09-13 13:11:13.143+0000 INFO Starting...
2023-09-13 13:11:16.459+0000 INFO This instance is ServerId{13c72ad8} (13c72ad8-e081-4765-8b2f-8751fef99fab)
2023-09-13 13:11:18.757+0000 INFO ======== Neo4j 5.11.0 ========
2023-09-13 13:11:23.432+0000 INFO Bolt enabled on 0.0.0.0:7687.
2023-09-13 13:11:26.092+0000 INFO Remote interface available at http://localhost:7474/
2023-09-13 13:11:26.104+0000 INFO id: 977AA64408D53387838BCF5532365AD84FA7BB9E52F171A6FFD7E3CAA05F375E
2023-09-13 13:11:26.107+0000 INFO name: system
2023-09-13 13:11:26.110+0000 INFO creationDate: 2023-09-13T13:11:20.132Z
2023-09-13 13:11:26.115+0000 INFO Started.
INFO - [13:12:32] Browser connected: http://0.0.0.0:8081/
INFO - [13:13:49] Browser connected: http://0.0.0.0:8081/
INFO - [13:14:05] Browser connected: http://0.0.0.0:8081/
INFO - [13:14:08] Browser connected: http://0.0.0.0:8081/about/
INFO - [13:14:09] Browser connected: http://0.0.0.0:8081/list/
INFO - [13:14:14] Browser connected: http://0.0.0.0:8081/
INFO - [13:16:44] Detected file changes
INFO - Building documentation...
WARNING - Config value 'build': Unrecognised configuration name: build
WARNING - Config value 'dev_addr': The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead.
INFO - Documentation built in 0.41 seconds
INFO - [13:16:44] Reloading browsers
INFO - [13:16:45] Browser connected: http://0.0.0.0:8081/
File "/workspace-builder/workspace_builder/views.py", line 102, in post
run_components(context, components)
File "/workspace-builder/component.py", line 316, in run_components
component.load_func(context)
File "/workspace-builder/enrichers/generation_rules.py", line 826, in load
generation_rules_config = yaml.safe_load(generation_rules_config_text)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/init.py", line 125, in safe_load
return load(stream, SafeLoader)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/init.py", line 81, in load
return loader.get_single_data()
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/composer.py", line 110, in compose_sequence_node
while not self.check_event(SequenceEndEvent):
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/opt/pysetup/.venv/lib/python3.9/site-packages/yaml/parser.py", line 392, in parse_block_sequence_entry
raise ParserError("while parsing a block collection", self.marks[-1],
Internal Server Error: /run/
[13/Sep/2023 13:16:47] "POST /run/ HTTP/1.1" 500 12799
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#podman exec -w /workspace-builder -- RunWhenLocal ./run.sh
Discovering resources...
Error 500 from Workspace Builder service for command "run": while parsing a block collection
in "", line 5, column 5:
- resourceTypes:
^
expected , but found '?'
in "", line 24, column 5:
slxs:
^