Giter Club home page Giter Club logo

robo-digipolis-helpers's People

Contributors

daften avatar dubgeiser avatar jelle-s avatar matthijs-va avatar mpparsley avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pfrenssen picabit

robo-digipolis-helpers's Issues

Cleanup files backup functionality

As a follow-up to #6, the files option should be removed (where applicable) from the various backup methods. All other related functionality may be removed as well.

Expand README.md

To indicate what this project is for. It's basically the flow we use at Digipolis, but the README should indicate that.
Also some examples on how to overwrite this general flow in a specific project.

When that is done, maybe update general robo documentation with our approach?

Ssh command fails when creating an tar file

[DigipolisGent\Deploy\Ssh] [email protected]:/home/data/apps/default/files$ tar -xkzf /home/data/apps/default/backups/1491296370/1491296370_2017_04_04_10_59_30.tar.gz
[DigipolisGent\Deploy\Ssh]
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

[DigipolisGent\Deploy\Ssh] Could not execute cd -P /home/data/apps/default/files && tar -xkzf /home/data/apps/default/backups/1491296370/1491296370_2017_04_04_10_59_30.tar.gz on 10.25.2.151 on port 22 in folder /home/data/apps/default/files with message:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
.

[DigipolisGent\Deploy\Ssh] Exit code 1
[error] Could not execute cd -P /home/data/apps/default/files && tar -xkzf /home/data/apps/default/backups/1491296370/1491296370_2017_04_04_10_59_30.tar.gz on 10.25.2.151 on port 22 in folder /home/data/apps/default/files with message:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
.

Make time outs configurable.

Sometimes build tasks can take up quite some time. Ideally one should investigate why and optimize the task, but there are case where this cannot be done easily, for instance when something needs to get deployed "right away". But, there are also tasks that just take up some time, like backing up the files/ directory in projects that have a lot of files.

Seems that by making these time outs configurable (with sensible defaults, obviously) we can circumvent this on a per-project-base.

Failed builds are sometimes not properly cleaned up

When a build fails, depending on where it fails, it isn't cleaned up and sometimes a directory remains:

 [DigipolisGent\Deploy\Ssh] chmod: cannot access ‘vendor/bin/robo’: No such file or directory

As a consequence the next builds will fail as the output of the following command will return the remaining directory of the previously failed build:
ls -1 | sort -r | head 1

The following error will occur:

[DigipolisGent\Deploy\DatabaseBackup]  The configuration file "" could not be found. 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.