Skip to content

CRM app installation fails: yarn --frozen-lockfile error due to outdated lockfile #341

Description

@poupryc

Hello,

When attempting to deploy a site via Pilot v0.0.21-pre-alpha with the CRM application, the deployment fails due to Yarn. The same issue occurs when CRM is added later.

Image

Thanks for your work,

System info

Details

System

  • OS: Ubuntu 24.04.4 LTS
  • Kernel: 6.8.0-100-generic
  • vCPUs: 8
  • RAM: 15.6 GB
  • Disk size: 61.0 GB

Runtime

  • Frappe: 16.29.0
  • MariaDB: 11.8.8
  • Nginx: 1.24.0
  • Node: 24.18.1
  • PostgreSQL: 16.14
  • Python: 3.14
  • Redis: 7.0.15

Logs

Details
Cloning crm...
Cloning into '/home/frappe/pilot/benches/main/.staging/crm'...
Checking out crm at 966705a9...
'crm' validated successfully installing.
Installing crm...
Using Python 3.14.6 environment at: /home/frappe/pilot/benches/main/env
Resolved 18 packages in 700ms
   Building crm @ file:///home/frappe/pilot/benches/main/apps/crm
      Built crm @ file:///home/frappe/pilot/benches/main/apps/crm
Prepared 1 package in 297ms
Installed 1 package in 2ms
 + crm==1.80.0 (from file:///home/frappe/pilot/benches/main/apps/crm)
 
Setting up assets for crm...
  Installing JS dependencies for crm...
yarn install v1.22.22
[1/4] Resolving packages...
error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 
Install of 'crm' failed - undoing it...
Using Python 3.14.6 environment at: /home/frappe/pilot/benches/main/env
Uninstalled 1 package in 9ms
 - crm==1.80.0 (from file:///home/frappe/pilot/benches/main/apps/crm)
Error: Command '/home/frappe/.local/bin/yarn' failed with exit code 1.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/frappe/pilot/pilot/tasks/get_and_install_app.py", line 62, in <module>
    GetAndInstallAppTask.main()
  File "/home/frappe/pilot/pilot/tasks/base.py", line 201, in main
    run_task_main(cls)
  File "/home/frappe/pilot/pilot/internal/tasks/authoring.py", line 83, in run_task_main
    run_task(task_from_args(cls, bench, bench_root, args))
  File "/home/frappe/pilot/pilot/internal/tasks/authoring.py", line 88, in run_task
    task.run()
  File "/home/frappe/pilot/pilot/tasks/get_and_install_app.py", line 30, in run
    result = self.fetch()
             ^^^^^^^^^^^^
  File "/home/frappe/pilot/pilot/tasks/base.py", line 48, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/pilot/pilot/tasks/get_and_install_app.py", line 50, in fetch
    return app.install(
           ^^^^^^^^^^^^
  File "/home/frappe/pilot/pilot/core/app/__init__.py", line 258, in install
    app._build_assets_via_env_manager()
  File "/home/frappe/pilot/pilot/core/app/__init__.py", line 363, in _build_assets_via_env_manager
    PythonEnvManager(self.bench).build_assets_for_app(self)
  File "/home/frappe/pilot/pilot/managers/environment.py", line 216, in build_assets_for_app
    self._assets.build_assets_for_app(app)
  File "/home/frappe/pilot/pilot/managers/python_assets.py", line 49, in build_assets_for_app
    self.ensure_yarn_install(app.path)
  File "/home/frappe/pilot/pilot/managers/python_assets.py", line 90, in ensure_yarn_install
    run_command(
  File "/home/frappe/pilot/pilot/utils.py", line 397, in run_command
    _raise_on_failure(argv, process, stderr, stream_output, redactions)
  File "/home/frappe/pilot/pilot/utils.py", line 482, in _raise_on_failure
    raise CommandError(
pilot.exceptions.CommandError: Command '/home/frappe/.local/bin/yarn' failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions