iceScrum | Error, mail server is offline – iceScrum

iceScrum Foros Discutir de iceScrum

Viendo 6 entradas - de la 1 a la 6 (de un total de 6)

  • Autor
    Entradas
  • #10696

    Kagilum
    Superadministrador

    I’ve read the other posts regarding this problem, but I still cannot seem to get it to work. I’m pretty newbie to this, so any help would be appreciated!

    I’m running iceScrum Free on a Windows Server 2012 R2 with Tomcat 7 pointing to MS SQL Server 2014.

    The application appears to be running properly, however, I cannot get the mail to work. I’m testing with the password reset feature, but all I get is the message «Error, mail server is offline».

    My config.groovy has these couple of sections with some values (not true values listed below for email, password, etc.)


    /* Alerts */
    icescrum.auto_follow_productowner = true
    icescrum.auto_follow_stakeholder = true
    icescrum.auto_follow_scrummaster = true
    icescrum.alerts.errors.to = "alerts@somewhere.com"
    icescrum.alerts.subject_prefix = "[icescrum]"
    icescrum.alerts.enable = true
    icescrum.alerts.default.from = "webmaster@icescrum.com"

    /* Mail Server */
    grails.mail.host = "smtp.server.com"
    grails.mail.port = 25
    grails.mail.username = "username"
    grails.mail.password = "password"

    /* The props are required for SSL connections */
    /*grails.mail.props = ["mail.smtp.auth":"true",
    "mail.smtp.socketFactory.port":"25",
    "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
    "mail.smtp.socketFactory.fallback":"false"]
    */

    Now, I’ve tried different ports and they’ve not worked (based on how Exchange was setup). I’ve tried commenting and uncommenting the entire props section with no luck either.

    When I turn on debug mode, it doesn’t give me any weird errors.


    2015-02-06 04:34:19,384 [http-nio-8080-exec-10] DEBUG grails.app.service.org.icescrum.core.services.NotificationEmailService - Send email, retrieve password to : alerts@somewhere.com (someuser)
    2015-02-06 04:34:19,423 [http-nio-8080-exec-10] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/user/retrieve.dispatch took 0:00:00.089
    2015-02-06 04:34:19,425 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.access.ExceptionTranslationFilter - Chain processed normally
    2015-02-06 04:34:19,425 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession.
    2015-02-06 04:34:19,425 [http-nio-8080-exec-10] DEBUG org.springframework.security.web.context.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed

    Please help! Thanks!

    #11014

    Nicolas Noullet
    Superadministrador

    Hello,

    I don’t see any obvious problem in your configuration. The props section needs to be there only if you use SSL or anonymous connection to the mail server. The fact that you managed to turn on the debug mode indicates that your config.groovy is taken into account.

    The only problem I can think of is that your email server cannot be reached by iceScrum. Can you ping / telnet the mail server with the configuration you have provided from the iceScrum Server?

    #11022

    Kagilum
    Superadministrador

    I have the same problem. I’m working in the same enviroment as the orginal poster. I’m using smtp.gmail.com as server.

    I can telnet smtp.gmail.com using port 587.
    I have another app on the same server published using IIS. It uses smtp.gmail.com on port 587 without issues.
    As the original poster, I don’t get any errors in debug mode but when I try to recover a password only the message informing that the mail server is down is shown.

    these are my current config.groovy values



    grails.mail.host = "smtp.gmail.com"
    grails.mail.port = 587
    grails.mail.username = "mail@cenipalma.org"
    grails.mail.password = "..."
    grails.mail.props = ["mail.smtp.auth":"true",
    "mail.smtp.socketFactory.port":"587",
    "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
    "mail.smtp.socketFactory.fallback":"false"]

    This is my icescrum.log


    2015-02-25 15:09:55,824 [localhost-startStop-1] INFO grails.spring.BeanBuilder - [RuntimeConfiguration] Configuring data source for environment: PRODUCTION
    2015-02-25 15:09:57,551 [localhost-startStop-1] DEBUG org.icescrum.core.support.ApplicationSupport - Retrieving appID...
    2015-02-25 15:09:57,566 [localhost-startStop-1] DEBUG org.icescrum.core.support.ApplicationSupport - Retrieved appID: 35e12a80-585d-48e6-ae53-089a44240931
    2015-02-25 15:10:02,947 [localhost-startStop-1] WARN grails.util.GrailsUtil - [WARNING] Property [data] of domain class pl.burningice.plugins.image.ast.Image has type [ and doesn't support constraint [blank]. This constraint will not be checked during validation.
    2015-02-25 15:10:03,567 [localhost-startStop-1] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/icescrum/WEB-INF/lib/ehcache-core-1.7.1.jar!/ehcache-failsafe.xml
    2015-02-25 15:10:07,519 [localhost-startStop-1] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/icescrum/WEB-INF/lib/ehcache-core-1.7.1.jar!/ehcache-failsafe.xml
    2015-02-25 15:10:07,524 [localhost-startStop-1] WARN net.sf.ehcache.CacheManager - Creating a new instance of CacheManager using the diskStorePath "C:Program FilesApache Software FoundationTomcat 7.0temp" which is already used by an existing CacheManager.
    The source of the configuration was classpath.
    The diskStore path for this CacheManager will be set to C:Program FilesApache Software FoundationTomcat 7.0tempehcache_auto_created_1424877007524.
    To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
    2015-02-25 15:10:09,291 [localhost-startStop-1] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/icescrum/WEB-INF/lib/ehcache-core-1.7.1.jar!/ehcache-failsafe.xml
    2015-02-25 15:10:09,294 [localhost-startStop-1] WARN net.sf.ehcache.CacheManager - Creating a new instance of CacheManager using the diskStorePath "C:Program FilesApache Software FoundationTomcat 7.0temp" which is already used by an existing CacheManager.
    The source of the configuration was classpath.
    The diskStore path for this CacheManager will be set to C:Program FilesApache Software FoundationTomcat 7.0tempehcache_auto_created_1424877009294.
    To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
    2015-02-25 15:10:11,403 [localhost-startStop-1] INFO org.codehaus.groovy.grails.scaffolding.DefaultGrailsTemplateGenerator - Scaffolding template generator set to use resource loader org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@65ef779b: startup date [Wed Feb 25 15:09:59 UTC 2015]; parent: Root WebApplicationContext
    2015-02-25 15:10:20,604 [localhost-startStop-1] INFO grails.app.service.org.icescrum.core.services.UiDefinitionService - Loading UI definitions...
    2015-02-25 15:10:20,620 [localhost-startStop-1] DEBUG grails.app.service.org.icescrum.core.services.UiDefinitionService - Evaluating UI definitions from IceScrumUiDefinition
    2015-02-25 15:10:20,682 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for actor UI definition added to options
    2015-02-25 15:10:20,682 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for actor and status is : enabled
    2015-02-25 15:10:20,706 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for backlog UI definition added to options
    2015-02-25 15:10:20,706 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for backlog and status is : enabled
    2015-02-25 15:10:20,729 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for story and status is : enabled
    2015-02-25 15:10:20,754 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for feature UI definition added to options
    2015-02-25 15:10:20,754 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for feature and status is : enabled
    2015-02-25 15:10:20,771 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for project UI definition added to options
    2015-02-25 15:10:20,771 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for project and status is : enabled
    2015-02-25 15:10:20,801 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for releasePlan UI definition added to options
    2015-02-25 15:10:20,801 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for releasePlan and status is : enabled
    2015-02-25 15:10:20,826 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for sandbox UI definition added to options
    2015-02-25 15:10:20,826 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for sandbox and status is : enabled
    2015-02-25 15:10:20,859 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinition - The field embedded is unrecognized for sprintPlan UI definition added to options
    2015-02-25 15:10:20,860 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for sprintPlan and status is : enabled
    2015-02-25 15:10:20,878 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for timeline and status is : enabled
    2015-02-25 15:10:20,889 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for user and status is : enabled
    2015-02-25 15:10:20,907 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for finder and status is : enabled
    2015-02-25 15:10:20,930 [localhost-startStop-1] DEBUG org.icescrum.core.ui.UiDefinitionsBuilder - Added new UI definition for task and status is : enabled
    2015-02-25 15:10:23,441 [localhost-startStop-1] ERROR org.hibernate.util.JDBCExceptionReporter - Invalid column name 'text_as'.
    2015-02-25 15:10:23,442 [localhost-startStop-1] DEBUG grails.app.service.org.icescrum.core.services.StoryService - No old story template to migrate
    2015-02-25 15:10:25,552 [localhost-startStop-1] INFO AutobaseGrailsPlugin - ---- Starting Autobase migrations ----
    2015-02-25 15:10:25,967 [localhost-startStop-1] INFO liquibase.ext.logging.LiquibaseSlf4jLogger - Successfully acquired change log lock
    2015-02-25 15:10:27,635 [localhost-startStop-1] INFO liquibase.ext.logging.LiquibaseSlf4jLogger - Reading from [dbo].[DATABASECHANGELOG]
    2015-02-25 15:10:27,966 [localhost-startStop-1] INFO liquibase.ext.logging.LiquibaseSlf4jLogger - Successfully released change log lock
    2015-02-25 15:10:27,972 [localhost-startStop-1] INFO AutobaseGrailsPlugin - ---- Autobase migrations completed ----
    2015-02-25 15:10:29,191 [localhost-startStop-1] INFO grails.app.service.org.icescrum.plugins.entryPoints.services.EntryPointsService - Reloading entries points
    2015-02-25 15:10:29,192 [localhost-startStop-1] INFO grails.app.service.org.icescrum.plugins.entryPoints.services.EntryPointsService - Loading entries declarations...
    2015-02-25 15:10:29,202 [localhost-startStop-1] DEBUG org.icescrum.plugins.entryPoints.EntryPointsDeclarationsFactory - entries config order: []
    2015-02-25 15:10:31,959 [localhost-startStop-1] WARN grails.util.GrailsUtil - [WARNING] Property [data] of domain class pl.burningice.plugins.image.ast.Image has type [
    and doesn't support constraint [blank]. This constraint will not be checked during validation.
    2015-02-25 15:10:31,963 [localhost-startStop-1] INFO org.codehaus.groovy.grails.web.context.GrailsConfigUtils - [GrailsContextLoader] Grails application loaded.
    2015-02-25 15:10:32,175 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Installing BroadcastFilter class(es) org.atmosphere.client.TrackMessageSizeFilter
    2015-02-25 15:10:32,189 [localhost-startStop-1] DEBUG org.atmosphere.cpr.AtmosphereFramework - Atmosphere's Service Annotation Not Supported. Please add https://github.com/rmuller/infomas-asl as dependencies or your own AnnotationProcessor to support @Service
    2015-02-25 15:10:32,212 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereHandler org.icescrum.atmosphere.IceScrumAtmosphereHandler@7c6f3d42 mapped to context-path: /stream/app/*
    2015-02-25 15:10:32,288 [localhost-startStop-1] INFO org.atmosphere.cpr.DefaultBroadcaster - /stream/app/* support Out Of Order Broadcast: false
    2015-02-25 15:10:32,299 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Auto detecting WebSocketHandler in /WEB-INF/classes/
    2015-02-25 15:10:39,553 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
    2015-02-25 15:10:39,568 [localhost-startStop-1] WARN org.atmosphere.cpr.DefaultAsyncSupportResolver - Found multiple containers, please specify which one to use: org.atmosphere.container.Tomcat7CometSupport, org.atmosphere.container.TomcatCometSupport, until you do, Atmosphere will use:class org.atmosphere.container.Tomcat7CometSupport
    2015-02-25 15:10:39,570 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere is using async support: org.atmosphere.container.Tomcat7CometSupport running under container: Apache Tomcat/7.0.59
    2015-02-25 15:10:39,571 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Browser disconnection detection.
    2015-02-25 15:10:39,571 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol.
    2015-02-25 15:10:39,572 [localhost-startStop-1] WARN org.atmosphere.cpr.AtmosphereFramework - No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Using BroadcastFilter: org.atmosphere.client.TrackMessageSizeFilter
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Shared ExecutorService supported: true
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - HttpSession supported: false
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
    2015-02-25 15:10:39,572 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Using Broadcaster: org.icescrum.atmosphere.IceScrumBroadcaster
    2015-02-25 15:10:39,574 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere Framework 1.0.15 started.
    2015-02-25 15:10:39,574 [localhost-startStop-1] INFO org.atmosphere.cpr.AtmosphereFramework -

    For Atmosphere Framework Commercial Support, visit
    http://www.async-io.org/ or send an email to support@async-io.org

    2015-02-25 15:10:41,017 [http-bio-8080-exec-1] WARN grails.plugin.springcache.SpringcacheService - Cache 'applicationCache' is non-blocking. Decorating it now...
    2015-02-25 15:10:42,161 [http-bio-8080-exec-1] DEBUG grails.app.service.org.icescrum.core.services.NotificationEmailService - Send email, retrieve password to : chernandez@cenipalma.org (chernandez)
    2015-02-25 15:10:42,830 [http-bio-8080-exec-5] WARN grails.plugin.springcache.SpringcacheService - Cache 'projectCache' does not exist. Creating it now...
    2015-02-25 15:10:42,849 [http-bio-8080-exec-5] WARN grails.plugin.springcache.SpringcacheService - Cache 'projectCache' is non-blocking. Decorating it now...
    2015-02-25 15:10:42,890 [Thread-6] INFO org.atmosphere.cpr.AtmosphereFramework -

    Current version of Atmosphere 1.0.15
    Newest version of Atmosphere available 2.0.10


    2015-02-25 15:10:43,112 [http-bio-8080-exec-1] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/user/retrieve.dispatch took 0:00:02.128
    2015-02-25 15:10:43,190 [http-bio-8080-exec-5] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/scrumOS/templates.dispatch took 0:00:00.361
    2015-02-25 15:10:43,511 [http-bio-8080-exec-6] WARN org.atmosphere.cpr.AtmosphereFramework - Failed using comet support: org.atmosphere.container.Tomcat7CometSupport, error: Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector is not enabled.
    If that's not the case, you can also remove META-INF/context.xml and WEB-INF/lib/atmosphere-compat-tomcat.jar Is the Nio or Apr Connector enabled?
    2015-02-25 15:10:43,513 [http-bio-8080-exec-6] WARN org.atmosphere.cpr.AtmosphereFramework - Using org.atmosphere.container.BlockingIOCometSupport
    2015-02-25 15:10:59,200 [Atmosphere-Shared-AsyncOp-0] DEBUG org.icescrum.atmosphere.IceScrumAtmosphereEventListener - broadcast to user anonymous with UUID bf45bb83-47d4-460b-b984-bc17d1f83cf8
    2015-02-25 15:11:29,185 [Atmosphere-Shared-AsyncOp-1] DEBUG org.icescrum.atmosphere.IceScrumAtmosphereEventListener - broadcast to user anonymous with UUID bf45bb83-47d4-460b-b984-bc17d1f83cf8
    2015-02-25 15:11:29,876 [Timer-0] WARN groovyx.net.http.ParserRegistry - Could not find charset in response
    2015-02-25 15:11:29,885 [Timer-0] DEBUG org.icescrum.core.support.CheckerTimerTask - Automatic check update - iceScrum is up to date
    2015-02-25 15:11:59,186 [Atmosphere-Shared-AsyncOp-2] DEBUG org.icescrum.atmosphere.IceScrumAtmosphereEventListener - broadcast to user anonymous with UUID bf45bb83-47d4-460b-b984-bc17d1f83cf8
    2015-02-25 15:12:09,442 [http-bio-8080-exec-7] DEBUG org.icescrum.atmosphere.IceScrumAtmosphereEventListener - user anonymous disconnected with UUID bf45bb83-47d4-460b-b984-bc17d1f83cf8
    2015-02-25 15:12:09,461 [http-bio-8080-exec-7] DEBUG org.atmosphere.cpr.DefaultBroadcasterFactory - Removing Broadcaster /stream/app/* factory size now 0
    2015-02-25 15:12:13,283 [http-bio-8080-exec-9] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/user/retrieve.dispatch took 0:00:00.154
    2015-02-25 15:12:16,895 [http-bio-8080-exec-9] DEBUG grails.app.service.org.icescrum.core.services.NotificationEmailService - Send email, retrieve password to : chernandez@cenipalma.org (chernandez)
    2015-02-25 15:12:17,068 [http-bio-8080-exec-9] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/user/retrieve.dispatch took 0:00:00.220
    2015-02-25 15:14:10,611 [http-bio-8080-exec-1] DEBUG grails.app.service.org.icescrum.core.services.NotificationEmailService - Send email, retrieve password to : chernandez@cenipalma.org (chernandez)
    2015-02-25 15:14:10,772 [http-bio-8080-exec-1] INFO grails.plugin.springcache.web.Timer - Uncached request for /icescrum/grails/user/retrieve.dispatch took 0:00:00.207

    Thank you for your help.

    #11025

    Nicolas Noullet
    Superadministrador

    As far as I know, the port for secured SMTP on gmail is 465, could you try it? (change it in both grails.mail.port and mail.smtp.socketFactory.port)

    #11044

    Kagilum
    Superadministrador

    I tried to use port 465 but the port seems to be blocked. I will unblock this port and let you know what happens.

    Edit: As expected, the port was blocked. After changing the port to 465 all is working perfectly.
    Thank you.

    #11045

    Nicolas Noullet
    Superadministrador

    Thanks for your feedback, glad to know that it works 🙂

Viendo 6 entradas - de la 1 a la 6 (de un total de 6)

El foro ‘Questions and help’ está cerrado y no se permiten nuevos debates ni respuestas.