ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
12.69k stars 565 forks source link

mongodb support for aw-server #349

Closed Ishwaridutt closed 4 years ago

Ishwaridutt commented 4 years ago

I tried running the activitywatch server in the ubuntu environment. Installed mongodb and pymongo but after changing the configuration to mongodb, serves throws a error.

the bug

Capture-activitywatch

To Reproduce

Steps to reproduce the behavior:

  1. download activitywatch for linux from https://github.com/ActivityWatch/activitywatch/releases
  2. change the storage configuration to mongodb in ~/.config/activitywatch/aw-server/aw-server.ini
  3. go to the aw-server directory inside activitywatch
  4. execute aw-server executable file. ' ./aw-server '
  5. See error

Environment

ErikBjare commented 4 years ago

Looks like the CI build doesn't install MongoDB. As you've noticed, installing pymongo on a system-wide level won't work since the bundle only uses the bundled packages. Your only option is installing from source.

This won't be fixed however, as we will drop support for MongoDB entirely in an upcoming version. Indeed the only datastore that will be supported is sqlite (the current default is peewee, and automatic migration will be performed only from it).

Ishwaridutt commented 4 years ago

Hello @ErikBjare , If you have any documentation for the source please share with me. Since we will be extending it, we will share the same with you.

ErikBjare commented 4 years ago

Instructions for installing from source can be found here: https://activitywatch.readthedocs.io/en/latest/installing-from-source.html

ErikBjare commented 4 years ago

As per my previous comment (https://github.com/ActivityWatch/activitywatch/issues/349#issuecomment-588091497), MongoDB support is being removed. Closing.