Giter Site home page Giter Site logo

Comments (24)

anmol26s avatar anmol26s commented on August 27, 2024

Have you installed app on private mode or public mode?

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

what exactly you mean with private and public mode? i dont see any option like this. i guess you talk about the yunohost app kimai while installation?

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

would be great if i could see any logs. the doctor tab log files is just showing "Missing Logfile" and kimai2/var/log is also empty

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

Have you installed app on private mode or public mode?

i have installed the kimai app on yunohost disabling the option being seen by anonymous users. also i disabled the option that users can register themselfes.

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

Can you open xxx/api/doc in your installation? Probably everything is good with Kimai, but you are only using a wrong URL?

Where does the message Invalid answer from API come from?

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

when i open https://mydomain.my/api/doc i get straight to the login screen.

the message Invalid answer from API appears in the android kimai app, when i push the button "Test Settings"

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

when i open https://mydomain.my/api/doc i get straight to the login screen.

and after login? please provide as much info as possible

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

ups, sorry i didnt try to login.

the API Docs page apears. with all api listed.

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

Two options: you entered a wrong URL in the app or your Kimai is not available from outside (private mode?)
I don't know how YunoHost works, so I would test that as well

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

There was a bug in the app: don't enter a / at the end of the URL!
So something like https://example.kimai.cloud or https://mydomain.my

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

is there a port to open in firewall?

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

the URL i entered is correct. i checked this many times.

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

i still dont understand this private and public mode. i dont find any option for this in the installation process of kimai in yunohost.

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

another question. is there a way to turn on loging? like i write before, there is no logfile for kimai. nor in var/www/kimai2/var/log neither in var/log

from kimai2_ynh.

anmol26s avatar anmol26s commented on August 27, 2024

i have installed the kimai app on yunohost disabling the option being seen by anonymous users. also i disabled the option that users can register themselfes.

This means that you are on private mode. You would not be able to see the Kimai2 page without login to the Yunohost. Please correct me if its other way around and you are on public mode.

is there a port to open in firewall?

No there is not need to open any port. Api is not relate to any port.

another question. is there a way to turn on loging? like i write before, there is no logfile for kimai. nor in var/www/kimai2/var/log neither in var/log

Most of the times problem is in the Nginx configuration. So check the log /var/log/nginx/yourdomain.tld.error.log

from kimai2_ynh.

anmol26s avatar anmol26s commented on August 27, 2024

@kevinpapst
Do we have LDAP ready for Kimai2?

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

Kimai supports LDAP, yes: https://www.kimai.org/documentation/ldap.html
Basic installation steps: create local.yaml with correct settings and then add composer package

from kimai2_ynh.

anmol26s avatar anmol26s commented on August 27, 2024

Great, this should be implemented in Kimai2. I will test it this weekend.
And from where can we change the log file for the Kimai2?

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

i have installed the kimai app on yunohost disabling the option being seen by anonymous users. also i disabled the option that users can register themselfes.

This means that you are on private mode. You would not be able to see the Kimai2 page without login to the Yunohost. Please correct me if its other way around and you are on public mode.

thats it!!!! i just installed a new instance with the anonymous option set and now it works.

there is just the logging issue left.

now i will try to install plugins. i hope this will work, if not you will read again from me ;)

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

Log config: config/packages/prod/monolog.yaml - probably its changed to point to some global YunoHost location?

from kimai2_ynh.

anmol26s avatar anmol26s commented on August 27, 2024

probably its changed to point to some global YunoHost location?
I think it has not changed anything. I will test it.

from kimai2_ynh.

anmol26s avatar anmol26s commented on August 27, 2024

thats it!!!! i just installed a new instance with the anonymous option set and now it works.
The api should be public by default despite the app being installed on private or public mode. I will fix this in next update.

from kimai2_ynh.

kevinpapst avatar kevinpapst commented on August 27, 2024

BTW: "Missing log file" doesn't mean it is not working!
Probably there hasn't been any log message ... logs are only written upon errors.

from kimai2_ynh.

leuchtrakete666 avatar leuchtrakete666 commented on August 27, 2024

i get it. i will keep an eye on this.

thanks for you all and your help.

from kimai2_ynh.

Related Issues (20)

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.