GithubHelp home page GithubHelp logo

yunohost-apps / kimai2_ynh Goto Github PK

View Code? Open in Web Editor NEW
13.0 9.0 8.0 403 KB

Kimai v2 package for YunoHost

Home Page: https://www.kimai.org/

License: MIT License

Shell 100.00%
kimai2 yunohost yunohost-apps

kimai2_ynh's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kimai2_ynh's Issues

Cant sign in with user after installation

Hi, i installed yunoHost /kimai2 in a virtual mashine.

YunoHost and Kimai can be accessed via the URL

But i cant login with the admin user, i created. is there a default second admin, or where might I find the users table in order to set a new admin?

cant create customer

Hi,
after a new install of yunohost and kimai2 via cli ( sudo yunohost app install https://github.com/YunoHost-Apps/kimai2_ynh ) I can´t create a customer.

Need some help.

Oops! Ein Fehler ist aufgetreten.
500: Internal Server Error
Ein unerwarteter Fehler ist aufgetreten. Möglicherweise haben Sie einen Bug gefunden, daher kontaktieren Sie bitte ihren Administrator wenn der Fehler nach einem erneuten Versuch immer noch vorhanden sein sollte.

Android Tracker App API Error

i am on the latest yunohost. i need to use the tracker app, but i get "Invalid answer from API". i set API passwords for my users. to create the user i log in with each single yunohost LDAP user. unfortunetly i dont see them right away in the management gui.

furthermore i cant provide any logs. i only get "Missing Logfile".

Time off by 1 hour

Just set up Kimai through the Yunohost interface and noticed that all times are minus 1 hour off. Clients are set to "Berlin" which is my timezone. Is there anything else I have to change to get the correct time?

Btw great work with the new interface! Love it!

Kimai2 Install shows crrupt

I am trying to install Kimai on (yunohost-buster-4.0.3-amd64-stable.iso) (yunohost-buster-4.0.3-i386-stable.iso) yunohost over the virtualbox, it kept giving me error of the corrupt source. Could not install kimai2: An error occurred inside the app installation script

Upgrade from 1.11.1 to 1.27.0 fails

Describe the bug

Upgrade from 1.11.1 to 1.27.0 fails:

Warning: Unable to install core dependencies with Composer.
Warning: [Error] Upgrade failed.

Context

Looks like #57

yunohost: 
  repo: stable
  version: 11.0.10.1
yunohost-admin: 
  repo: stable
  version: 11.0.11
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.9

Logs

https://paste.yunohost.org/raw/bejavifoga

Installing Plugins Breaks Kimai

i am back ...

i installed the MetaFieldsBundle Plugin. i did as i was instructed. created the folder in ../var/plugins, cleared cache and created database.

thats the outcome:

image

thats the terminal output of clearing the cache:

image

and thats what happens when i create the database:

image

Enhance description

Hi, I was browsing the apps list (I guess it is the same in the webadmin), and came across Kimai's "non-description". 😄

"en": "Kimai2 package for YunoHost.",

I suggest something more informative like "Kimai2, open-source timetracker packaged for YunoHost".

sury source mess up with php

Related to this

I believe Kimai mess with php such as declare here
YunoHost-Apps/nextcloud_ynh#211

I was unable to install nextcloud because php-zip was missing (even if it is declare in the common file)

2019-06-15 07:37:10,952: DEBUG - PHP module zip not installed.
2019-06-15 07:37:10,952: WARNING - Unable to install Nextcloud
I was able to fix this by installing php7.0-zip

on my system php-zip refered to php7.3-zip
which is refered in /etc/apt/sources.list.d/php7.list
which based on date was declared by kimai2

so you should or

  1. the debian way which is to lower the priority of sury repo you declare here

  2. the yunohost way which is using the yng install php

Please consider using ynh_install_php

Hi

We noticed that you use an another version of php than the current version of stretch. Installing another version of php can (will probably) breaks YunoHost for other apps.
Please consider using the experimental helper ynh_install_php to handle securely other version of php.

If you encounter any problem using this helper, please open an issue on the repo.

Upgrade to 1.13

Kimai 1.13 is available. Update should be easy.
Nothing major has changed, only that Composer 2 is now supported (but not required).

Upcoming 0.8 and a necessary DB update

Hi @anmol26s ,

I have a "warning" about the next version: there was a major problem in Kimai, regarding timezones and the records time storage. I wasn't noticed, as most of the user run Kimai in a foxed PHP environment only using the local timezone.
But now it was found and unfortunately after the update a special script needs to be executed, which will convert all existing records.

Its further explained in this PR: kimai/kimai#372

I wanted to share this info early, so you can think about a migration path.

Probably its safe to assume that YunoHost users did not import data from Kimai 1 manually, so it might be a simple if/else on the Kimai version and then executing that one command without any parameter?

Installation fails at Symfony install

The installation fails (both using CLI and browser GUI)

- Installing ocramius/package-versions (1.3.0): Loading from cache
Package operations: 79 installs, 0 updates, 0 removals
- Installing symfony/flex (v1.0.80): Loading from cache
Plugin installation failed, rolling back
- Removing symfony/flex (v1.0.80)
[ErrorException]
Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUrl, $fileUrl, $context) should be compatible with Composer\Util\RemoteFilesystem::getRemoteContents($originUrl, $fileUrl, $context, ?array &$responseHeaders = NULL)
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...
Unable to update Kimai2 core dependencies
!!
kimai2's script has encountered an error. Its execution was cancelled.
!!
Remove the user kimai2

Could be related to this recent issue on another repo? The actual error line is the same.

Running YunoHost 3.0.0.1 on VirtualBox.

Manage dedicated Kimai API permission

Atm, I can only manage a permission for the whole Kimai app. What I want to have is making the Kimai API publicly available while having the core app only available for logged in YNH users and not accessible publicly. Therefore, a dedicated permission for the API would be required so that there are two manageable permissions:

  • KImai2
  • Kimai2 (api)

Corrupt source 1.27.0~ynh1

Hello
I,m trying to install the 'kimai2' app.
I have error message:


2023-09-01 08:44:10,173: DEBUG - + out='2023-09-01 08:44:10 URL:https://codeload.github.com/kimai/kimai/tar.gz/refs/tags/1.27.0 [3769206] -> "/var/cache/yunohost/download/kimai2/mysql.tar.gz" [1]'
2023-09-01 08:44:10,175: DEBUG - + sha256sum --check --status
2023-09-01 08:44:10,227: WARNING - Corrupt source

Full log https://paste.yunohost.org/raw/mimoqeqise

ERROR - Could not install kimai2

Yunohost tells me it's all up to date.

Error log:

2020-10-26 14:14:34,610: DEBUG - + workdir=/var/www/kimai2
2020-10-26 14:14:34,610: DEBUG - + phpversion=7.3
2020-10-26 14:14:34,610: DEBUG - + COMPOSER_HOME=/var/www/kimai2/.composer
2020-10-26 14:14:34,610: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/kimai2
2020-10-26 14:14:34,611: DEBUG - + curl -sS https://getcomposer.org/installer
2020-10-26 14:14:45,347: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/kimai2 '--commands=install --no-dev --optimize-autoloader'
2020-10-26 14:14:45,348: DEBUG - + declare -Ar args_array
2020-10-26 14:14:45,449: DEBUG - + workdir=/var/www/kimai2
2020-10-26 14:14:45,450: DEBUG - + phpversion=7.3
2020-10-26 14:14:45,450: DEBUG - + COMPOSER_HOME=/var/www/kimai2/.composer
2020-10-26 14:14:45,450: DEBUG - + php7.3 /var/www/kimai2/composer.phar install --no-dev --optimize-autoloader -d /var/www/kimai2 --quiet --no-interaction
2020-10-26 14:14:45,851: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.'
2020-10-26 14:14:45,852: WARNING - Your lock file does not contain a compatible set of packages. Please run composer update.
2020-10-26 14:14:45,853: WARNING - Unable to update core dependencies with Composer.
2020-10-26 14:14:45,855: DEBUG - + ret_code=1
2020-10-26 14:14:45,855: DEBUG - + echo 'Unable to update core dependencies with Composer.'
2020-10-26 14:14:45,856: DEBUG - + exit 1
2020-10-26 14:14:45,856: DEBUG - + ynh_exit_properly
2020-10-26 14:14:45,856: DEBUG - + local exit_code=1
2020-10-26 14:14:45,856: DEBUG - + '[' 1 -eq 0 ']'
2020-10-26 14:14:45,856: DEBUG - + trap '' EXIT
2020-10-26 14:14:45,856: DEBUG - + set +o errexit
2020-10-26 14:14:45,857: DEBUG - + set +o nounset
2020-10-26 14:14:45,857: DEBUG - + sleep 0.5
2020-10-26 14:14:46,358: DEBUG - + type -t ynh_clean_setup
2020-10-26 14:14:46,359: DEBUG - + ynh_clean_setup
2020-10-26 14:14:46,359: DEBUG - + true
2020-10-26 14:14:46,359: DEBUG - + exit 1
2020-10-26 14:14:46,410: ERROR - Could not install kimai2: An error occurred inside the app installation script

Login doesn't work with LDAP after upgrade to 1.17

I had a version 1.11 of Kimai2 working properly. LDAP users could login with no issue.

But after an update to version 1.17, it is not possible anymore for users to login with their "yunohost" credentials (yunohost user/password). The message "Invalid credentials" is shown.
However, a "Kimai" user (a user created directly in Kimai) can login correctly (with their kimai credentials).

I can reproduce this behavior consistently: If I restore the 1.11 backup, I can login with a ldap user, but as soon as I perform the update it not possible anymore.

I tried to dig a little bit but I couldn't find anything: the upgrade runs correctly, everything in the mysql DB seems to be OK and I couldn't find any really relevant logs.

I tried what's suggested in this PR: #46 but it doesn't change anything.

LDAP not working as expected

I am unable to log in with any of my users. I always get an error message telling me the login is invalid.
One time I got an error saying I had an invalid CRSF-Token but I have not been able to reproduce that error.

When trying to create a user I got an error (500) telling me that I encountered a bug.
This was the case for existing users and for completely new users.
Clicking the Dashboard button (see screenshot) brought me back to the login page.

Restarting my server did not help resolve the issue

I am using YunoHost version 4.3.6.3 and Kimai2 version 1.17.1~ynh1

Steps to reproduce

  • install kimai2 via the web-interface
  • try to login or create a user

Expected behavior

It should allow me to login with my LDAP users or at least let me create a user.

I found no errors in the installation log, only debug and info

I took some screenshots but my server is set to German, I hope I explained the issue well enough so you can understand it anyway

Screenshot_20220609_021234
Screenshot_20220609_021341

LDAP not working

LDAP not working at installation (so no logging is possible)

I create an user

/usr/bin/php8.2 /var/www/kimai2/bin/console kimai:user:create username [email protected] ROLE_SUPER_ADMIN

[buster] Adapt the PHP 7.x custom install / requirement

Following the discussion started here, this app needs to be adapted both to :

  • be installable on a fresh Buster system
  • make the transition smooth for people upgrading from Stretch to Buster

Currently the app relies on a custom install of PHP 7.1 / 7.2 / 7.3 which should be adapted. Imho (to be discussed and see with other app packagers after we gain more XP with this) :

  • the scripts should be adapted to use PHP 7.3 instead of 7.2
  • the upgrade script should take care of the move from 7.2 to 7.3 (which for users could and should therefore happen prior to the upgrade to buster)
  • we should have an if/else to install PHP 7.3 only if we're on stretch (and not on buster) like drafted here for mastodon but also need to be propagated on restore script (and maybe upgrade script)

Overall this treatment should be pretty much the same for all apps in that situation, so once we solve this for one app it should be easily applicable to other similar apps.

After recent upgrade, "missing permissions: redirect to login?" dialog box when attempting to create new entry

Running Yunohost 11.2.11.3 (stable) on Rpi4. After recent upgrade, when I click "Play" icon, or try to add a new time entry, upon selecting an entry in the "Project" field of the time entry dialog, I receive the following dialog box warning, and cannot proceed to complete the entry:

Screenshot 2024-05-02 at 12 46 20

I have allowed it to redirect me, and logged in again. But the dialog persists, always after selecting the project.

Screenshot 2024-05-02 at 12 49 22

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.