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

[Bug]: Locales failed with missing css file? #15318

Open
1 task done
KevinMind opened this issue Jan 30, 2025 · 1 comment
Open
1 task done

[Bug]: Locales failed with missing css file? #15318

KevinMind opened this issue Jan 30, 2025 · 1 comment
Labels
needs:info repository:addons-server Issue relating to addons-server

Comments

@KevinMind
Copy link
Contributor

KevinMind commented Jan 30, 2025

What happened?

Just opening this to track if it happens persistently or was a ghost in the machine.

https://github.com/mozilla/addons-server/actions/runs/13059219739/job/36438213409?pr=23039

 /data/olympia/scripts/update_assets.py
/bin/sh: 1: /deps/node_modules/less/bin/lessc: not found
Traceback (most recent call last):
  File "/data/olympia/manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/data/olympia/deps/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/data/olympia/deps/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/data/olympia/deps/lib/python3.12/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/data/olympia/deps/lib/python3.12/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/olympia/src/olympia/amo/management/commands/compress_assets.py", line 101, in handle
    with open(processed) as f:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/data/olympia/static/css/common/fonts.less.css'
Traceback (most recent call last):
  File "/data/olympia/scripts/update_assets.py", line 57, in <module>
    update_assets(args.verbose)
  File "/data/olympia/scripts/update_assets.py", line 36, in update_assets
    subprocess.run(
  File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['python3', 'manage.py', 'compress_assets']' returned non-zero exit status 1.
make: *** [Makefile-docker:51: update_assets] Error 1
Traceback (most recent call last):
  File "/data/olympia/./scripts/sync_host_files.py", line 22, in <module>
    sync_host_files()
  File "/data/olympia/./scripts/sync_host_files.py", line 18, in sync_host_files
    subprocess.run(['make', 'update_assets'], check=True)
  File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['make', 'update_assets']' returned non-zero exit status 2.
make: *** [Makefile-os:166: docker_sync_host] Error 1

What did you expect to happen?

Should just work.

Is there an existing issue for this?

  • I have searched the existing issues

┆Issue is synchronized with this Jira Task

@KevinMind KevinMind added needs:info repository:addons-server Issue relating to addons-server labels Jan 30, 2025
@diox
Copy link
Member

diox commented Jan 30, 2025

Well the first line is not a great start:
/bin/sh: 1: /deps/node_modules/less/bin/lessc: not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:info repository:addons-server Issue relating to addons-server
Projects
None yet
Development

No branches or pull requests

2 participants