<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot login on new install]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Installed free-m2m2-core-3.3.0.zip on linux (Fedora 27).</p>
<p dir="auto">I added a line to <a href="http://ma.sh" rel="nofollow ugc">ma.sh</a> as mango would not start, as it was trying to connect to the x11 display.</p>
<p dir="auto">$ grep JAVAOPTS *.sh<br />
<a href="http://ma.sh" rel="nofollow ugc">ma.sh</a>:JAVAOPTS=" -Djava.awt.headless=true"</p>
<p dir="auto">I connect to <a href="http://localhost:8080" rel="nofollow ugc">http://localhost:8080</a> and get the mango login screen, but cannot connect as admin/admin.</p>
<p dir="auto">The log on the terminal screen shows</p>
<p dir="auto">WARN  2018-02-04T17:43:39,781 (com.serotonin.m2m2.web.mvc.spring.security.MangoAuthenticationFailureHandler.saveExceptionImpl:81) - Failed login attempt on user 'admin' from IP +0:0:0:0:0:0:0:1</p>
<p dir="auto">Any tips for next steps</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.mango-os.com/topic/3254/cannot-login-on-new-install</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 17:24:03 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3254.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Feb 2018 08:21:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot login on new install on Mon, 05 Feb 2018 21:50:36 GMT]]></title><description><![CDATA[<p dir="auto">Certainly!</p>
<p dir="auto">Check out the ext scripts in Mango/bin/ext-available. You can write an ext script to append that to the JAVAOPTS and it won't be removed at upgrade. Scripts in Mango/bin/ext-enabled are executed at various points in the script lifecycle with $1 like 'start' or 'init' or 'restart' or 'stop'</p>
]]></description><link>https://forum.mango-os.com/post/17211</link><guid isPermaLink="true">https://forum.mango-os.com/post/17211</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 05 Feb 2018 21:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot login on new install on Mon, 05 Feb 2018 21:03:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Moving the /databases directory solved the problem.<br />
I first started mango (<a href="http://ma.sh" rel="nofollow ugc">ma.sh</a> start) as a user, and it appeared to start OK, but I could not login, so the database user creation must have failed !!</p>
<p dir="auto">After moving the database, I started with</p>
<pre><code>$sudo ./bin/ma.sh start 
</code></pre>
<p dir="auto">Connected to localhost:8080 and logged in as admin :-)</p>
<p dir="auto">Fedora 27, by default uses the wayland display server, which will not let root processes attach to it, if it is running as an ordinary user.<br />
see<br />
[link text](<a href="https://docs.fedoraproject.org/f27/system-administrators-guide/Wayland.html" rel="nofollow ugc">https://docs.fedoraproject.org/f27/system-administrators-guide/Wayland.html</a><br />
and<br />
[link text](<a href="https://ask.fedoraproject.org/en/question/97856/why-do-i-get-an-error-launching-gedit-with-sudo-in-fedora-25/" rel="nofollow ugc">https://ask.fedoraproject.org/en/question/97856/why-do-i-get-an-error-launching-gedit-with-sudo-in-fedora-25/</a></p>
<p dir="auto">Maybe a new option should be added to the env.properties to allow the server to start in "headless mode", so when I upgrade mango, I do not lose my "-Djava.awt.headless=true" hack</p>
<p dir="auto">Thanks for the prompt help</p>
]]></description><link>https://forum.mango-os.com/post/17209</link><guid isPermaLink="true">https://forum.mango-os.com/post/17209</guid><dc:creator><![CDATA[rob987]]></dc:creator><pubDate>Mon, 05 Feb 2018 21:03:08 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot login on new install on Mon, 05 Feb 2018 16:35:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi rob987,</p>
<p dir="auto">You may have been able to solve the X11 issue by changing the env.properties setting <code>web.openBrowserOnStartup=true</code> to false, although this shouldn't prevent starting.</p>
<p dir="auto">You can try logging in on the /login.shtm page.</p>
<p dir="auto">You can shut Mango down, move your Mango/databases/ directory, and start again, which will start on a clean, new database.</p>
<p dir="auto">You can see if this topic has useful information, such as setting a user's password through the database, <a href="https://forum.infiniteautomation.com/topic/2926/forget-the-password-of-admin-how-to-get-it-back" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2926/forget-the-password-of-admin-how-to-get-it-back</a></p>
]]></description><link>https://forum.mango-os.com/post/17194</link><guid isPermaLink="true">https://forum.mango-os.com/post/17194</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 05 Feb 2018 16:35:28 GMT</pubDate></item></channel></rss>