Git Product home page Git Product logo

chromebot's Introduction

chromebot

This is a small intoduction into common chromebot admin tasks.

Restarting

To restart chromebot run:

systemctl --user restart chromebot-irc

The dashboard can be restarted with:

systemctl --user restart chromebot-irc-dashboard

If you want to retrieve the status of a service like chromebot-irc, replace “restart” with “status”.

Killing jobs

Usually only jobs that ran for more than a few hours should be killed. Get a list of browser processes using:

ps -f -C google-chrome-stable

Then check the column stime (start time) and verify the process has been running a long time. Use the PID (not PPID) column to figure out the process ID, which you can then feed into:

kill 12345

Replace 12345 with the actual number. If you now run the first command the process should be gone and – if any – the next job will run.

Cleaning up crashed jobs

Crashing jobs leave their temporary data behind in the directory crocoite-data/temp, thus it is necessary to clean those up from time to time.

Most jobs that crashed Google Chrome can be uploaded, because they usually fail during screenshot capturing. These jobs can be found and moved using:

cd crocoite-data/temp/
find . -mtime +0 -size +2M -ls

Examine list of files, check the WARCs look alright and they finished with status 2, then:

find . -mtime +0 -size +2M | parallel 'mv -vi {} ../finished/'

chromebot's People

Contributors

promyloph avatar

Watchers

 avatar  avatar  avatar

Forkers

heroku-miraheze

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.