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

Error creating symbolic link when running the get-app command to install the HRMS on the ERP. #1603

Open
2 of 3 tasks
VictorCostaOliveira opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@VictorCostaOliveira
Copy link

Issue: Bug report

Please make sure your issue is reproducible on the latest bench version. The currently supported branches are:

  • PyPI latest
  • master (minor bug fixes)
  • v5.x (Merged with develop on every release)
  • develop (all updates)

Do the checklist before filing an issue:

  • Can you replicate the issue on the supported bench versions?
  • Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome

Describe the bug 📉
I am setting up ERPNext to be able to use HRMS, and for this, I am following the documentation of both.

First, I am using this installation method for ERPNext: https://github.com/frappe/bench?tab=readme-ov-file#easy-install-script.

After I was able to run the containers using this installation method, I followed this tutorial here: https://www.youtube.com/watch?v=K3rwp-3UM_E&ab_channel=syncbricks, where it shows how to install HRMS in ERP within Docker.

In the video, he is able to run the command bench get-app hrms normally, but when I execute it the same way as in the video, inside the container, I get this "error" at the point where the command bench build --app hrms is executed. The error is the following:

$ bench build --app hrms
[Errno 18] Invalid cross-device link: 'tmp19d9ca7e8fb7183ead065c2ada05886f57e730e14e68780494ee0406' -> './assets/frappe'
Cannot link /home/frappe/frappe-bench/apps/frappe/frappe/public to ./assets/frappe
[Errno 2] No such file or directory: 'tmp8646151b01c74f8aaf97045b972c74ca0d3e8808ef5cde2c73e0a602' -> './assets/frappe/node_modules'
Cannot link /home/frappe/frappe-bench/apps/frappe/node_modules to ./assets/frappe/node_modules
[Errno 18] Invalid cross-device link: 'tmpb48866462f94554cab097551d7c1c912c34e585ae479928ae92c3a51' -> './assets/erpnext'
Cannot link /home/frappe/frappe-bench/apps/erpnext/erpnext/public to ./assets/erpnext
[Errno 2] No such file or directory: 'tmpa339415721de17317f6bc759a7b3eb3eca69d2d0644cc50f3bde6366' -> './assets/erpnext/node_modules'
Cannot link /home/frappe/frappe-bench/apps/erpnext/node_modules to ./assets/erpnext/node_modules
[Errno 18] Invalid cross-device link: 'tmp98fd929166122df0c59ab00e523cc8975f9a877573fc0520c225f1d0' -> './assets/hrms'
Cannot link /home/frappe/frappe-bench/apps/hrms/hrms/public to ./assets/hrms
[Errno 2] No such file or directory: 'tmp20bdf49644438b841dbaeaef20dfbdaa92aede78e609b70df867e275' -> './assets/hrms/node_modules'
Cannot link /home/frappe/frappe-bench/apps/hrms/node_modules to ./assets/hrms/node_modules
✔ Application Assets Linked

After that, everything works normally until the end. The problem is that after running the upgrade command, which forces the migrate for the sites, the assets of my project are lost...

I noticed that inside the assets folder, after running get-app, the symbolic links for ERPNext and Frappe are lost.

Can anyone help me? Can you tell me if this is related to my site losing the assets?

The way I solved it was by running the build manually using the --hard-link option.

P.S. I ran the install-app command.

To Reproduce 📃
Steps to reproduce the behavior:

  1. Run bench build --app hrms inside the backend or frontend container
  2. See error

Expected behavior 📈
A clear and concise description of what you expected to happen.

Screenshots 🔮
If applicable, add screenshots to help explain your problem.

OS (please complete the following information): 🌀

  • Docker

Version Information

Can be found out by running bench version in your respective bench folder.

  • Bench Branch: 5.23.0
  • Frappe Version: IDK
  • ERPNext Version: image: frappe/erpnext:v15.45.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant