<?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[Reset Mango User Passwords]]></title><description><![CDATA[<p dir="auto">Hello Everyone,</p>
<p dir="auto">I imported user settings via a json as I have in the past but this time I was unable to log in after rebooting.  Now the original default information no longer works and the user/passwords from the imported settings also don't work.</p>
<p dir="auto">I am wondering if anyone knows of a way that I could reset the passwords, this instance is on a MangoES which I do have CLI access to.</p>
<p dir="auto">Any help would be appreciated.</p>
<p dir="auto">Thank You,<br />
Ed</p>
]]></description><link>https://forum.mango-os.com/topic/2366/reset-mango-user-passwords</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 22:25:38 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2366.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Jul 2016 15:10:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 18:33:24 GMT]]></title><description><![CDATA[<p dir="auto">Success!</p>
<p dir="auto">Deleting the database did the trick.</p>
<p dir="auto">Thanks a ton Phil!</p>
]]></description><link>https://forum.mango-os.com/post/12201</link><guid isPermaLink="true">https://forum.mango-os.com/post/12201</guid><dc:creator><![CDATA[Xof1986]]></dc:creator><pubDate>Wed, 27 Jul 2016 18:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 18:12:58 GMT]]></title><description><![CDATA[<p dir="auto">Oh, that's much easier, then. You can just delete / move your Mango/databases/ directory and start up clean. Your configuration should have JSON exported itself into Mango/backup if it was on overnight.</p>
<p dir="auto">You are very close though! To alleviate that error you can use the Mango/bin/h2-web-console.sh script (here's some information on that: <a href="http://help.infiniteautomation.com/support/solutions/articles/14000022661-about-the-h2-database" rel="nofollow ugc">http://help.infiniteautomation.com/support/solutions/articles/14000022661-about-the-h2-database</a> ) and run either (but not both!) of these commands:</p>
<p dir="auto">update systemSettings set settingvalue='12' where settingname='databaseSchemaVersion';<br />
OR<br />
drop table jsonData;</p>
<p dir="auto">Either would hopefully let you startup normally after being run.</p>
]]></description><link>https://forum.mango-os.com/post/12199</link><guid isPermaLink="true">https://forum.mango-os.com/post/12199</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 27 Jul 2016 18:12:58 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 17:43:04 GMT]]></title><description><![CDATA[<p dir="auto">FYI this unit was basically fresh out of the box so it doesn't have any information on it that would need to be salvaged.</p>
]]></description><link>https://forum.mango-os.com/post/12198</link><guid isPermaLink="true">https://forum.mango-os.com/post/12198</guid><dc:creator><![CDATA[Xof1986]]></dc:creator><pubDate>Wed, 27 Jul 2016 17:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 17:38:44 GMT]]></title><description><![CDATA[<p dir="auto">Phil,</p>
<p dir="auto">The username/password was blank in this instance.</p>
<p dir="auto">Just as you suspected I received an error when starting it via command line.</p>
<p dir="auto">ERROR 2013-01-02 20:30:46,120 (com.serotonin.m2m2.Main.main:120) - Error during                                                                                                  initialization<br />
com.serotonin.ShouldNeverHappenException: org.springframework.jdbc.BadSqlGrammar                                                                                                 Exception: StatementCallback; bad SQL grammar [CREATE TABLE jsonData (id int not                                                                                                  null auto_increment, xid varchar(50) not null, name varchar(255) not null, read                                                                                                 Permission varchar(255), editPermission varchar(255), data longtext, primary key                                                                                                  (id)); ]; nested exception is org.h2.jdbc.JdbcSQLException: Table "JSONDATA" al                                                                                                 ready exists; SQL statement:<br />
CREATE TABLE jsonData (id int not null auto_increment, xid varchar(50) not null,                                                                                                  name varchar(255) not null, readPermission varchar(255), editPermission varchar                                                                                                 (255), data longtext, primary key (id));  [42101-181]<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:1                                                                                                 02)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:3                                                                                                 4)<br />
at com.serotonin.m2m2.db.DatabaseProxy.initialize(DatabaseProxy.java:180                                                                                                 )<br />
at com.serotonin.m2m2.Lifecycle.databaseInitialize(Lifecycle.java:602)<br />
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:280)<br />
at com.serotonin.m2m2.Main.main(Main.java:116)<br />
Caused by: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; b                                                                                                 ad SQL grammar [CREATE TABLE jsonData (id int not null auto_increment, xid varch                                                                                                 ar(50) not null, name varchar(255) not null, readPermission varchar(255), editPe                                                                                                 rmission varchar(255), data longtext, primary key (id)); ]; nested exception is                                                                                                  org.h2.jdbc.JdbcSQLException: Table "JSONDATA" already exists; SQL statement:<br />
CREATE TABLE jsonData (id int not null auto_increment, xid varchar(50) not null,                                                                                                  name varchar(255) not null, readPermission varchar(255), editPermission varchar                                                                                                 (255), data longtext, primary key (id));  [42101-181]<br />
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.d                                                                                                 oTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)<br />
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslat                                                                                                 or.translate(AbstractFallbackSQLExceptionTranslator.java:73)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:                                                                                                 415)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:                                                                                                 439)<br />
at com.serotonin.m2m2.db.H2Proxy.runScript(H2Proxy.java:146)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:129)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:143)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:134)<br />
at com.serotonin.m2m2.db.upgrade.Upgrade11.upgrade(Upgrade11.java:27)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:9                                                                                                 8)<br />
... 5 more<br />
Caused by: org.h2.jdbc.JdbcSQLException: Table "JSONDATA" already exists; SQL st                                                                                                 atement:<br />
CREATE TABLE jsonData (id int not null auto_increment, xid varchar(50) not null,                                                                                                  name varchar(255) not null, readPermission varchar(255), editPermission varchar                                                                                                 (255), data longtext, primary key (id));  [42101-181]<br />
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)<br />
at org.h2.message.DbException.get(DbException.java:179)<br />
at org.h2.message.DbException.get(DbException.java:155)<br />
at org.h2.command.ddl.CreateTable.update(CreateTable.java:111)<br />
at org.h2.command.CommandContainer.update(CommandContainer.java:78)<br />
at org.h2.command.Command.executeUpdate(Command.java:254)<br />
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:185)<br />
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:159)<br />
at org.springframework.jdbc.core.JdbcTemplate$1ExecuteStatementCallback.                                                                                                 doInStatement(JdbcTemplate.java:431)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:                                                                                                 404)<br />
... 12 more<br />
INFO  2013-01-02 20:30:46,130 (com.serotonin.m2m2.Lifecycle.terminate:344) - Man                                                                                                 go Lifecycle terminating...<br />
Exception in thread "main" java.lang.ExceptionInInitializerError<br />
at com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown(MangoNoSqlProxy                                                                                                 .java:149)<br />
at com.serotonin.m2m2.db.DatabaseProxy.terminate(DatabaseProxy.java:230)<br />
at com.serotonin.m2m2.Lifecycle.databaseTerminate(Lifecycle.java:607)<br />
at com.serotonin.m2m2.Lifecycle.terminate(Lifecycle.java:408)<br />
at com.serotonin.m2m2.Main.main(Main.java:121)<br />
Caused by: java.lang.IllegalStateException: Connection pool has been disposed.<br />
at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.j                                                                                                 ava:221)<br />
at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java                                                                                                 :199)<br />
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(D                                                                                                 ataSourceUtils.java:111)<br />
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(Dat                                                                                                 aSourceUtils.java:77)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:                                                                                                 615)<br />
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:68                                                                                                 0)<br />
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:71                                                                                                 2)<br />
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:72                                                                                                 2)<br />
at com.serotonin.db.spring.ExtendedJdbcTemplate.queryForObject(ExtendedJ                                                                                                 dbcTemplate.java:39)<br />
at com.serotonin.db.spring.ExtendedJdbcTemplate.queryForObject(ExtendedJ                                                                                                 dbcTemplate.java:63)<br />
at com.serotonin.db.DaoUtils.queryForObject(DaoUtils.java:336)<br />
at com.serotonin.m2m2.db.dao.SystemSettingsDao.getValue(SystemSettingsDa                                                                                                 o.java:157)<br />
at com.serotonin.m2m2.db.dao.SystemSettingsDao.getIntValue(SystemSetting                                                                                                 sDao.java:177)<br />
at com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager.&lt;init&gt;                                                                                                 (MangoNoSqlBatchWriteBehindManager.java:97)<br />
at com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager.&lt;clini                                                                                                 t&gt;(MangoNoSqlBatchWriteBehindManager.java:91)<br />
... 5 more</p>
]]></description><link>https://forum.mango-os.com/post/12197</link><guid isPermaLink="true">https://forum.mango-os.com/post/12197</guid><dc:creator><![CDATA[Xof1986]]></dc:creator><pubDate>Wed, 27 Jul 2016 17:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 14:27:01 GMT]]></title><description><![CDATA[<p dir="auto">That would strongly suggest to me that if you attempt to start Mango at the command line (sudo service mango stop; cd /opt/mango/bin/; sudo ./ma.sh start) you will get an error. Most likely it is having some issue with the database, since that's what we're playing with. Did you try to get a username and password for my java command, if they're set in your env.properties?</p>
<p dir="auto">Alternatively: tail -n 100 /opt/mango/logs/ma.log</p>
]]></description><link>https://forum.mango-os.com/post/12189</link><guid isPermaLink="true">https://forum.mango-os.com/post/12189</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 27 Jul 2016 14:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 14:20:59 GMT]]></title><description><![CDATA[<p dir="auto">I don't receive any errors.</p>
<p dir="auto">I did just notice that when I stop/start the mango service I can initially get to the Mango loading screen but it stays at 0 and when I refresh I get the connection refused error from the browser.</p>
]]></description><link>https://forum.mango-os.com/post/12188</link><guid isPermaLink="true">https://forum.mango-os.com/post/12188</guid><dc:creator><![CDATA[Xof1986]]></dc:creator><pubDate>Wed, 27 Jul 2016 14:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 14:17:59 GMT]]></title><description><![CDATA[<p dir="auto">Are there errors when you try to launch Mango?</p>
]]></description><link>https://forum.mango-os.com/post/12187</link><guid isPermaLink="true">https://forum.mango-os.com/post/12187</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 27 Jul 2016 14:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Wed, 27 Jul 2016 14:16:18 GMT]]></title><description><![CDATA[<p dir="auto">I was able to run the command but now I receive "This site can't be reached  <a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a> refused to connect"</p>
<p dir="auto">I still have access to the CLI.</p>
<p dir="auto">Any advice?</p>
<p dir="auto">Ed</p>
]]></description><link>https://forum.mango-os.com/post/12186</link><guid isPermaLink="true">https://forum.mango-os.com/post/12186</guid><dc:creator><![CDATA[Xof1986]]></dc:creator><pubDate>Wed, 27 Jul 2016 14:16:18 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Mon, 25 Jul 2016 22:01:51 GMT]]></title><description><![CDATA[<p dir="auto">Also note that the password in the Users JSON is encrypted so that is not that actual password to use after the Users are imported.  You still need to know what the original password was.</p>
]]></description><link>https://forum.mango-os.com/post/12158</link><guid isPermaLink="true">https://forum.mango-os.com/post/12158</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Mon, 25 Jul 2016 22:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Reset Mango User Passwords on Mon, 25 Jul 2016 19:12:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ed,</p>
<p dir="auto">Yikes! One of those two passwords should definitely work. You will have an H2 backup of your database in Mango/backup/ most likely, and you can restore your H2 database by:</p>
<ol>
<li>Backup / Move your Mango/databases/mah2.h2.db file in case you require it</li>
<li>Run the following command after changing the date to the date of your backup, and potentially adding in your user / password if they are specified in Mango/overrides/properties/env.properties:</li>
</ol>
<pre><code>java -cp /opt/mango/lib/h2-1.4.181.jar org.h2.tools.RunScript -url "jdbc:h2:/opt/mango/databases/mah2;MV_STORE=FALSE;MVCC=FALSE" -user "" -script /opt/mango/backup/core-database-H2-Jul-25-2016_000500.zip -options compression zip
</code></pre>
<p dir="auto">Best to be careful when importing entire configurations for this very reason. Also, there is a bug in some versions that permits the database schema version to be imported, which causes SQL errors at the next startup, so it is not a good idea to import database schema versions in the systemSettings object between instances.</p>
]]></description><link>https://forum.mango-os.com/post/12155</link><guid isPermaLink="true">https://forum.mango-os.com/post/12155</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 25 Jul 2016 19:12:26 GMT</pubDate></item></channel></rss>