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 , May 7th, 2020
I wanted to empty the time series data cache from the Prometheus server to start clean. The best practice is to use the administrative HTTP API via curl. For example, to clear all data for job mysqld as defined in the prometheus.yml configuration file:
curl - X POST - g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={job="mysqld"}'
If you want to delete ALL data from Prometheus, then […]
Categories: How-To's , Technology Tags: Cache , Clear , Curl , Delete , Empty , howto , Prom , Prometheus , Remove , tips
| No comments
Author:
erics , February 25th, 2012
Prerequisites: curlftpfs and rsync programs must be installed! Create a mount point, then mount the remote directory:
mkdir / path / to / mount / ftp / server / on
curlftpfs - o user = yourLogin : yourPassword yourServer / path / to / mount
Now rsync the mounted FTP directory to your local directory:
rsync - av -- progress / path / to / mount / ftp / server / on / / path / on / local / host /
http://curlftpfs.sourceforge.net/
Categories: How-To's , Technology Tags: Curl , curlftpfs , FTP , howto , rsync , tips
| No comments
Author:
erics , February 25th, 2012
yum install glib2 - devel
yum install fuse - devel
yum install libcurl - devel
wget http : //sourceforge.net/projects/curlftpfs/files/latest/download
tar xvzf curlftpfs - 0.9.2.tar.gz
cd curlftpfs - 0.9.2
. / configure
make
make install
http://curlftpfs.sourceforge.net/
Categories: How-To's , Technology Tags: Amazon , Amazon Linux , AWS , CentOS , compile , configure , Curl , curlftpfs , fuse , glib , howto , make , make install , tips , Yum
| 2 comments