tar.bz2 cannot stat: no such file or directory - tar

I am compressing 60G of a backup of a bank using the command below, but the log informs the following messages.
What can it be?
Command:
BZIP=-9 tar -cvjf /backup/backup-mysql-'date "+%Y%m%d"'.tar.bz2 /backup/backup-mysql
Error:
tar: "+%Y%m%d".tar.bz2: Cannot stat: No such file or directory
tar: Removing leading `/' from member names

Try with following command:
tar -cvjf /backup/backup-mysql-$(date "+%Y%m%d").tar.bz2 /backup/backup-mysql

Related

ld: 0706-005 Cannot find or open file: /lib/mcrt0.o

I am try to make install the ImageMagick-6.9.10-86 on the AIX system, but error prompted as below :
CCLD magick/libMagickCore-6.Q16.la
/opt/IBM/xlC/16.1.0/bin/.orig/xlc: 1501-210 (W) command option t contains an incorrect subargument
ld: 0706-005 Cannot find or open file: /lib/mcrt0.o
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
Stop.
make: 1254-004 The error code from the last command is 2.
when I try to use ls -l /lib/mcrt0.o and ls -l /usr/ccs/lib/mcrt0.o command, result as below :
ls: 0653-341 The file /lib/mcrt0.o does not exist.
I only can find crt0.o in the path.

the make.sh for fastdht not work.When running it shows "nm: /usr/lib/libc_r.so:no such file"

I want to install fastdht. So I download source code from github
https://github.com/happyfish100/fastdht
I follow the INSTALL file, run make.sh first.
./make.sh
However, it shows the following error messages.
[root#localhost fastdht]# sh make.sh
make.sh: line 142: warning: here-document at line 2 delimited by end-of-file
(wanted `EOF')
make.sh: line 2: ./a.out: No such file or directory
nm: '/usr/lib/libc_r.so': No such file
nm: '/lib64/libc_r.so': No such file
nm: '/usr/lib64/libc_r.so': No such file
[root#localhost fastdht]#
What's the matter?
Maybe there are some format errors in make.sh.
I create a new file a.sh and type the contents of make.sh in it. When I run a.sh it works!

This does not look like a tar archive

[root#c0002242 lfeng]# tar -zxvf /opt/test/ALLscripts.tar.gz -C /opt/test1
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Could you please help me on this ?
Run the command
$ file ALLscripts.tar.gz
Compare the output, if it's gzip (as shown below) then use unzip tool to extract it
$ ALLscripts.tar.gz: gzip compressed data,from Unix
I was facing this error because my file was not downloaded yet and I was trying to extract it :).

uwsgi: find: `/etc/uwsgi/s-enabled': No such file or directory

I am trying to start uwsgi for the first time and I am getting an error:
sudo service uwsgi start --status-all
* Starting app server(s) uwsgi
dirname: invalid option -- '-'
Try `dirname --help' for more information.
basename: invalid option -- '-'
Try `basename --help' for more information.
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
The only steps I have taken towards installing uwsgi is apt-get install.
Then I created a .ini file for my site in the /etc/uwsgi/apps-available/ directory and a symbiotic link to this .ini file in /etc/uwsgi/apps-enabled/ directory.
I haven't the slightest clue why it is checking in /etc/uwsgi/s-enabled/ directory.
Check your uwsgi config file, it should probably be
/etc/uwsgi/apps-enabled
this directory holds the uwsgi app's ini files either via symlinks from directory
/etc/uwsgi/apps-available/
or you can have ini files directly here.
example with symlink:
ln -s /etc/uwsgi/apps-available/testApp.ini /etc/uwsgi/apps-enabled/testApp.ini
Installation of uwsgi and it's configuration on ubuntu can be found here
django + uwssgi + nginx on ubuntu
Installation of same on centOS6 can be found here
uwsgi + gevent + flask + nginx + mongodb on centOS6

tar: This does not look like a tar archive

I split a huge folder:
tar cvpf - somedir | split -b 50000m
I then transfered split files to another server and merge it:
cat x* > somedir.tar.gz
but when I tried to extract the file it shows errors:
tar xvf tar xvf somedir.tar.gz tar: This does not look like a tar
archive tar: Skipping to next header tar: Archive contains obsolescent
base-64 headers tar: Error exit delayed from previous errors
How to fix this problem?
It is not guaranteed that x* will expand to the same order in which the files are split. Assuming the file is split into three chunks then the first chunk would have the tar(1) header so you'll have to assemble them back in the same way.
Use ls(1) with the -t option to concatenate the files in that order.
Hope that helps.

Resources