[11:19:56]
<tripop> Hi, can someone from the yunohost org test and valid this PR ? It's been 4 days now and it make install of sharkey working again.
Thanks a lot, kind of need it to some projects in the near future 🙏
https://github.com/YunoHost-Apps/sharkey_ynh/pull/37
[11:27:07]
<tripop> I don't know if it's easy to switch from a fork branch of a yunohost app to the official one..
[13:00:19]
<Paprika> Installing Flarum fails with `2025-03-03 14:53:39,068: WARNING - swapon: /swap_flarum: skipping - it appears to have holes.`
Perhaps someone has encountered this before?
I feel like I faced this a couple years ago and I don't remember what was the solution (if there was any).
[13:27:45]
<tripop> It's a error around swap, so maybe you don't have a lot of ram ?
[15:07:54]
<Paprika> Discourse install also throws an error, but related to npm:
```
2025-03-03 16:48:46,321: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_z7ar52ah/scripts
2025-03-03 16:48:46,321: DEBUG - + pushd /var/www/discourse/discourse
2025-03-03 16:48:46,321: DEBUG - /var/www/discourse/discourse /var/cache/yunohost/app_tmp_work_dirs/app_z7ar52ah/scripts
2025-03-03 16:48:46,321: DEBUG - + /opt/node_n/n/versions/node/22/bin/npm install --location=global terser
2025-03-03 16:48:47,394: DEBUG -
2025-03-03 16:48:47,395: DEBUG - added 12 packages in 1s
2025-03-03 16:48:47,411: DEBUG - + /opt/node_n/n/versions/node/22/bin/npm install --location=global uglify-js
2025-03-03 16:48:47,782: DEBUG -
2025-03-03 16:48:47,782: DEBUG - added 1 package in 333ms
2025-03-03 16:48:47,787: DEBUG - + /opt/node_n/n/versions/node/22/bin/npm install --location=global pnpm@9
2025-03-03 16:48:48,152: WARNING - npm error code EEXIST
2025-03-03 16:48:48,153: WARNING - npm error path /opt/node_n/n/versions/node/22.13.1/bin/pnpm
2025-03-03 16:48:48,154: WARNING - npm error EEXIST: file already exists
2025-03-03 16:48:48,156: WARNING - npm error File exists: /opt/node_n/n/versions/node/22.13.1/bin/pnpm
2025-03-03 16:48:48,157: WARNING - npm error Remove the existing file and try again, or run npm
2025-03-03 16:48:48,158: WARNING - npm error with --force to overwrite files recklessly.
2025-03-03 16:48:48,159: WARNING - npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-03T14_48_47_824Z-debug-0.log
2025-03-03 16:48:48,160: DEBUG - + ynh_exit_properly
2025-03-03 16:48:48,160: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-03-03 16:48:48,762: ERROR - Unable to install discourse: An error occurred inside the app installation script
```
It seems like it's an ongoing issue that's been reported two weeks ago.
[15:20:06]
<Paprika> I currently have 8GB of RAM set, and 1G of swap. Increased it from previous 512MiB as a test. RAM in use is about 4GB average.
[15:35:48]
<Paprika> Forked and tested to see if the issue is purely due to swap. As it is, my container already has swap configured by Proxmox. Removing the check for swap fixes my issue, but isn't a solution to the problem as a whole.
[15:46:20]
<Paprika> This might be happening because another app I installed also used npm to build itself. Speculation only.
[16:10:48]
<Paprika> Based on the `ynh_add_swap` logic, it should be detected that the instance runs in a container. However, it seems like it doesn't detect that and proceeds with creating swap anyways. However, when installing something like glitchsoc, for instance, swap is not created as the script detects that this instance runs inside a container.