Coder Social home page Coder Social logo

Several UI refresh bugs about scot HOT 4 CLOSED

sandialabs avatar sandialabs commented on July 22, 2024
Several UI refresh bugs

from scot.

Comments (4)

toddbruner avatar toddbruner commented on July 22, 2024

I think that ActiveMQ may not be installed or working correctly on your server. The browser not autorefreshing is almost always a sign of ActiveMQ not working. You might want to look at the /var/log/scot.prod.log and see if there are any clues or error messages concerning ActiveMQ.

from scot.

ajaymills avatar ajaymills commented on July 22, 2024

I revisited the installer "centos_installer.sh". It looks like on line 426 there is a statement that is apparently always false. I'm not sure how it should be, but I commented it out so the activemq installer code could run. Also line 333 there needs to be a space between the 1 and the ].

I ran it again and now it looks like I have activemq running, and I notice in the UI the status button is working, and the event has a new yellow "highlight" effect when I hit the button. There is still some wonkiness though: when I change the status of some events, it actually changes the status of that event and ANOTHER random event on the list. Is that possible running without activemq caused some corruption?

In activemq.scot.log I see nice neat startup messages:

ACTIVEMQ_HOME: /opt/sandia/webapps/activemq
ACTIVEMQ_BASE: /opt/sandia/webapps/activemq
ACTIVEMQ_CONF: /opt/sandia/webapps/activemq/conf
ACTIVEMQ_DATA: /opt/sandia/webapps/activemq/data
Loading message broker from: xbean:/opt/sandia/webapps/activemq/conf/scotamq.xml
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@2519a664: startup date [Fri Sep 18 16:35:34 CDT 2015]; root of context hierarchy
INFO | PListStore:[/opt/sandia/webapps/activemq/data/localhost/tmp_storage] started
INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/sandia/webapps/activemq/data/kahadb]
INFO | Apache ActiveMQ 5.9-SNAPSHOT (localhost, ID:cyberbase3.ameslab.gov-50367-1442612136318-0:1) is starting
INFO | Listening for connections at: tcp://cyberbase3.ameslab.gov:61616?maximumConnections=1000&wireformat.maxFrameSize=104857600
INFO | Connector openwire Started
INFO | Listening for connections at: amqp://cyberbase3.ameslab.gov:5672?maximumConnections=1000&wireformat.maxFrameSize=104857600
INFO | Connector amqp Started
INFO | Listening for connections at: stomp://cyberbase3.ameslab.gov:61613
INFO | Connector stomp Started
INFO | Apache ActiveMQ 5.9-SNAPSHOT (localhost, ID:cyberbase3.ameslab.gov-50367-1442612136318-0:1) started
INFO | For help or more information please see: http://activemq.apache.org
WARN | Store limit is 102400 mb, whilst the data directory: /opt/sandia/webapps/activemq/data/kahadb only has 92980 mb of usable space
INFO | Web console type: embedded
INFO | ActiveMQ WebConsole initialized.
INFO | Initializing Spring FrameworkServlet 'dispatcher'
INFO | Connector vm://localhost Started

Then after clicking the status buttons, lots of this kind of thing:

ERROR | Error receiving message java.lang.IllegalStateException: IDLE,initial
java.lang.IllegalStateException: IDLE,initial
at org.eclipse.jetty.server.AsyncContinuation.dispatch(AsyncContinuation.java:408)
at org.eclipse.jetty.server.AsyncContinuation.resume(AsyncContinuation.java:815)
at org.apache.activemq.web.AjaxListener.onMessageAvailable(AjaxListener.java:72)
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1371)
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
ERROR | Error receiving message java.lang.IllegalStateException: DISPATCHED,initial
java.lang.IllegalStateException: DISPATCHED,initial
at org.eclipse.jetty.server.AsyncContinuation.dispatch(AsyncContinuation.java:408)
at org.eclipse.jetty.server.AsyncContinuation.resume(AsyncContinuation.java:815)
at org.apache.activemq.web.AjaxListener.onMessageAvailable(AjaxListener.java:72)
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1371)
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

from scot.

UmiDevSec avatar UmiDevSec commented on July 22, 2024

I've seen this happen when the event id counter gets messed up somehow. The only time I've seen it is during testing when I'm manually mucking with the DB.

If you don't already have any data in the DB the easy way to fix this is to blow away the DB and re-install.

As far as I know the current UI doesn't support Internet Explorer 100%, but most of the functionality is there. Chrome and Firefox are the two tested browsers.

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

If you can't blow away the database, you can use the mongo client to look for duplicate alert_id or alertgroup_id. Once found, you can assign them non conflicting Id... But don't forget to update the is idgenerator collection so that nextid is set after all used ids

from scot.

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.