Invenio RDM installation MAC M2- Bad gateway

I tried installing Invenio RDM into my Mac M2. Used v11.0 version. But ended up in Bad Gateway. Here is what i did

  1. Switched my processor to i386, since i see some errors with ARM
  2. Installed invenio-cli using pip
  3. Repo initialisation using invenio cli init .......
  4. Running the container using invenio-cli containers start --lock --build --setup

I followed this doc, Quick start - Turn-key research data management repository

After it has run successfully, when i tried to access 127.0.0.1, it returns NGINX 502 bad gateway

Pasting the log of web-ui-1 container

2023-11-28 00:02:21 [uWSGI] getting INI configuration from /opt/invenio/var/instance/uwsgi_ui.ini
2023-11-28 00:02:21 *** Starting uWSGI 2.0.23 (64bit) on [Mon Nov 27 23:02:21 2023] ***
2023-11-28 00:02:21 compiled with version: 11.3.1 20221121 (Red Hat 11.3.1-4) on 27 November 2023 22:42:30
2023-11-28 00:02:21 os: Linux-5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022
2023-11-28 00:02:21 nodename: b5a5e3c37bec
2023-11-28 00:02:21 machine: x86_64
2023-11-28 00:02:21 clock source: unix
2023-11-28 00:02:21 pcre jit disabled
2023-11-28 00:02:21 detected number of CPU cores: 6
2023-11-28 00:02:21 current working directory: /opt/invenio/src
2023-11-28 00:02:21 detected binary path: /usr/local/bin/uwsgi
2023-11-28 00:02:21 uWSGI running as root, you can use --uid/–gid/–chroot options
2023-11-28 00:02:21 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-11-28 00:02:21 your memory page size is 4096 bytes
2023-11-28 00:02:21 detected max file descriptor number: 1048576
2023-11-28 00:02:21 lock engine: pthread robust mutexes
2023-11-28 00:02:21 !!! it looks like your kernel does not support pthread robust mutexes !!!
2023-11-28 00:02:21 !!! falling back to standard pthread mutexes !!!
2023-11-28 00:02:21 thunder lock: disabled (you can enable it with --thunder-lock)
2023-11-28 00:02:21 uwsgi socket 0 bound to TCP address 0.0.0.0:5000 fd 3
2023-11-28 00:02:21 uWSGI running as root, you can use --uid/–gid/–chroot options
2023-11-28 00:02:21 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-11-28 00:02:21 Python version: 3.9.16 (main, Sep 12 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)]
2023-11-28 00:02:22 Python main interpreter initialized at 0x540ca0
2023-11-28 00:02:22 uWSGI running as root, you can use --uid/–gid/–chroot options
2023-11-28 00:02:22 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-11-28 00:02:22 python threads support enabled
2023-11-28 00:02:22 your server socket listen backlog is limited to 100 connections
2023-11-28 00:02:22 your mercy for graceful operations on workers is 60 seconds
2023-11-28 00:02:22 mapped 274704 bytes (268 KB) for 4 cores
2023-11-28 00:02:22 *** Operational MODE: preforking+threaded ***
2023-11-28 00:02:42 WSGI app 0 (mountpoint=‘’) ready in 20 seconds on interpreter 0x540ca0 pid: 1 (default app)
2023-11-28 00:02:42 uWSGI running as root, you can use --uid/–gid/–chroot options
2023-11-28 00:02:42 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-11-28 00:02:42 spawned uWSGI master process (pid: 1)
2023-11-28 00:02:42 spawned uWSGI worker 1 (pid: 419, cores: 2)
2023-11-28 00:02:42 spawned uWSGI worker 2 (pid: 421, cores: 2)
2023-11-28 00:02:42 *** Stats server enabled on 0.0.0.0:9000 fd: 11 ***
2023-11-28 00:06:52 subprocess 5380 exited by signal 1
2023-11-28 00:06:52 subprocess 5382 exited by signal 1
2023-11-28 00:06:52 subprocess 5386 exited by signal 1
2023-11-28 00:06:52 subprocess 5398 exited by signal 1
2023-11-28 00:06:52 subprocess 5401 exited by signal 1
2023-11-28 00:06:52 subprocess 5404 exited by signal 1
2023-11-28 00:29:27 [2023-11-27 23:29:27,851] ERROR in app: Exception on / [GET]
2023-11-28 00:29:27 Traceback (most recent call last):
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2529, in wsgi_app
2023-11-28 00:29:27 response = self.full_dispatch_request()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1825, in full_dispatch_request
2023-11-28 00:29:27 rv = self.handle_user_exception(e)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1823, in full_dispatch_request
2023-11-28 00:29:27 rv = self.dispatch_request()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1799, in dispatch_request
2023-11-28 00:29:27 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/views.py”, line 62, in index
2023-11-28 00:29:27 return render_template(
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:27 return _render(app, template, context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:27 rv = template.render(context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:27 self.environment.handle_exception()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:27 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html”, line 12, in top-level template code
2023-11-28 00:29:27 {%- extends “invenio_theme/frontpage.html” %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/frontpage.html”, line 10, in top-level template code
2023-11-28 00:29:27 {%- extends config.BASE_TEMPLATE %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:27 {%- block head %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:27 {%- block css %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:27 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:27 return obj[argument]
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:27 obj = instance._get_current_object()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:27 return get_name(local()) # type: ignore
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:27 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:27 return self.manifest_loader().load(
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:27 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:27 with open(filepath) as fp:
2023-11-28 00:29:27 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:27 Traceback (most recent call last):
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2529, in wsgi_app
2023-11-28 00:29:27 response = self.full_dispatch_request()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1825, in full_dispatch_request
2023-11-28 00:29:27 rv = self.handle_user_exception(e)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1823, in full_dispatch_request
2023-11-28 00:29:27 rv = self.dispatch_request()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1799, in dispatch_request
2023-11-28 00:29:27 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/views.py”, line 62, in index
2023-11-28 00:29:27 return render_template(
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:27 return _render(app, template, context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:27 rv = template.render(context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:27 self.environment.handle_exception()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:27 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html”, line 12, in top-level template code
2023-11-28 00:29:27 {%- extends “invenio_theme/frontpage.html” %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/frontpage.html”, line 10, in top-level template code
2023-11-28 00:29:27 {%- extends config.BASE_TEMPLATE %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:27 {%- block head %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:27 {%- block css %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:27 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:27 return obj[argument]
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:27 obj = instance._get_current_object()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:27 return get_name(local()) # type: ignore
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:27 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:27 return self.manifest_loader().load(
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:27 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:27 with open(filepath) as fp:
2023-11-28 00:29:27 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:27
2023-11-28 00:29:27 During handling of the above exception, another exception occurred:
2023-11-28 00:29:27
2023-11-28 00:29:27 Traceback (most recent call last):
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2552, in call
2023-11-28 00:29:27 return self.wsgi_app(environ, start_response)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/middleware/proxy_fix.py”, line 187, in call
2023-11-28 00:29:27 return self.app(environ, start_response)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2532, in wsgi_app
2023-11-28 00:29:27 response = self.handle_exception(e)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1727, in handle_exception
2023-11-28 00:29:27 server_error = self.ensure_sync(handler)(server_error)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/views.py”, line 48, in internal_error
2023-11-28 00:29:27 return render_template(current_app.config[“THEME_500_TEMPLATE”]), 500
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:27 return _render(app, template, context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:27 rv = template.render(context)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:27 self.environment.handle_exception()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:27 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/500.html”, line 10, in top-level template code
2023-11-28 00:29:27 {% extends config.THEME_ERROR_TEMPLATE %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_error.html”, line 11, in top-level template code
2023-11-28 00:29:27 {% extends config.THEME_BASE_TEMPLATE %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:27 {%- block head %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:27 {%- block css %}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:27 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:27 return obj[argument]
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:27 obj = instance._get_current_object()
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:27 return get_name(local()) # type: ignore
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:27 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:27 return self.manifest_loader().load(
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:27 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:27 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:27 with open(filepath) as fp:
2023-11-28 00:29:27 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:27 [pid: 421|app: 0|req: 1/1] 172.26.0.1 () {62 vars in 1073 bytes} [Mon Nov 27 23:29:27 2023] GET / => generated 0 bytes in 383 msecs (HTTP/2.0 500) 0 headers in 0 bytes (0 switches on core 0)
2023-11-28 00:29:28 [2023-11-27 23:29:28,213] ERROR in app: Exception on /favicon.ico [GET]
2023-11-28 00:29:28 Traceback (most recent call last):
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1823, in full_dispatch_request
2023-11-28 00:29:28 rv = self.dispatch_request()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1788, in dispatch_request
2023-11-28 00:29:28 self.raise_routing_exception(req)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1770, in raise_routing_exception
2023-11-28 00:29:28 raise request.routing_exception # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/ctx.py”, line 351, in match_request
2023-11-28 00:29:28 result = self.url_adapter.match(return_rule=True) # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/routing/map.py”, line 624, in match
2023-11-28 00:29:28 raise NotFound() from None
2023-11-28 00:29:28 werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
2023-11-28 00:29:28
2023-11-28 00:29:28 During handling of the above exception, another exception occurred:
2023-11-28 00:29:28
2023-11-28 00:29:28 Traceback (most recent call last):
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2529, in wsgi_app
2023-11-28 00:29:28 response = self.full_dispatch_request()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1825, in full_dispatch_request
2023-11-28 00:29:28 rv = self.handle_user_exception(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1669, in handle_user_exception
2023-11-28 00:29:28 return self.handle_http_exception(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1609, in handle_http_exception
2023-11-28 00:29:28 return self.ensure_sync(handler)(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/views.py”, line 38, in page_not_found
2023-11-28 00:29:28 return render_template(current_app.config[“THEME_404_TEMPLATE”]), 404
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:28 return _render(app, template, context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:28 rv = template.render(context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:28 self.environment.handle_exception()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:28 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/404.html”, line 10, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_ERROR_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_error.html”, line 11, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_BASE_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:28 {%- block head %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:28 {%- block css %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:28 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:28 return obj[argument]
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:28 obj = instance._get_current_object()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:28 return get_name(local()) # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:28 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:28 return self.manifest_loader().load(
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:28 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:28 with open(filepath) as fp:
2023-11-28 00:29:28 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:28 Traceback (most recent call last):
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1823, in full_dispatch_request
2023-11-28 00:29:28 rv = self.dispatch_request()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1788, in dispatch_request
2023-11-28 00:29:28 self.raise_routing_exception(req)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1770, in raise_routing_exception
2023-11-28 00:29:28 raise request.routing_exception # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/ctx.py”, line 351, in match_request
2023-11-28 00:29:28 result = self.url_adapter.match(return_rule=True) # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/routing/map.py”, line 624, in match
2023-11-28 00:29:28 raise NotFound() from None
2023-11-28 00:29:28 werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
2023-11-28 00:29:28
2023-11-28 00:29:28 During handling of the above exception, another exception occurred:
2023-11-28 00:29:28
2023-11-28 00:29:28 Traceback (most recent call last):
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2529, in wsgi_app
2023-11-28 00:29:28 response = self.full_dispatch_request()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1825, in full_dispatch_request
2023-11-28 00:29:28 rv = self.handle_user_exception(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1669, in handle_user_exception
2023-11-28 00:29:28 return self.handle_http_exception(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1609, in handle_http_exception
2023-11-28 00:29:28 return self.ensure_sync(handler)(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/views.py”, line 38, in page_not_found
2023-11-28 00:29:28 return render_template(current_app.config[“THEME_404_TEMPLATE”]), 404
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:28 return _render(app, template, context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:28 rv = template.render(context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:28 self.environment.handle_exception()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:28 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/404.html”, line 10, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_ERROR_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_error.html”, line 11, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_BASE_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:28 {%- block head %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:28 {%- block css %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:28 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:28 return obj[argument]
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:28 obj = instance._get_current_object()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:28 return get_name(local()) # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:28 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:28 return self.manifest_loader().load(
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:28 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:28 with open(filepath) as fp:
2023-11-28 00:29:28 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:28
2023-11-28 00:29:28 During handling of the above exception, another exception occurred:
2023-11-28 00:29:28
2023-11-28 00:29:28 Traceback (most recent call last):
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2552, in call
2023-11-28 00:29:28 return self.wsgi_app(environ, start_response)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/middleware/proxy_fix.py”, line 187, in call
2023-11-28 00:29:28 return self.app(environ, start_response)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 2532, in wsgi_app
2023-11-28 00:29:28 response = self.handle_exception(e)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/app.py”, line 1727, in handle_exception
2023-11-28 00:29:28 server_error = self.ensure_sync(handler)(server_error)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/views.py”, line 48, in internal_error
2023-11-28 00:29:28 return render_template(current_app.config[“THEME_500_TEMPLATE”]), 500
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 147, in render_template
2023-11-28 00:29:28 return _render(app, template, context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask/templating.py”, line 130, in _render
2023-11-28 00:29:28 rv = template.render(context)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 1301, in render
2023-11-28 00:29:28 self.environment.handle_exception()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 936, in handle_exception
2023-11-28 00:29:28 raise rewrite_traceback_stack(source=source)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/500.html”, line 10, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_ERROR_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_error.html”, line 11, in top-level template code
2023-11-28 00:29:28 {% extends config.THEME_BASE_TEMPLATE %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 13, in top-level template code
2023-11-28 00:29:28 {%- block head %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 59, in block ‘head’
2023-11-28 00:29:28 {%- block css %}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html”, line 60, in block ‘css’
2023-11-28 00:29:28 {{ webpack[‘theme.css’] }}
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/jinja2/environment.py”, line 466, in getitem
2023-11-28 00:29:28 return obj[argument]
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 316, in get
2023-11-28 00:29:28 obj = instance._get_current_object()
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/werkzeug/local.py”, line 520, in _get_current_object
2023-11-28 00:29:28 return get_name(local()) # type: ignore
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/proxies.py”, line 22, in
2023-11-28 00:29:28 lambda: current_app.extensions[‘flask-webpackext’].manifest)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/ext.py”, line 87, in manifest
2023-11-28 00:29:28 return self.manifest_loader().load(
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/flask_webpackext/manifest.py”, line 66, in load
2023-11-28 00:29:28 super(JinjaManifestLoader, self).load(filepath)
2023-11-28 00:29:28 File “/usr/local/lib/python3.9/site-packages/pywebpack/manifests.py”, line 225, in load
2023-11-28 00:29:28 with open(filepath) as fp:
2023-11-28 00:29:28 FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’
2023-11-28 00:29:28 [pid: 419|app: 0|req: 1/2] 172.26.0.1 () {60 vars in 1001 bytes} [Mon Nov 27 23:29:28 2023] GET /favicon.ico => generated 0 bytes in 226 msecs (HTTP/2.0 500) 0 headers in 0 bytes (0 switches on core 1)

Hi,
the issue is probably this one No such file or directory: ‘/opt/invenio/var/instance/static/dist/manifest.json’. Double-check the version of NodeJS that you are running.
We are using Mac M1/M2, so it also works on these machines.

Feel free to join our chat: if you post your questions there, more users can help you.

1 Like