Comments (8)
Can you give the following additional information:
- the location of the script (absolute path)
- the location of the config file (absolute path)
- the exact line that is used in your crontab (redacting any personal information if needed)
- the full error message and where exactly did you see it (in the log file of cron, in the log file of duplicity-backup.sh, somewhere else... ?)
Given the current information, I can't really know which process is reporting the "No such file or directory" error. This error is the standard one for many parts of the system when encountering the ENOENT error from the corresponding syscall.
Thanks!
from duplicity-backup.sh.
Hi there:
- the script is at
/pwpsetup/CentOSServerMgmt/duplicity/duplicity-backup-master/duplicity-backup.sh
. - the config file is at
/pwpsetup/CentOSServerMgmt/duplicity/duplicity-backup-master/config/duplicity-backup.{servername}.conf
- the cron line is
cd /pwpsetup/CentOSServerMgmt/duplicity/duplicity-backup-master; ./duplicity-backup.sh -c /pwpsetup/CentOSServerMgmt/duplicity/duplicity-backup-master/config/duplicity-backup.{servername}.conf -b
- the full error message is "No such file or directory". The cron line is not producing any output or log files at all. I am aware of the problem because I am not receiving emailed duplicity logs. I get the error in the console when I run duplicity-backup.sh with or without parameters.
When I replace duplicity-backup.sh with the version I had before I updated last week, running duplicity-backup.sh at the console produces the help information from the script as normal. Running the full cron line in the console starts the script running. If I update to the latest version, I get the error "No such file or directory".
{servername} is a placeholder for the name of the actual server the process is running on.
Thanks, Ben
from duplicity-backup.sh.
Just to be 100% sure that we are looking at the same version of the script, what is the output of git log -1 --oneline
?
from duplicity-backup.sh.
Hi, the script is deployed using our repo which is in mercurial. I copied and pasted the script from github into our repo.
from duplicity-backup.sh.
I still need to be sure of the version of the script used.
Here are the MD5 and SHA1 hashes of the latest version (commit 19951b7 Fix issue #94), can you confirm that they match with your copied script:
$ md5sum duplicity-backup.sh
35b75d17faabe0f8c8cc52cd36b783b5 duplicity-backup.sh
$ sha1sum duplicity-backup.sh
71b1258227f1a7409f26cff8dac6919fc43e82d1 duplicity-backup.sh
from duplicity-backup.sh.
Hi zertrin, I cannot generate the same hash as you. I literally copied the file data from https://github.com/zertrin/duplicity-backup/blob/master/duplicity-backup.sh and pasted it via SSH onto my server. I also pasted into a text editor and changed the line endings to Unix before re-copying and pasting onto the server, but still can't generate the same hash.
However, something in the process of doing that has sorted things, and I can now run the script!! So it seems the problem was between the copying of the file, pasting into the repo, and deploying to the servers.
Sorry to have troubled you...
Regards, Ben
from duplicity-backup.sh.
Using the "raw" button on the page you just cited can help too.
If your server has access to internet you could for example do wget https://raw.githubusercontent.com/zertrin/duplicity-backup/master/duplicity-backup.sh
to quickly get the latest version without the trouble of the line endings conversion ;) If not, you can do this on your computer first then transfer to your server, this is still a better option to get the script than copy-pasting it in an editor :)
No problem!
from duplicity-backup.sh.
as a side note:
$ wget -q -O - https://raw.githubusercontent.com/zertrin/duplicity-backup/master/duplicity-backup.sh | md5sum
35b75d17faabe0f8c8cc52cd36b783b5 -
from duplicity-backup.sh.
Related Issues (20)
- VERSION file issues HOT 1
- Hubic Support HOT 3
- Issue with PASSPHRASE and the ` character HOT 2
- Duplicity 0.7.14 generates warning: Option --include-globbing-filelist is pending deprecation and will be removed in a future release. --include-filelist and --exclude-filelist now accept globbing characters and should be used instead. HOT 1
- [feature request] Support dropbox backend
- Swift variables are exported but never unset
- Can't restore file HOT 1
- Possible issue with Cleanup Option HOT 6
- Feature Request: Only backup when connected to a whitelist of networks HOT 2
- bc: command not found
- gpg: WARNING: "--no-show-photos" is a deprecated option HOT 4
- How to restore the last known backup? HOT 1
- Archives Sizes 200MB HOT 2
- syntax error on line 314 breaks script HOT 1
- How to restore after complete data loss HOT 2
- The authorization mechanism you have provided is not supported HOT 5
- This project is unmaintained as of 2019 HOT 2
- Correct place to put extra S3 params HOT 5
- Archive-dir option? HOT 1
- FilePrefixError: /etc/passwd HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duplicity-backup.sh.