Save
Saving
  • Thetah Thetah

    Hi
    I am using Mango version 4.0.0 b14. On the previous version on the bottom of the admin list, below watch list builder there was a menu called "Global Scripts". I can't find this menu in version 4.0.0 b14. How can I get to this menu again?

    posted in Mango Automation general Discussion read more
  • Thetah Thetah

    I couldn't seem to add the file on the post so I cut and pasted the text. looking at the log it has lots of errors

    "Error creating bean with name 'scriptService"

    posted in Mango Automation general Discussion read more
  • Thetah Thetah

    INFO  2021-06-09T09:48:56,318 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license...
    INFO  2021-06-09T09:48:56,318 (com.serotonin.m2m2.Lifecycle.loadLic:677) - License file not found
    INFO  2021-06-09T09:48:56,434 (com.serotonin.m2m2.db.H2Proxy.initializeImpl:80) - Initializing H2 connection manager
    INFO  2021-06-09T09:48:57,544 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:38) - Starting instance with core version 4.0.0-beta.12, schema v38
    WARN  2021-06-09T09:48:58,765 (org.springframework.context.support.AbstractApplicationContext.refresh:596) - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scriptService' defined in URL [jar:file:/opt/mango/lib/mango-4.0.0-beta.12.jar!/com/infiniteautomation/mango/spring/script/ScriptService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyScriptingEngineDefinition#0': Unsatisfied dependency expressed through field 'permission'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyPermission#0': Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.groovy.GroovyPermission] from ClassLoader [java.net.URLClassLoader@f9779c]
    ERROR 2021-06-09T09:48:58,767 (com.serotonin.m2m2.Lifecycle.initialize:371) - Error during initialization
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scriptService' defined in URL [jar:file:/opt/mango/lib/mango-4.0.0-beta.12.jar!/com/infiniteautomation/mango/spring/script/ScriptService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyScriptingEngineDefinition#0': Unsatisfied dependency expressed through field 'permission'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyPermission#0': Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.groovy.GroovyPermission] from ClassLoader [java.net.URLClassLoader@f9779c]
    	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1206) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:923) ~[spring-context-5.3.3.jar:5.3.3]
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588) ~[spring-context-5.3.3.jar:5.3.3]
    	at com.serotonin.m2m2.Lifecycle.springRuntimeContextInitialize(Lifecycle.java:386) ~[ma-priv-4.0.0-beta.12.jar:?]
    	at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:292) ~[ma-priv-4.0.0-beta.12.jar:?]
    	at com.serotonin.m2m2.Main.main(Main.java:202) ~[ma-priv-4.0.0-beta.12.jar:?]
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyScriptingEngineDefinition#0': Unsatisfied dependency expressed through field 'permission'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyPermission#0': Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.groovy.GroovyPermission] from ClassLoader [java.net.URLClassLoader@f9779c]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) ~[spring-beans-
    

    posted in Mango Automation general Discussion read more
  • Thetah Thetah

    @thetah

    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1598) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1562) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1451) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1338) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.3.jar:5.3.3]
    	... 15 more
    Caused by: java.lang.ClassNotFoundException: com.serotonin.m2m2.module.PermissionGroup
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:471) ~[?:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    	at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
    	at java.lang.Class.privateGetDeclaredMethods(Class.java:3166) ~[?:?]
    	at java.lang.Class.getDeclaredMethods(Class.java:2309) ~[?:?]
    	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463) ~[spring-core-5.3.3.jar:5.3.3]
    	at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) ~[spring-core-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:232) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:210) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:149) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:294) ~[spring-context-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1100) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1598) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1562) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1451) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1338) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.3.jar:5.3.3]
    	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.3.jar:5.3.3]
    	... 15 more
    INFO  2021-06-09T09:48:58,771 (com.serotonin.m2m2.Lifecycle.terminate:402) - Mango Lifecycle terminating...
    INFO  2021-06-09T09:48:58,792 (com.serotonin.m2m2.db.H2Proxy.terminateImpl:437) - Terminating database.
    INFO  2021-06-09T09:48:59,013 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated: ERROR
    

    posted in Mango Automation general Discussion read more
  • Thetah Thetah

    Hi recently made the mistake of updating all the mango modules from the mango interface. It appears that mango is not fully booting up. How can I roll back or fault find deeper what the mango startup issue is.

    From the command prompt the systemctl status mango give me this
    Capture111111.JPG

    And the webpage I can access sometimes but it says loading 40% and then stops before I can log into Mango

    07ba7a61-5520-4301-8190-cc19ead87038-image.png

    76af1ca5-21e3-4838-b1ba-6ec805f52a99-image.png

    posted in Mango Automation general Discussion read more