compgen: not found ls: cannot access /usr/bin/convert - linux

My server is very slow right now. I asked my provider to check whats wrong and i got this:
root#Pixel:~# tail -f /var/log/apache2/error.log
sh: 1: compgen: not found
ls: cannot access /usr/bin/convert: No such file or directory
ls: cannot access /usr/local/bin/convert: No such file or directory
sh: 1: compgen: not found
ls: cannot access /usr/bin/convert: No such file or directory
ls: cannot access /usr/local/bin/convert: No such file or directory
sh: 1: compgen: not found
ls: cannot access /usr/bin/convert: No such file or directory
ls: cannot access /usr/local/bin/convert: No such file or directory
sh: 1: compgen: not found
and that apache is consuming CPU.
We are using Wordpress with woocommerce on our site
any fix?

You have a program, or add-on to wordpress, trying to use ImageMagick convert program for image manipulation. But ImageMagick is not installed, so you need to install it no doubt.
If you have SSH access, I would suggest:
sudo apt-get install imagemagick
Let me know if this is not an option or doesn't help.

Related

"bash: No such file or directory" but the file exists

I'm trying to run a specific file using the code below on desktop ubuntu
source /mnt/d/Xilinx/Vivado/2021.1/settings64.sh
However, I keep getting hit with
-bash: D:\Xilinx\DocNav\.settings64-DocNav.sh: No such file or directory
-bash: D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh: No such file or directory
-bash: D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh: No such file or directory
-bash: D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh: No such file or directory
-bash: D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh: No such file or directory
I'm confused as to why can the file not be found when I can see it existing in the folder and when I run an ls command
Here is an image of the command prompt
I have seen a few posts with similar problems but I don't quite understand their solutions. Any clarification would be appreciated.
settings64.sh file contents
source 'D:\Xilinx\DocNav\.settings64-DocNav.sh'
source 'D:\Xilinx\Vivado\2021.1\.settings64-Vivado.sh'
source 'D:\Xilinx\Vitis\2021.1\.settings64-Vitis.sh'
source 'D:\Xilinx\Model_Composer\2021.1\.settings64-Model_Composer.sh'
source 'D:\Xilinx\Vitis_HLS\2021.1\.settings64-Vitis_HLS.sh'
can you check the fill content of settings64.sh.
Because in Linux we don't mount volumes with letters like C:// or D://
According to me that script is not made for the supported OS you running on.
Let me know if I am wrong and I will edit the answer accordingly.

installing npm in cpanel

This is the error message:
/home/hulukfyacom/nodevenv/myapp/10/bin/npm: fork: Cannot allocate memory
/home/hulukfyacom/nodevenv/myapp/10/bin/npm: line 13: /home/hulukfyacom/myapp/activate: No such file or directory
/home/hulukfyacom/nodevenv/myapp/10/bin/npm: line 14: /home/hulukfyacom/myapp/set_env_vars.py: No such file or directory
mkdir: cannot create directory '/lib/node_modules': Read-only file system
ln: failed to create symbolic link '/lib/package.json': Read-only file system
/home/hulukfyacom/nodevenv/myapp/10/bin/npm: line 35: /usr/bin/npm: No such file or directory
I am currently hosting my nodejs website and when I try to install npm it showed me this error. How can I solve this error please...any help...
You will need to create a symlink to your node and npm executables:
ln -s /opt/cpanel/ea-nodejs10/bin/npm /usr/local/sbin/npm
ln -s /opt/cpanel/ea-nodejs10/bin/node /usr/local/sbin/node
Not 100% sure if this is accurate since I don't have access to CPanel to test.
Although on further inpsection, it looks like you may be out of memory or even the file permissions are wrong. If the symlink does not work, can you run the following commands?
htop
If your memory is maxed out, this may be the source of your problem.
df -lh
This command will list the free hard disk space. Make sure the disk is not full.
ls -l
This will list the files and permissions, make sure that the file permissions are correct.
^These things are presuming that you have command line access. You should be able to check the resource usage from the CPanel interface if you need.

makeself startup script Permission denied

I created package.bin file with makeself on CentOS. It was created successfully.However, when i run the bin file on the same machine, i got permission denied error.
I granted 777 and a+x to package.bin file but still got the same error.
makeself --gzip ./target/package ./target/package.bin "package" ./install.sh
Verifying archive integrity... All good.
Uncompressing package.............................
./xxx.bin: line 392: ./install.sh: Permission denied
Try changing the permissions of the installation directory.
chmod -R 777 /target
I got this issue resolved by granting permissions to the original sh scripts before these are placed into the package folder in target.
Had this problem.
makeself.sh ./mysoft mysoft.sh "mysoft description" ./setup.sh
bash mysoft.sh
Verifying archive integrity... 100% All good.
Uncompressing mysoft desc 100%
mysoft.sh: line 577: ./setup.sh: Permission denied
solved with
chmod a-x ./mysoft/setup.sh

Elasticsearch installation error: No such file or directory

I'm using a linux machine. The Elasticsearch installation guide told me to simply download and unzip the file, and then run bin/elasticsearch. But when I ran it, I got this error:
$ bin/elasticsearch
-bash: bin/elasticsearch: No such file or directory
I can clearly see the elasticsearch file in my home directory, and all the files within it seem intact. What do I do?
If you are trying to access the file with:
bin/elasticsearch
You get the error.
Try to tell the full route.
First move to the directory with cd
cd route/to/your/directory
Then use . for calling from your actual position:
./bin/elasticsearch
Note: If you get an error about the access or something similar, try giving execution permission to your file:
chmod u+x ./bin/elasticsearch

error: ./dist/configure line 40:conf19087.sh: No such file or directory

I get the error as above when trying to build Berkeley database version 4.5.20. I have unzipped the archive to /opt on UNIX. Please can anyone tell me what I need?
I do the following:
Uncompress berkeley-db package in
some directory. say in /opt
cd to the build_unix directory
../dist/configure
When I run the last command it gives me the error as above. Does anyone know what I am missing here? Options? Another download?
Please make sure that you have correct file permissions for the distribution folder.
Try chmod +w -R /opt/db-4.5.20

Resources