Skip to content
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

Downtime: error Broken pipe #537

Open
Azef1 opened this issue Aug 31, 2016 · 11 comments
Open

Downtime: error Broken pipe #537

Azef1 opened this issue Aug 31, 2016 · 11 comments
Labels

Comments

@Azef1
Copy link

Azef1 commented Aug 31, 2016

Hi,

With the latest version of WebUI, i have a problem when i schedule a downtime from all services view.
I have a 404 not found on http://myshinken:7767/forms/downtime/add/myhost/myservice with a empty popu
capture1

In my brokerd.log, i see :

[WebUI] External command push, exception: [Errno 32] Broken pipe

Thx

@mohierf
Copy link
Contributor

mohierf commented Aug 31, 2016

I do not think that the broken pipe error is because of the WebUI ... this error is raised when the external command can not be sent to the scheduler :(

Can you confirm that you do not have the problem with the previous version of WebUI with the same configuration?

@Azef1
Copy link
Author

Azef1 commented Sep 1, 2016

So, with same configuration:
With WebUI 2.3.2 --> No problem
With WebUI 2.4.2.c --> Schedule a downtime from hosts or service, works but Schedule a downtime from http://myshinken:7767/all?search=type:service not works i have a 404 not found with "Generic modal" empty.

@mohierf
Copy link
Contributor

mohierf commented Sep 1, 2016

Ok. Thanks for reporting. I will have a look to this ...

@Azef1
Copy link
Author

Azef1 commented Sep 7, 2016

With Firebug i noticed a problem:
My services name contains space (eg; MySQL - TCP)
When i schedule a downtime, URL is http://myShinken:7767/forms/downtime/add/myhost/MySQL

I think the URL should be http://myShinken:7767/forms/downtime/add/myhost/MySQL - TCP

@mohierf
Copy link
Contributor

mohierf commented Sep 7, 2016

Ok. But I think the URL should be: http://myShinken:7767/forms/downtime/add/myhost/MySQL%20-%20TCP ...

You should try to modify the file htdocs/shinken-actions.js on line 440 with:

   var url = '/action/SCHEDULE_'+elts.type+'_DOWNTIME/'+encodeURIComponent(elts.nameslash)+'/'+start_time+'/'+end_time+'/'+shinken_downtime_fixed+'/'+shinken_downtime_trigger+'/'+shinken_downtime_duration+'/'+user+'/'+comment;

Please confirm that it is ok with this modification ... I cannot make the test currently 😉

@Azef1
Copy link
Author

Azef1 commented Sep 7, 2016

I did your modification and it isn't solved. I continue to find this bug...

@mohierf
Copy link
Contributor

mohierf commented Sep 7, 2016

Ok. My bad ... I did not proposed the right modification ... sorry.

Replace line 194 of footer_element.tpl with:

display_modal("/forms/downtime/add/"+encodeURIComponent(elt));

@Azef1
Copy link
Author

Azef1 commented Sep 8, 2016

Not exactly:
Now URL generated: http://myShinken:7767/forms/downtime/add/myHost%2FMySQL%20-%20TCP
The problem is %2F, because if i replace %2F by / in my browser, the query works

@mohierf
Copy link
Contributor

mohierf commented Sep 8, 2016

Ok, it is a little bit more complicated than I thought ... you should try to replace line 194 with:

            elt = elt.replace(' ', '%20');
            display_modal("/forms/downtime/add/"+elt);

@virtual-expo
Copy link

Hello,

I am facing a similar issue. I cannot add a downtime or a comment if my service name contains square brackets. For example:
http://myShinken/service/myHost/Very%20:%20[Long/Name]%20Check%20Something#downtimes
results in an empty "Generic Modal" popup.

I am also using WebUI 2.4.2.c.

@maethor
Copy link
Contributor

maethor commented Nov 19, 2019

Is it still an issue in the last version of the webui?

@maethor maethor added the bug label Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants