agateblue / trax Goto Github PK
View Code? Open in Web Editor NEWSimple time tracker designed for ChatOps
License: MIT License
Simple time tracker designed for ChatOps
License: MIT License
At the moment the build fails when processing as described in https://traxio.readthedocs.io/.
During building the worker
image, you get the error message:
Collecting psycopg2==2.6.2 (from -r /requirements/base.txt (line 31))
Downloading https://files.pythonhosted.org/packages/7b/a8/dc2d50a6f37c157459cd18bab381c8e6134b9381b50fbe969997b2ae7dbc/psycopg2-2.6.2.tar.gz (376kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wi3ankid/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wi3ankid/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-wi3ankid/psycopg2/
Complete output (7 lines):
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '11.5'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Service 'worker' failed to build: The command '/bin/sh -c pip list && pip install -r /requirements/production.txt && groupadd -r django && useradd -r -g django django' returned a non-zero code: 1
A quick research brought me to this issue of psycopg2. When updating the version to 2.7.3.1
(the one I tried out of the blue) in requirements/base.txt
, it seems to compile successfully.
Nevertheless I did not try to check for any other bugs/errors/incompatibilities. I ask you to check on this issue and update the code accordingly.
Hey @EliotBerriot !
First, hugely appreciate you sharing this project back with the world. Fantastic work!
I wanted to let you know about our plans moving to API v4:
To make the Mattermost API web service easier to use and to offer more powerful options for these integrations, Mattermost will be moving to a new API version soon. Highlights include:
We plan to release API version 4 on March 16th, with Mattermost server 3.7. While the current API version 3 will be supported until September 16th, we recommend you begin using API version 4 soon after its release.
API version 4 is an active and on-going project. If you're interested in helping contribute, please join our Mattermost community instance and the APIv4 channel.
We've prepared a contribution process for APIv4 and a progress tracker for new APIv4 enpoints to help you get started.
We're also open for suggestions on adding new API endpoints to help with your integration.
I'm running mattermost on a shared system without docker. So I would love a way to install trax without docker.
I followed guide on https://traxio.readthedocs.io/en/latest/deploy.html and after succesfully pass all steps and configure DJANGO_ALLOWED_HOSTS I cannot login. I get error:
Forbidden (403)
CSRF verification failed. Request aborted.
Could you please help me how to fix this issue?
Hello,
I tried to deploy using the docker-compose method you detail.
I configured my .env
file with:
DJANGO_ALLOWED_HOSTS=['127.0.0.1']
but then when I try to visit http://127.0.0.1:8079, I get a 400 level error, and the following in the docker logs:
ERROR 2020-09-14 17:59:00,229 exception 16 140629607933760 Invalid HTTP_HOST header: '127.0.0.1:8079'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.
I tried adding 127.0.0.1:8079
there, but that didn't work.
thought the problem might have been the port, so I tried to change the port in the docker-compose.yml to just map 80, but I still get this:
ERROR 2020-09-14 18:04:28,490 exception 17 140046465333056 Invalid HTTP_HOST header: '127.0.0.1'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.
I tried to make trax running using docker. I went with your suggestion
# clone the repository
git clone https://github.com/EliotBerriot/trax.git
cd trax
# setup the environment variables
# edit the .env file, especially the TIME_ZONE variable
# and the DJANGO_ALLOWED_HOSTS one
cp env.example .env
nano .env
# set up the docker-compose file
# customize any configuration in the docker compose file
# especially, you can change the listening port and ip
cp docker-compose.example.yml docker-compose.yml
nano docker-compose.yml
# build and run the containers
docker-compose build
docker-compose up -d
# create tables in the database
docker-compose run django python manage.py migrate
# create an admin user (this will be needed to configure your tokens)
docker-compose run django python manage.py createsuperuser
Unfortunately you do not mention what the various settings mean and how they should be set up correctly.
I put an apache web server (serves also other sites) as a reverse proxy between the internet and trax. That is it is configured to forward all traffic for domain trax.example.com
to the nginx in the docker container. I put in the list of allowed hosts the site trax.example.com
as sole entry. Using this setup, I can connect to the django server (later I want to get rid of nginx but this is another story).
When I try to log in using my username and password as set up in the commands above, I get a HTTP error 500 Internal server error
. This is coming from django itself. I sniffed into the traffic of the bridge and the nginx sends the POST
request to /accounts/login
with the credentials to django. The result is the error 500.
In the docker logs there is nothing that looks suspicious except for some warnings about missing .env
files. Especially there are no errors shown.
What can I do to track this further down?
Running docker-compose -f dev.yml run django python manage.py createsuperuser
fails with ImportError: No module named 'boto'
I´d really like to see trax more modular and better documented to integrate it into our running Mattermost instance. I´m not very familiar with Docker and have no idea what went wrong.
Thanks for this project, I´ve really missed something like this.
After invoking /trax stop 17h15
on a running task at day+1 the task completely disappears from the /trax stats
table
Timers were successfully stopped on Jan. 6, 2017, 5:15 p.m.:
reticulating splines
Now we switched to summer time, at least in France, it seems that existing reminders are occuring one hour later :/
When you add a reminder, you always want it in the future. In the parse_future
function, the default PREFER_DATES_FROM
settings is applied and choose past dates.
e.g.: if the current day is tuesday and you add a reminder for wednesday 10 o'clock, it will raise an error since the parse_future
function won't return anything.
The easy fix is to specify settings={'PREFER_DATES_FROM': 'future'}
in the parameters of the dateparser.parse
function:
parse(u'wednesday 10h00', settings={'PREFER_DATES_FROM': 'future'})
/trax stop two hours ago
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.