Closed AlxBe closed 4 years ago
I will take a look but this may be an issue for kimai app itself,
Hi @tobybatch, I'm experiencing the same issue (when preview or print invoice).
I attempted to look at the kimai and nginx container logs and it seems we only see HTTP 200's.
When I click Preview I get http://mykimaihost:8001/en/invoice/?searchTerm=&daterange=2020-01-01+-+2020-01-31&customer=1&project=1&activity=1&users%5B%5D=1&tags=&exported=1&template=1&preview=
When I do print I get http://mykimaihost:8001/en/invoice/?searchTerm=&daterange=2020-01-01+-+2020-01-31&customer=1&project=1&activity=1&users%5B%5D=1&tags=&exported=1&template=1&create=
When searching Kimai Github Issues, I'm not seeing any bug reports regarding this issue. Is there anything I can provide to assist to find the source of the problem?
@stevenhrabok can you please test some POST forms (edit/create something). Do they work? Now test some forms that utilize GET parameter (eg. search, invoice, pagination). Do they work? I'd say #66 is related.
@Schrolli91 have you time to look at this? It could be nginx an forwarding issue, and I'm slammed at work right now.
@tobybatch Found the fix, attempted to submit a branch with PR, but didn't have permission.
https://github.com/tobybatch/kimai2/blob/master/compose/nginx_site.conf#L14
needs to be changed to try_files $uri $uri/ /index.php$is_args$args;
the missing $is_args$args
was causing the uri arguments to be lost.
@stevenhrabok awesome, nice finding! I looked through it, but didn't spot it. FYI - you have to fork the repository, then create the branch, do your changes, push the branch. Now you can create a PR
Top work, thanks you. I'll get that fix in place over the weekend
ok - I'm too late :-D @stevenhrabok thank you for your investigations
Perfect! Thank you very much.
@Schrolli91 Can you fix this please? I'm a nginx n00b and I can seem to get it to work.
@stevenhrabok can you please take a look at the PR #71
atm i'm not able to test these changes properly - should be confirmed before we'll merge this to the master branch
closed because PR is on the way
Describe the bug I implemented the kimai2 docker infrastructure based on your docker images/builds. Thank you for that. To access the containers I implemented a nginx reverse proxy in front of it (see docker-compose.yml and app.conf - the nginx proxy conf). Everything works fine (export - all variations) except the invoice generation. The invoice generation does nothing (calls "https://zeit.xxxxxx.de/en/invoice/?searchTerm=&daterange=2020-01-01+-+2020-01-31&customer=1&project=&activity=&tags=&exported=5&template=1&preview=") but nothing appears, no DOCX is downloaded. Btw. the calender doesn't show any timesheet entry, but is displayed correctly
Thank you for your help.
To Reproduce
docker-compose stop && docker-compose rm && docker volume prune
Desktop (please complete the following information):
Command used to run the container
Docker compose file (with passwords redacted)
Additional context kimai container starts with a warning:
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'ldap.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/ldap.so (Error loading shared library libldap-2.4.so.2: No such file or directory (needed by /usr/local/lib/php/extensions/no-debug-non-zts-20180731/ldap.so)), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/ldap.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20180731/ldap.so.so: No such file or directory)) in Unknown on line 0
nginx proxy config