• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue nodejs installation failed

mudassarkhan

Basic Pleskian
Server operating system version
ubuntu 22
Plesk version and microupdate number
obsidian 18.0.52
Hi,
I have a few servers with plesk on and I havn't experienced this issue so I am paddling in the dark here.

I try to install the nodeJS extension however I get the following error:
Code:
he execution of post-install.php has failed with the following message:
ERROR:__main__:Command '['apt-get', '-q', '--assume-yes', '-o', 'Dpkg::Options::=--force-confdef', '-o', 'Dpkg::Options::=--force-confold', '-o', 'APT::Install-Recommends=no', '--purge', 'install', 'passenger', 'libapache2-mod-passenger-plesk']' returned non-zero exit status 100.
stdout: Reading package lists...
Building dependency tree...
Reading state information...
libapache2-mod-passenger-plesk is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
passenger is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
The following packages were automatically installed and are no longer required:
jsonlint libevent-pthreads-2.1-7 libflashrom1 libftdi1-2 libmecab2
linux-headers-5.15.0-67 linux-headers-5.15.0-67-generic
linux-image-5.15.0-67-generic linux-modules-5.15.0-67-generic
linux-modules-extra-5.15.0-67-generic mecab-ipadic mecab-ipadic-utf8
mecab-utils php-composer-ca-bundle php-composer-metadata-minifier
php-composer-pcre php-composer-semver php-composer-spdx-licenses
php-composer-xdebug-handler php-intl php-json-schema php-mbstring
php-psr-container php-psr-log php-react-promise php-symfony-console
php-symfony-deprecation-contracts php-symfony-filesystem php-symfony-finder
php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts
php-symfony-string php8.1-intl php8.1-mbstring
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-5.15.0-71-generic (5.15.0-71.78) ...
Processing triggers for linux-image-5.15.0-71-generic (5.15.0-71.78) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-71-generic
I: The initramfs will attempt to resume from /dev/dm-0
I: (/dev/mapper/vg00-lv00)
I: Set the RESUME variable to override this.
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-5.15.0-71-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.15.0-71-generic (--configure):
installed linux-image-5.15.0-71-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.15.0-71-generic
needrestart is being skipped since dpkg has failed
stderr:E: Sub-process /usr/bin/dpkg returned an error code (1)
exit status 1
[2023-05-03 11:47:02.465] 197907:64524981c9912 ERR [panel] ERROR:__main__:Command '['apt-get', '-q', '--assume-yes', '-o', 'Dpkg::Options::=--force-confdef', '-o', 'Dpkg::Options::=--force-confold', '-o', 'APT::Install-Recommends=no', '--purge', 'install', 'passenger', 'libapache2-mod-passenger-plesk']' returned non-zero exit status 100.
stdout: Reading package lists...
Building dependency tree...
Reading state information...
libapache2-mod-passenger-plesk is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
passenger is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
The following packages were automatically installed and are no longer required:
jsonlint libevent-pthreads-2.1-7 libflashrom1 libftdi1-2 libmecab2
linux-headers-5.15.0-67 linux-headers-5.15.0-67-generic
linux-image-5.15.0-67-generic linux-modules-5.15.0-67-generic
linux-modules-extra-5.15.0-67-generic mecab-ipadic mecab-ipadic-utf8
mecab-utils php-composer-ca-bundle php-composer-metadata-minifier
php-composer-pcre php-composer-semver php-composer-spdx-licenses
php-composer-xdebug-handler php-intl php-json-schema php-mbstring
php-psr-container php-psr-log php-react-promise php-symfony-console
php-symfony-deprecation-contracts php-symfony-filesystem php-symfony-finder
php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts
php-symfony-string php8.1-intl php8.1-mbstring
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-5.15.0-71-generic (5.15.0-71.78) ...
Processing triggers for linux-image-5.15.0-71-generic (5.15.0-71.78) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-71-generic
I: The initramfs will attempt to resume from /dev/dm-0
I: (/dev/mapper/vg00-lv00)
I: Set the RESUME variable to override this.
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-5.15.0-71-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.15.0-71-generic (--configure):
installed linux-image-5.15.0-71-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.15.0-71-generic
needrestart is being skipped since dpkg has failed
stderr:E: Sub-process /usr/bin/dpkg returned an error code (1)
exit status 1:
0: /opt/psa/admin/plib/modules/nodejs/library/Installer.php:131
PleskExt\Nodejs\Installer->installLinuxPackages()
1: /opt/psa/admin/plib/modules/nodejs/library/Installer.php:118
PleskExt\Nodejs\Installer->installPackages()
2: /opt/psa/admin/plib/modules/nodejs/library/Installer.php:74
PleskExt\Nodejs\Installer->run()
3: /opt/psa/admin/plib/modules/nodejs/scripts/post-install.php:8
ERROR: pm_Exception: ERROR:__main__:Command '['apt-get', '-q', '--assume-yes', '-o', 'Dpkg::Options::=--force-confdef', '-o', 'Dpkg::Options::=--force-confold', '-o', 'APT::Install-Recommends=no', '--purge', 'install', 'passenger', 'libapache2-mod-passenger-plesk']' returned non-zero exit status 100.
stdout: Reading package lists...
Building dependency tree...
Reading state information...
libapache2-mod-passenger-plesk is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
passenger is already the newest version (6.0.13-v.ubuntu.22.04+p18.0.52.0+t230404.1221).
The following packages were automatically installed and are no longer required:
jsonlint libevent-pthreads-2.1-7 libflashrom1 libftdi1-2 libmecab2
linux-headers-5.15.0-67 linux-headers-5.15.0-67-generic
linux-image-5.15.0-67-generic linux-modules-5.15.0-67-generic
linux-modules-extra-5.15.0-67-generic mecab-ipadic mecab-ipadic-utf8
mecab-utils php-composer-ca-bundle php-composer-metadata-minifier
php-composer-pcre php-composer-semver php-composer-spdx-licenses
php-composer-xdebug-handler php-intl php-json-schema php-mbstring
php-psr-container php-psr-log php-react-promise php-symfony-console
php-symfony-deprecation-contracts php-symfony-filesystem php-symfony-finder
php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts
php-symfony-string php8.1-intl php8.1-mbstring
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-5.15.0-71-generic (5.15.0-71.78) ...
Processing triggers for linux-image-5.15.0-71-generic (5.15.0-71.78) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-71-generic
I: The initramfs will attempt to resume from /dev/dm-0
I: (/dev/mapper/vg00-lv00)
I: Set the RESUME variable to override this.
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-5.15.0-71-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.15.0-71-generic (--configure):
installed linux-image-5.15.0-71-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.15.0-71-generic
needrestart is being skipped since dpkg has failed
stderr:E: Sub-process /usr/bin/dpkg returned an error code (1)
exit status 1 (Installer.php:131)

The only thing that i can make sense out of all of this is a memory error. Looking at my server stats, ram does seem to spike.
I set up 4GB swap on top of the 2gb already there.
It never went over the limit but I still increased it, just for safety. plesk360 is not showing any dangerous level of ram usage.

In terms of disk space, I have 80GB left.

Under server info > disk
/dev/loop0 through to loop5 are all 100% max and sda1 has 60mb free.

can anyone please advise.
 
Oh dear.

I went down a google rabbit whole and completely blindly smashed away commands like a monkey.

I thought i would try to incerase size of sda1. I would need to reduce the size of the other volume though. I tried resize2fs.

Just need to unmount the volume first. So i did. using umount -l
and basically I squatted on on my server and let rip.

I tried to mount but then it said not found in mtab, but i checked, and the volume was there. so i figured i would just restart and it would all load up again.

Nope.

I really should stop being so impatient and care free.
 
I did a hardware shutdown and restart which fixed the unmount issue that i created for absolutely no reason.

but the nodejs issue still remains
 
Back
Top