Author:
erics , December 3rd, 2020
Problem While running the aws cli command from a Perl async command inside apid, I go the following error:
IOError : [ Errno 10 ] No child processes
Solution The issue turned out to be a bug in Python2.7, so I upgraded to Python3.4, then uninstalled and re-installed the aws cli software so that it used the proper Python34 version. Procedure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sudo - i
cd
## Upgrade Python
yum install python34
alternatives -- config python
## "Uninstall" old aws cli
mv / opt / aws / opt / aws . fcs
cd / usr / bin /
mv aws aws . fcs
mv aws_completer aws_completer . fcs
## Install new aws cli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" - o "awscliv2.zip"
unzip awscliv2 . zip
. / aws / install - i / opt / aws - b / usr / bin
/ usr / bin / aws -- version
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html […]
Categories: How-To's , Technology Tags: alternatives , API , apid , AWS , aws cli , AWS Linux , Broken , cli , Cloudformation , Command , Curl , Error , Exec , Execute , howto , IOError , Linux , No child processes , perl , Python , Python27 , Python34 , tips , Yum
| No comments
Author:
erics , January 21st, 2020
PROBLEM DEFINITION Bamboo Catalina error found in catalina.out:
- Djava . endorsed . dirs = / volumes / data / bamboo / current / endorsed is not supported . Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules .
Error : Could not create the Java Virtual Machine .
Error : A fatal exception has occurred . Program will exit .
SOLUTION SUMMARY Correct by using Java 8 instead. Do it manually using alternatives –set, or interactively using alternatives –config. MANUAL PROCEDURE – two steps, one for java and one for javac
alternatives -- set java / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / java
alternatives -- set javac / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / javac
INTERACTIVE PROCEDURE – two steps, one for java and one for javac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
root @ bamboo : / root # alternatives --config javac
There are 3 programs which provide 'javac' .
Selection Command
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+ 1 / usr / lib / jvm / java - 1.8.0 - openjdk . x86_64 / bin / javac
* 2 / usr / lib / jvm / java - 11 - amazon - corretto / bin / javac
3 / usr / lib / jvm / java - 1.7.0 - openjdk . x86_64 / bin / javac
Enter to keep the current selection [ + ] , or type selection number :
root @ bamboo : / root # alternatives --config java
There are 4 programs which provide 'java' .
Selection Command
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+ 1 / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / java
2 / usr / lib / jvm / jre - 1.6.0 - openjdk . x86_64 / bin / java
* 3 / usr / lib / jvm / java - 11 - amazon - corretto / bin / java
4 / usr / lib / jvm / jre - 1.7.0 - openjdk . x86_64 / bin / java
Enter to keep the current selection [ + ] , or type selection number :
Categories: How-To's , Technology Tags: alternatives , Bamboo , Catalina , catalina.out , Config , Endorsed , Endorsed standards , howto , Java , Java 8 , java upgrade , java.endorsed.dirs , javac , set , tips , upgrade , Yum , yum update
| No comments