Issues installing gemserv

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.1.14
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: gemserv v0.6.6~ynh5

Description of my issue

Hi All,

I’m trying to install gemserv or my_capsule on my server and I am running into an issue with the installation script. When I try to install either app the script gets stuck on downloading dependencies for gemserv for a long time before eventually erroring out with ‘an error occurred inside the app installation script’.

I had a functioning my_capsule installed on my old server, but since migrating to a new one I am unable to neither restore my old server from the backup nor install gemserv or my_capsule fresh.

This is a new account so I unfortunately can’t upload the full logs, but I’ve included an excerpt from it. Hope this clarifies my issue.

  app: gemserv
  force: false
  label: null
  no_remove_on_failure: false
ended_at: 2023-03-09 21:37:56.093123
  YNH_APP_ACTION: install
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_gmcukv7n
  YNH_APP_ID: gemserv
  YNH_ARCH: amd64
error: An error occurred inside the app installation script
interface: cli
operation: app_install
parent: null
- - app
  - gemserv
started_at: 2023-03-09 21:31:30.681615
success: false
yunohost_version: 11.1.14```

```2023-03-09 21:37:54,421: DEBUG - error: could not compile `tokio`
2023-03-09 21:37:54,424: DEBUG - 
2023-03-09 21:37:54,424: DEBUG - Caused by:
2023-03-09 21:37:54,424: DEBUG -   process didn't exit successfully: `rustc --crate-name tokio --edition=2018 /opt/yunohost/gemserv/.cargo/registry/src/ --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="bytes"' --cfg 'feature="default"' --cfg 'feature="fs"' --cfg 'feature="full"' --cfg 'feature="io-std"' --cfg 'feature="io-util"' --cfg 'feature="libc"' --cfg 'feature="macros"' --cfg 'feature="memchr"' --cfg 'feature="mio"' --cfg 'feature="net"' --cfg 'feature="num_cpus"' --cfg 'feature="once_cell"' --cfg 'feature="parking_lot"' --cfg 'feature="process"' --cfg 'feature="rt"' --cfg 'feature="rt-multi-thread"' --cfg 'feature="signal"' --cfg 'feature="signal-hook-registry"' --cfg 'feature="sync"' --cfg 'feature="time"' --cfg 'feature="tokio-macros"' --cfg 'feature="winapi"' -C metadata=7616ea57cec45fb2 -C extra-filename=-7616ea57cec45fb2 --out-dir /opt/yunohost/gemserv/build/target/release/deps -L dependency=/opt/yunohost/gemserv/build/target/release/deps --extern bytes=/opt/yunohost/gemserv/build/target/release/deps/libbytes-995fcac100a23d02.rmeta --extern libc=/opt/yunohost/gemserv/build/target/release/deps/liblibc-ce7deb1a9de799ef.rmeta --extern memchr=/opt/yunohost/gemserv/build/target/release/deps/libmemchr-cef2217582d174fa.rmeta --extern mio=/opt/yunohost/gemserv/build/target/release/deps/libmio-fd4a7dabc627e1e4.rmeta --extern num_cpus=/opt/yunohost/gemserv/build/target/release/deps/libnum_cpus-d21de7593e577175.rmeta --extern once_cell=/opt/yunohost/gemserv/build/target/release/deps/libonce_cell-4de0c98edbf30e97.rmeta --extern parking_lot=/opt/yunohost/gemserv/build/target/release/deps/libparking_lot-e342e99e5820e0e9.rmeta --extern pin_project_lite=/opt/yunohost/gemserv/build/target/release/deps/libpin_project_lite-f7c9778615f0b4a7.rmeta --extern signal_hook_registry=/opt/yunohost/gemserv/build/target/release/deps/libsignal_hook_registry-0812809d0269f57b.rmeta --extern tokio_macros=/opt/yunohost/gemserv/build/target/release/deps/ --cap-lints allow` (signal: 9, SIGKILL: kill)
2023-03-09 21:37:54,562: DEBUG - + ynh_exit_properly
2023-03-09 21:37:54,562: DEBUG - + local exit_code=101
2023-03-09 21:37:54,576: DEBUG - + '[' 101 -eq 0 ']'
2023-03-09 21:37:55,090: DEBUG - + ynh_clean_setup
2023-03-09 21:37:55,090: DEBUG - + true
2023-03-09 21:37:56,092: ERROR - Unable to install gemserv: An error occurred inside the app installation script```

This is usually symptomatic of a process getting killed because the system ran out of RAM

Oh understood, thank you.

I have uninstalled a number of applications that I don’t really use and have attempted to reinstall gemserv again. It’s still doing weird things and not working. Is there any way to work with the RAM I have (2gb) to find a solution?

“not working” can means a billion different things

Do you mean it still doesnt install with the exact same error as previously ?

Hi, sorry for the vagueness. I seemed to have resolved the issue. I didn’t realize I didn’t have any swap memory so I created that then reinstalled gemserv. The application installs successfully now.

Thank you again for your your help.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.