New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP/Exchange UTF-8 Status Code 500 #2140
Comments
Hi @e311 - could you please provide the upper part of the log, too? This is where the required information is printed out and which is currently missing. Additionally: Could you please describe the steps that you performed to get to the issue? This is currently not clear. Thanks! |
Hi @e311 - thanks for the comprehensive writeup! The interesting line in the log is this one:
Which basically says that there are specially encoded chars in the LDAP settings which will get/got stored. I can see those in the log, too. I think this is sufficiently enough to reproduce the issue. Thanks for your support so far. We will fix the issue. |
Please note that the Exchange integration is affected, too: #2152 |
Hi @e311, We've been digging into this issue and are pretty confident we understand what's going on, but we need to ask for your help again to be completely certain. Step 1: Confirm the cause of the bugTry the following line in your terminal, in the Zammad directory. If our suspicions are correct, then it should fail (i.e., raise an error and show a traceback):
If you saw a traceback for the same Step 2: Send us one last bit of crucial informationRun the following command in your terminal:
Then, send the resulting file ( With this, we should be able to get a fix working right away. Thanks again for all your help! |
This is the First massege
serveradmin@support:/opt/zammad$ rails r "puts Setting.get('ldap_config').to_json"
Traceback (most recent call last):
4: from bin/rails:3:in `<main>'
3: from bin/rails:3:in `require_relative'
2: from /opt/zammad/config/boot.rb:3:in `<top (required)>'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup (LoadError)
Gesendet: Montag, 06. August 2018 um 11:53 Uhr
Von: "Ryan Lue" <notifications@github.com>
An: zammad/zammad <zammad@noreply.github.com>
Cc: e311 <falk_wantzen@gmx.de>, Mention <mention@noreply.github.com>
Betreff: Re: [zammad/zammad] LDAP/Exchange UTF-8 Status Code 500 (#2140)
Hi @e311,
We've been digging into this issue and are pretty confident we understand what's going on, but we need to ask for your help again to be completely certain.
Step 1: Confirm the cause of the bug
Try the following line in your terminal, in the Zammad directory. If our suspicions are correct, then it should fail (i.e., raise an error and show a traceback):
$ rails r "puts Setting.get('ldap_config').to_json"
If you saw a traceback for the same Encoding::UndefinedConversionError that you got in the initial bug report, then great — onto Step 2! If not, please confirm that you haven't reset your database or altered your LDAP configuration since the last time this bug occurred. If you're still not getting an error, please let us know so that we can continue to investigate.
Step 2: Send us one last bit of crucial information
Run the following command in your terminal:
$ rails r "pp Setting.get('ldap_config').except('bind_pw')" > zammad_2140_debug_output.txt
Then, send the resulting file (zammad_2140_debug_output.txt) to support@zammad.com. Be sure to mention that the message is for Thorsten Eckel, and for bug #2140.
With this, we should be able to get a fix working right away.
Thanks again for all your help!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @e311 - Please try the following:
OR:
but should be the first line. |
@e311, that's very strange. Let's ignore the second command (
Thanks for all your help working through this issue with us. |
Whoops, you totally sent me the log at the start of the day yesterday. Don't know how I missed it! |
@e311, I didn't see what I was expecting to see in your debug output. Now that @MrGeneration was able to help you get your
|
I get the Message "Your Ruby version is 2.5.1, but your Gemfile specified 2.4.4" |
Your Ruby & your Elasticsearch version are not compatible with Zammad. |
@e311 sorry actually, totally my fault. Forgot to add I meant
|
Ther is the message : |
Hello, Just to clarify, I'm not sure if this is obvious since I have not seen anybody mentioning this. Running following on the working setup give me following output: If I run the command to check the ldap config with the original setup it fails and receive following error: Hope this helps you. |
Thanks @hublux! We've got a fix in the works thanks to your input; it should be merged to |
Hi @tidet, thanks for the feedback. Please follow the directions in this comment; your sample data will go a long way in helping us resolve this issue conclusively. |
Hi, Delete the old config with following command:
After this I did not face any issue. Regards |
@rlue should I try solution above or stay at current error for debugging purposes? |
@tidet, now that we have your sample LDAP data, feel free to go ahead and try the above. I did find one value which might still cause problems anyway, but it's probably fine. EDIT: Changed my mind. Since the fix is working for you, I'm going to refrain from modifying the code and adding any unnecessary complexity until it's actually broken for someone. |
@hublux Fix worked for me, too. |
@hublux fixed as well |
we still face this issue. I did was @hublux wrote, deleted the config, updated zammad (2.6.0-1534939663.6d23dae9.stretch now), restarted zammad and configured our ldap connection. Do I have to manually patch code? Thanks in advance. I was on holiday, sorry for the late reply here and if I missed anything :) |
Hi @tbeitter, If so check this out: Regards |
Yes, I get an error similar to yours:
|
@hublux that worked for me! Thanks! |
Infos:
Chrome
Expected behavior:
LDPA frame displayed (in config menue System --> Integration-->LDAP) without error
*
Actual behavior:
LDAP frame is not displayed. Frame remains empty with error message
Also API and Monitoring
*
StatusCode 500
{"error":""\xC5" from ASCII-8BIT to UTF-8"}
Steps to reproduce the behavior:
only Configure LDAP.
My Config:
adapter: postgresql
database: zammad
pool: 50
timeout: 5000
encoding: utf8
username: zammad
log/production.log:
Yes I'm sure this is a bug and no feature request or a general question.
The text was updated successfully, but these errors were encountered: