https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182014-06-18T15:02:33ZIssue TrackerRudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=284792014-06-18T15:02:33ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Discussion</i></li><li><strong>Assignee</strong> set to <i>Daniel Stan</i></li></ul><p>Hi Daniel,</p>
<p>Sorry for this issue.<br />We changed a lot this page, especially on the Javascript side. Did you try to shift+f5 (or whatever solution your browser is offering as a solution to completely reload all Javascript)</p>
<p>If it doesn't solves your issue, could you restart the web interface with debug mode (editing the file /opt/rudder/etc/logback.xml, and replace <root level="info"> by <root level="debug">), restart the web interface, reproduce the error and send us the logs ?</p>
<p>Thank you !</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=284802014-06-18T15:21:14ZDaniel Standaniel@layershift.com
<ul></ul><p>Hey Nicolas</p>
<p>I tried in different browsers and on different computers and with the same result. Enabling the log doesn't seem to give any extra hints . The only thing i see in /var/log/rudder/webapp/2014_06_18.stderrout.log are:</p>
<pre>
[2014-06-18 16:16:59] DEBUG com.normation.rudder.batch.AbstractScheduler$StatusManager - [Store Agent Run Times] Scheduled task starting
[2014-06-18 16:16:59] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - [Store Agent Run Times] Task #32: Starting analysis for run times from 2014/06/18 16:16:54 up to 2014/06/18 16:16:59 (runs after SQL table ID 459030520)
[2014-06-18 16:16:59] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - There are no nodes executions to store
[2014-06-18 16:16:59] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - [Store Agent Run Times] Task #32: Finished analysis in 4 ms. Added or updated 0 agent runs (up to SQL table ID 459030520)
[2014-06-18 16:16:59] DEBUG com.normation.rudder.batch.AbstractScheduler$StatusManager - [Store Agent Run Times] Scheduled task finished in 7 ms (started at 2014/06/18 16:16:59, finished at 2014/06/18 16:16:59)
[2014-06-18 16:17:04] DEBUG com.normation.rudder.batch.AbstractScheduler$StatusManager - [Store Agent Run Times] Scheduled task starting
[2014-06-18 16:17:04] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - [Store Agent Run Times] Task #33: Starting analysis for run times from 2014/06/18 16:16:59 up to 2014/06/18 16:17:04 (runs after SQL table ID 459030520)
[2014-06-18 16:17:04] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - There are no nodes executions to store
[2014-06-18 16:17:04] DEBUG com.normation.rudder.reports.execution.ReportsExecutionService - [Store Agent Run Times] Task #33: Finished analysis in 9 ms. Added or updated 0 agent runs (up to SQL table ID 459030520)
[2014-06-18 16:17:04] DEBUG com.normation.rudder.batch.AbstractScheduler$StatusManager - [Store Agent Run Times] Scheduled task finished in 13 ms (started at 2014/06/18 16:17:04, finished at 2014/06/18 16:17:04)
</pre>
<p>Do you need me to look into another file or should i enable extra logging like <logger name="comet_trace" level="info" /> ?</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=284852014-06-18T15:55:13ZNicolas CHARLESnicolas.charles@rudder.io
<ul></ul><p>Did you have any issues during upgrade from 2.9 to 2.10 ?</p>
<p>Could it be possible for you to send us a screen snapshot of the Rule page ?</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=284982014-06-19T07:15:13ZNicolas CHARLESnicolas.charles@rudder.io
<ul></ul>I have some more question for you:
<ul>
<li>is the error message instantaneous, or is it after a while (like it timeouts)</li>
<li>do you have the same issue on the Node/Reports screen ?</li>
<li>is you server loaded ?</li>
<li>do you have error messages in the postgresql log ?</li>
</ul>
<p>I'm sorry for the amount of questions, but I'm trying to figure out what is going on</p>
<p>You used ot have a strange error because of Virtuozzo/Postgrsql ( <a class="external" href="http://www.rudder-project.org/redmine/issues/4115#change-22255">http://www.rudder-project.org/redmine/issues/4115#change-22255</a> ) <br />Maybe it is related ?</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=285052014-06-19T10:00:20ZDaniel Standaniel@layershift.com
<ul><li><strong>File</strong> <a href="/attachments/827">Capture.PNG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/827/Capture.PNG">Capture.PNG</a> added</li></ul><p>Nicolas CHARLES wrote:</p>
<blockquote>
<p>Did you have any issues during upgrade from 2.9 to 2.10 ?</p>
</blockquote>
<p>The only problem i remember was that after i upgraded the packages and tried to access the interface i was still seeing the old 2.9 interface . I had a few clicks around until I realised that nothing has changed. After I restarted jetty the new interface appeared. <br />Checking the logs around the update time i see a few warnings and these errors:<br /><pre>
2014-06-18 10:14:41.576:INFO::Extract jar:file:/opt/rudder/jetty7/webapps/rudder.war!/ to /tmp/jetty-127.0.0.1-8080-rudder.war-_rudder-any-/webapp
[2014-06-18 10:14:41] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
net.liftweb.actor.PingerException: com.normation.rudder.batch.StartAutomaticReporting$@90d705a could not be scheduled on com.normation.rudder.batch.AutomaticReportLogger$LAAutomaticReportLogger@514b295a
at net.liftweb.actor.LAPinger$.schedule(LAPinger.scala:72) ~[lift-actor_2.10-2.5.1.jar:2.5.1]
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6d7e4794 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@7d8d7db4[Shutting down, pool size = 1, active threads = 0, queued tasks = 5, completed tasks = 20064]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048) ~[na:1.7.0_51]
[2014-06-18 10:14:42] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
net.liftweb.actor.PingerException: StartUpdate could not be scheduled on com.normation.rudder.batch.AbstractScheduler$StatusManager@70e4c4d2
at net.liftweb.actor.LAPinger$.schedule(LAPinger.scala:72) ~[lift-actor_2.10-2.5.1.jar:2.5.1]
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@197b5857 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@7d8d7db4[Shutting down, pool size = 1, active threads = 0, queued tasks = 4, completed tasks = 20065]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048) ~[na:1.7.0_51]
Use configuration file defined by JVM property -Dlogback.configurationFile : /opt/rudder/etc/logback.xml
</pre></p>
<pre>
[2014-06-18 10:14:59] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/system/common/1.0/metadata.xml'
java.util.NoSuchElementException: key not found: MANAGED_NODES_ADMIN
at scala.collection.MapLike$class.default(MapLike.scala:228) ~[scala-library-2.10.3.jar:na]
[2014-06-18 10:14:59] ERROR bootstrap.liftweb.checks.CheckTechniqueLibraryReload - Flag file '/opt/rudder/etc/force_technique_reload' but Techniques library reload failed, cause is: An error occured while updating <- Error when trying to read technique library
[2014-06-18 10:14:59] INFO application - Application Rudder started
[2014-06-18 10:15:02] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
net.liftweb.actor.PingerException: CheckLaunch could not be scheduled on LADatabaseCleaner(ArchiveAction(com.normation.rudder.services.system.DatabaseManagerImpl@6c71a096,AutomaticReportsCleaning(com.normation.rudder.services.system.DatabaseManagerImpl@6c71a096,20,10,Every day at 00:30)),10)
</pre>
<blockquote>
<p>Could it be possible for you to send us a screen snapshot of the Rule page ?</p>
</blockquote>
<p>See the attached</p>
<blockquote>
I have some more question for you:
<ul>
<li>is the error message instantaneous, or is it after a while (like it timeouts)</li>
</ul>
</blockquote>
<p>It is after a while(2-3 seconds after click). It looks like a timeout.</p>
<blockquote>
<ul>
<li>do you have the same issue on the Node/Reports screen ?</li>
</ul>
</blockquote>
<p>No. I saw similar issues before and they were related to firewall or postgres, but now even with firewall off I have the same problem.</p>
<blockquote>
<ul>
<li>is you server loaded ?</li>
</ul>
</blockquote>
<p>No. The load is very light.</p>
<blockquote>
<ul>
<li>do you have error messages in the postgresql log ?</li>
</ul>
</blockquote>
<p>No</p>
<blockquote>
</blockquote>
<blockquote>
<p>I'm sorry for the amount of questions, but I'm trying to figure out what is going on</p>
</blockquote>
<p>No problem, you can ask for any information needed.</p>
<blockquote>
<p>You used ot have a strange error because of Virtuozzo/Postgrsql ( <a class="external" href="http://www.rudder-project.org/redmine/issues/4115#change-22255">http://www.rudder-project.org/redmine/issues/4115#change-22255</a> ) <br />Maybe it is related ?</p>
</blockquote>
<p>That problem was solved with a VPS restart. I think postgres didn't properly detect the memory change or something went wrong when the resources were changed but the reboot fixed it .</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=285442014-06-20T07:27:17ZNicolas CHARLESnicolas.charles@rudder.io
<ul></ul><p>Thank you for your answer Daniel</p>
<p>2 or 3 secondes are a bit too short for a real timeout (we have 30 sec timeout in the Web Interface); but it sounds like a Javascript error<br />Could you try again, with Firebug installed and activated, by selecting the tab "Console" and then track "All", click on the Rules, and see what are the requests, and their results ?<br />I have one POST when I do that.<br />If you don't see any error, could it be possible for you to send the "Response" tag (maybe privately if you have sensitive info in it ?)</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=285482014-06-20T09:49:46ZDaniel Standaniel@layershift.com
<ul><li><strong>File</strong> <a href="/attachments/828">console.PNG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/828/console.PNG">console.PNG</a> added</li></ul><p>I attached the screen shot with the errors from the console. Please let me know if you need the response headers too</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286122014-06-23T09:54:36ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>Discussion</i> to <i>13</i></li><li><strong>Assignee</strong> changed from <i>Daniel Stan</i> to <i>Nicolas CHARLES</i></li></ul><p>Thank you for detailed bug report.<br />I <strong>may</strong> have found the culprit (wrong naming convention) based on the messages displayed, but I'm really surprised that it causes a problem for you, and not for anyone else, so maybe this may be unrelated.<br />I'm making a fix for the error "variable i redeclares argument"</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286132014-06-23T09:57:18ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>13</i> to <i>Discussion</i></li><li><strong>Assignee</strong> changed from <i>Nicolas CHARLES</i> to <i>Daniel Stan</i></li></ul><p>ok, the issue was in 2.6, so it's very likely to be unrelated; i'm fixing it thought, in a related ticket</p>
<p>I will need the response from the POST to understand the issue</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286252014-06-23T12:24:21ZDaniel Standaniel@layershift.com
<ul></ul><p>Hey</p>
<p>I sent you an email with the response I receive after clicking on a random rule.</p>
<p>The errors I sent earlier are just from clicking on a random rule. If I load the rule section I receive a long list of warnings so if you want that one I can send it too.</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286622014-06-24T07:40:18ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Tracker</strong> changed from <i>User story</i> to <i>Bug</i></li><li><strong>Subject</strong> changed from <i>"The server cannot be contacted at this time" in Configuration policy -> rules</i> to <i>"The server cannot be contacted at this time" in Configuration policy -> rules when a Group contain a quote in its name</i></li><li><strong>Status</strong> changed from <i>Discussion</i> to <i>In progress</i></li><li><strong>Assignee</strong> changed from <i>Daniel Stan</i> to <i>Nicolas CHARLES</i></li><li><strong>Priority</strong> changed from <i>N/A</i> to <i>1</i></li></ul><p>The issue have been nailed down.<br />When we have groups with single quote in them, the Rules fail to show because of improper JS escaping</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286632014-06-24T08:05:09ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>In progress</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>Nicolas CHARLES</i> to <i>Vincent MEMBRÉ</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder/pull/559</i></li></ul><p><a class="external" href="https://github.com/Normation/rudder/pull/559">https://github.com/Normation/rudder/pull/559</a></p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286642014-06-24T08:26:55ZDaniel Standaniel@layershift.com
<ul></ul><p>Hey</p>
<p>Sorry for the delay in getting back to you . It seems that after i removed the "'" from groups name the error is gone and I can access the rules. I think the problem is fixed now. Thank you for your assistance with this.</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286652014-06-24T08:33:24ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #5068: correct escaping of Group name in Rule display" href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/eef395efd8c7d5e871a085ddce283a32947b351f">eef395efd8c7d5e871a085ddce283a32947b351f</a>.</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=286662014-06-24T08:33:24ZVincent MEMBRÉvme@rudder.io
<ul></ul><p>Applied in changeset <a class="changeset" title="Merge pull request #559 from ncharles/bug_5068/dev/escape_group_name Fixes #5068: correct escapi..." href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/46b7b28533380cd48642adc542c5fa338a5c6e21">46b7b28533380cd48642adc542c5fa338a5c6e21</a>.</p> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=292272014-07-01T10:40:59ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Subject</strong> changed from <i>"The server cannot be contacted at this time" in Configuration policy -> rules when a Group contain a quote in its name</i> to <i>Cannot open Rule details when a Group as a quote in its name</i></li></ul> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=292302014-07-01T10:54:44ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Subject</strong> changed from <i>Cannot open Rule details when a Group as a quote in its name</i> to <i>Cannot open Rule details when a Group contains a quote in its name</i></li></ul> Rudder - Bug #5068: Cannot open Rule details when a Group contains a quote in its namehttps://issues.rudder.io/issues/5068?journal_id=292902014-07-03T09:54:37ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul><p>This bug has been fixed in Rudder 2.10.3 (<a href="http://www.rudder-project.org/pipermail/rudder-announce/2014-July/000098.html" class="external">announcement</a> , <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210" class="external">changelog</a>) and 2.11.0~beta2 (<a href="http://www.rudder-project.org/pipermail/rudder-announce/2014-July/000099.html" class="external">announcement</a> , <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog211" class="external">changelog</a>), which were released today.</p>
<ul>
<li>Download information: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul>