Cannot reset password by specifying email address (OD-578)
Quin opened 4 years ago

Using the "Forgotten Password" link, whenever I enter in an email to reset the password, I get this:

Please wait...
org.hibernate.LazyInitializationException: could not initialize proxy [io.onedev.server.model.User#4] - no Session
    	at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:170)
    	at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:310)
    	at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyInterceptor.java:45)
    	at org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:95)
    	at io.onedev.server.model.User$HibernateProxy$PFUFjWg8.setPassword(Unknown Source)
    	at io.onedev.server.web.page.simple.security.PasswordResetPage$2.runTask(PasswordResetPage.java:76)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:173)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:144)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at io.onedev.server.security.SecurityUtils$1.run(SecurityUtils.java:338)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    

Error resetting password

Using a username results in:


Please wait...
java.lang.RuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp-relay.sendinblue.com:587
    	at io.onedev.server.notification.DefaultMailManager.sendMail(DefaultMailManager.java:259)
    	at io.onedev.server.web.page.simple.security.PasswordResetPage$2.runTask(PasswordResetPage.java:95)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:173)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:144)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at io.onedev.server.security.SecurityUtils$1.run(SecurityUtils.java:338)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp-relay.sendinblue.com:587
    	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
    	at org.apache.commons.mail.Email.send(Email.java:1496)
    	at io.onedev.server.notification.DefaultMailManager.sendMail(DefaultMailManager.java:257)
    	... 8 more
    Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp-relay.sendinblue.com, 587; timeout 60000;
      nested exception is:
    	java.net.UnknownHostException: smtp-relay.sendinblue.com
    	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118)
    	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
    	at javax.mail.Service.connect(Service.java:388)
    	at javax.mail.Service.connect(Service.java:246)
    	at javax.mail.Service.connect(Service.java:195)
    	at javax.mail.Transport.send0(Transport.java:254)
    	at javax.mail.Transport.send(Transport.java:124)
    	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
    	... 10 more
    Caused by: java.net.UnknownHostException: smtp-relay.sendinblue.com
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:607)
    	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:329)
    	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
    	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2084)
    	... 17 more
    

Error resetting password
  • Robin Shen commented 4 years ago

    The error using email reset is a bug, and will be fixed soon. As to the error using name, it means that OneDev can not connect to your host smtp-relay.sendinblue.com for sending email.

  • Quin commented 4 years ago

    Is there any way to check the smtp-relay? The emails were sending fine yesterday. Even just sending a test email (no service desk stuff) fails.

    Okay, I've tested it with Telnet. On my local, other sites, and other machines. The host machine works fine, and the other guest machines too. It's just this one guest machine that is hosting OneDev has suddenly stopped working (even when testing with Telnet).

  • Robin Shen changed title 4 years ago
    Previous Value Current Value
    Cannot reset password
    Cannot reset password by specifying email address
  • OneDev changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 years ago

    State changed as code fixing the issue is committed

  • OneDev changed state to 'Released' 4 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 4 years ago

    State changed as build #2312 is successful

issue 1/1
Type
Bug
Priority
Major
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-578
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover