Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
New Member
Posts: 5
Registered: ‎05-15-2016

Unifi unable to backup - "There was an error generating a new backup file. Backup failed."

[ Edited ]

My unifi instance is unable to backup.   When I click the "Download Backup" button, it pops up a message saying "There was an error generating a new backup file. Backup failed."

 

Unfortunately, I don't have a backup I can restore from.  This had been happening for a while without me noticing.  

 

 

 

The server.log says:

[2017-12-07 02:22:43,157] <webapi-161> ERROR system - Fail to create a backup for version '5.6.22'
[2017-12-07 02:22:43,159] <webapi-161> ERROR system - Info on backup error is...
com.mongodb.MongoException: assertion src/mongo/db/pdfile.h:392
at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:246)
at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:224)
at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:184)
at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:62)
at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:88)
at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:68)
at com.mongodb.DBCursor._check(DBCursor.java:498)
at com.mongodb.DBCursor._hasNext(DBCursor.java:621)
at com.mongodb.DBCursor.hasNext(DBCursor.java:657)
at com.ubnt.service.B.Q.o00000(Unknown Source)
at com.ubnt.service.B.if.o00000(Unknown Source)
at com.ubnt.service.B.oOOO.super(Unknown Source)
at com.ubnt.service.B.oOOO$_OOo.o00000(Unknown Source)
at com.ubnt.ace.api.int.super(Unknown Source)
at com.ubnt.service.B.oOOO.super(Unknown Source)
at com.ubnt.ace.api.J.o00000(Unknown Source)
at com.ubnt.ace.api.ApiServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.ubnt.ace.view.AuthFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)
at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:177)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

 

 

# cat mongod.log
Thu Dec 7 02:21:01.788 [initandlisten] MongoDB starting : pid=16206 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=monitor
Thu Dec 7 02:21:01.788 [initandlisten] db version v2.4.10
Thu Dec 7 02:21:01.788 [initandlisten] git version: nogitversion
Thu Dec 7 02:21:01.788 [initandlisten] build info: Linux x86-ubc-01 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 BOOST_LIB_VERSION=1_55
Thu Dec 7 02:21:01.788 [initandlisten] allocator: tcmalloc
Thu Dec 7 02:21:01.788 [initandlisten] options: { bind_ip: "127.0.0.1", dbpath: "/usr/lib/unifi/data/db", logappend: true, logpath: "/usr/lib/unifi/logs/mongod.log", nohttpinterface: true, port: 27117, unixSocketPrefix: "/usr/lib/unifi/run" }
Thu Dec 7 02:21:01.803 [initandlisten] journal dir=/usr/lib/unifi/data/db/journal
Thu Dec 7 02:21:01.803 [initandlisten] recover : no journal files present, no recovery needed
Thu Dec 7 02:21:02.003 [initandlisten] waiting for connections on port 27117
Thu Dec 7 02:21:02.122 [initandlisten] connection accepted from 127.0.0.1:40287 #1 (1 connection now open)
Thu Dec 7 02:21:02.184 [initandlisten] connection accepted from 127.0.0.1:40288 #2 (2 connections now open)
Thu Dec 7 02:21:02.547 [conn2] command ace.$cmd command: { $eval: "db.serverStatus()", args: {} } ntoreturn:1 keyUpdates:0 locks(micros) W:353794 reslen:2688 353ms
Thu Dec 7 02:21:03.685 [initandlisten] connection accepted from 127.0.0.1:40289 #3 (3 connections now open)
Thu Dec 7 02:21:03.692 [initandlisten] connection accepted from 127.0.0.1:40290 #4 (4 connections now open)
Thu Dec 7 02:21:07.144 [initandlisten] connection accepted from 127.0.0.1:40292 #5 (5 connections now open)
Thu Dec 7 02:21:37.940 [initandlisten] connection accepted from 127.0.0.1:40299 #6 (6 connections now open)
Thu Dec 7 02:21:37.996 [initandlisten] connection accepted from 127.0.0.1:40300 #7 (7 connections now open)
Thu Dec 7 02:21:38.216 [conn4] query ace_stat.stat_5minutes query: { site_id: "5738c806e4b07ab296e029fa", datetime: { $type: 9, $gte: new Date(1512544800000), $lt: new Date(1512631500000) }, o: "site", oid: "5738c806e4b07ab296e029fa" } ntoreturn:0 ntoskip:0 nscanned:145 keyUpdates:0 locks(micros) r:231230 nreturned:49 reslen:12515 231ms
Thu Dec 7 02:22:43.028 [initandlisten] connection accepted from 127.0.0.1:40302 #8 (8 connections now open)
Thu Dec 7 02:22:43.035 [initandlisten] connection accepted from 127.0.0.1:40303 #9 (9 connections now open)
Thu Dec 7 02:22:43.134 [conn9] ace.hotspot2conf Assertion failure isOk() src/mongo/db/pdfile.h 392
Thu Dec 7 02:22:43.156 [conn9] assertion 0 assertion src/mongo/db/pdfile.h:392 ns:ace.hotspot2conf query:{} 

 

Any suggestions on how to fix this?  Its sort of frustrating to be unable to take a backup.

New Member
Posts: 5
Registered: ‎05-15-2016

Re: Unifii unable backup

I've tried a repair.  When I try the repair it fails:

# mongod --repair --dbpath /var/lib/unifi/db
Thu Dec 7 02:26:33.823 [initandlisten] MongoDB starting : pid=16413 port=27017 dbpath=/var/lib/unifi/db 64-bit host=monitor
Thu Dec 7 02:26:33.824 [initandlisten] db version v2.4.10
Thu Dec 7 02:26:33.824 [initandlisten] git version: nogitversion
Thu Dec 7 02:26:33.824 [initandlisten] build info: Linux x86-ubc-01 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 BOOST_LIB_VERSION=1_55
Thu Dec 7 02:26:33.824 [initandlisten] allocator: tcmalloc
Thu Dec 7 02:26:33.824 [initandlisten] options: { dbpath: "/var/lib/unifi/db", repair: true }
Thu Dec 7 02:26:33.840 [initandlisten] ****
Thu Dec 7 02:26:33.840 [initandlisten] ****
Thu Dec 7 02:26:33.841 [initandlisten] need to upgrade database ace with pdfile version 4.5, new version: 4.5
Thu Dec 7 02:26:33.841 [initandlisten] starting upgrade
Thu Dec 7 02:26:33.841 [initandlisten] ace repairDatabase ace
Thu Dec 7 02:26:33.856 [FileAllocator] allocating new datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.ns, filling with zeroes...
Thu Dec 7 02:26:33.856 [FileAllocator] creating directory /var/lib/unifi/db/_tmp_repairDatabase_1/_tmp
Thu Dec 7 02:26:33.950 [FileAllocator] done allocating datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.ns, size: 16MB, took 0.091 secs
Thu Dec 7 02:26:33.950 [FileAllocator] allocating new datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.0, filling with zeroes...
Thu Dec 7 02:26:34.285 [FileAllocator] done allocating datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.0, size: 64MB, took 0.334 secs
Thu Dec 7 02:26:34.287 [FileAllocator] allocating new datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.1, filling with zeroes...
Thu Dec 7 02:26:34.304 [initandlisten] build index ace.usergroup { _id: 1 }
Thu Dec 7 02:26:34.304 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.304 [initandlisten] build index done. scanned 4 total records. 0 secs
Thu Dec 7 02:26:34.305 [initandlisten] build index ace.dpigroup { _id: 1 }
Thu Dec 7 02:26:34.305 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.305 [initandlisten] build index done. scanned 1 total records. 0 secs
Thu Dec 7 02:26:34.305 [initandlisten] build index ace.portforward { _id: 1 }
Thu Dec 7 02:26:34.306 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.306 [initandlisten] build index done. scanned 0 total records. 0 secs
Thu Dec 7 02:26:34.306 [initandlisten] build index ace.wlangroup { _id: 1 }
Thu Dec 7 02:26:34.307 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.307 [initandlisten] build index done. scanned 2 total records. 0 secs
Thu Dec 7 02:26:34.307 [initandlisten] build index ace.networkconf { _id: 1 }
Thu Dec 7 02:26:34.307 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.308 [initandlisten] build index done. scanned 2 total records. 0 secs
Thu Dec 7 02:26:34.309 [initandlisten] build index ace.rogue { _id: 1 }
Thu Dec 7 02:26:34.311 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.313 [initandlisten] build index done. scanned 93 total records. 0.002 secs
Thu Dec 7 02:26:34.314 [initandlisten] build index ace.setting { _id: 1 }
Thu Dec 7 02:26:34.315 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.315 [initandlisten] build index done. scanned 17 total records. 0.001 secs
Thu Dec 7 02:26:34.316 [initandlisten] build index ace.broadcastgroup { _id: 1 }
Thu Dec 7 02:26:34.316 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.317 [initandlisten] build index done. scanned 1 total records. 0 secs
Thu Dec 7 02:26:34.318 [initandlisten] build index ace.event { _id: 1 }
Thu Dec 7 02:26:34.318 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.319 [initandlisten] build index done. scanned 42 total records. 0 secs
Thu Dec 7 02:26:34.319 [initandlisten] build index ace.map { _id: 1 }
Thu Dec 7 02:26:34.320 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.321 [initandlisten] build index done. scanned 2 total records. 0.001 secs
Thu Dec 7 02:26:34.337 [initandlisten] build index ace.mediafile { _id: 1 }
Thu Dec 7 02:26:34.338 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.339 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.340 [initandlisten] build index ace.hotspotop { _id: 1 }
Thu Dec 7 02:26:34.341 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.342 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.344 [initandlisten] build index ace.dynamicdns { _id: 1 }
Thu Dec 7 02:26:34.345 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.346 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.347 [initandlisten] build index ace.site { _id: 1 }
Thu Dec 7 02:26:34.348 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.350 [initandlisten] build index done. scanned 2 total records. 0.001 secs
Thu Dec 7 02:26:34.350 [initandlisten] build index ace.portalfile { _id: 1 }
Thu Dec 7 02:26:34.351 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.352 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.353 [initandlisten] build index ace.payment { _id: 1 }
Thu Dec 7 02:26:34.353 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.354 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.355 [initandlisten] build index ace.hotspotpackage { _id: 1 }
Thu Dec 7 02:26:34.356 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.356 [initandlisten] build index done. scanned 0 total records. 0 secs
Thu Dec 7 02:26:34.357 [initandlisten] build index ace.task { _id: 1 }
Thu Dec 7 02:26:34.359 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.360 [initandlisten] build index done. scanned 0 total records. 0.002 secs
Thu Dec 7 02:26:34.361 [initandlisten] build index ace.stat { _id: 1 }
Thu Dec 7 02:26:34.363 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.364 [initandlisten] build index done. scanned 0 total records. 0.002 secs
Thu Dec 7 02:26:34.365 [initandlisten] build index ace.extension { _id: 1 }
Thu Dec 7 02:26:34.367 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.368 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.369 [initandlisten] build index ace.alarm { _id: 1 }
Thu Dec 7 02:26:34.370 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.372 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.373 [initandlisten] build index ace.wlanconf { _id: 1 }
Thu Dec 7 02:26:34.374 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.375 [initandlisten] build index done. scanned 2 total records. 0.001 secs
Thu Dec 7 02:26:34.375 [initandlisten] build index ace.verification { _id: 1 }
Thu Dec 7 02:26:34.376 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.377 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.378 [initandlisten] build index ace.admin { _id: 1 }
Thu Dec 7 02:26:34.379 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.380 [initandlisten] build index done. scanned 1 total records. 0.001 secs
Thu Dec 7 02:26:34.381 [initandlisten] build index ace.privilege { _id: 1 }
Thu Dec 7 02:26:34.382 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.383 [initandlisten] build index done. scanned 2 total records. 0.001 secs
Thu Dec 7 02:26:34.384 [initandlisten] build index ace.device { _id: 1 }
Thu Dec 7 02:26:34.385 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.386 [initandlisten] build index done. scanned 4 total records. 0.001 secs
Thu Dec 7 02:26:34.387 [initandlisten] build index ace.guest { _id: 1 }
Thu Dec 7 02:26:34.388 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.389 [initandlisten] build index done. scanned 0 total records. 0 secs
Thu Dec 7 02:26:34.389 [initandlisten] build index ace.account { _id: 1 }
Thu Dec 7 02:26:34.391 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.391 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.392 [initandlisten] build index ace.voucher { _id: 1 }
Thu Dec 7 02:26:34.392 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.394 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.395 [initandlisten] build index ace.user { _id: 1 }
Thu Dec 7 02:26:34.396 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.397 [initandlisten] build index done. scanned 21 total records. 0.001 secs
Thu Dec 7 02:26:34.398 [initandlisten] build index ace.portconf { _id: 1 }
Thu Dec 7 02:26:34.399 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.400 [initandlisten] build index done. scanned 4 total records. 0.001 secs
Thu Dec 7 02:26:34.401 [initandlisten] build index ace.scheduletask { _id: 1 }
Thu Dec 7 02:26:34.402 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.403 [initandlisten] build index done. scanned 1 total records. 0.001 secs
Thu Dec 7 02:26:34.404 [initandlisten] build index ace.routing { _id: 1 }
Thu Dec 7 02:26:34.405 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.405 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.406 [initandlisten] build index ace.firewallgroup { _id: 1 }
Thu Dec 7 02:26:34.407 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.408 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.409 [initandlisten] build index ace.firewallrule { _id: 1 }
Thu Dec 7 02:26:34.410 [initandlisten] fastBuildIndex dupsToDrop:0
Thu Dec 7 02:26:34.411 [initandlisten] build index done. scanned 0 total records. 0.001 secs
Thu Dec 7 02:26:34.411 [initandlisten] ace.hotspot2conf Assertion failure isOk() src/mongo/db/pdfile.h 392
0xa6bcc6 0xa3e63d 0xa2210e 0x59f280 0x845734 0x8b7a78 0x8b9718 0x8b9a53 0x82794a 0x829726 0x7c7e4c 0x7c991a 0x5eef36 0x5ccb72 0x7c0105 0x5c1ed3 0x683a52 0x68496f 0x686205 0x686480
mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xa6bcc6]
mongod(_ZN5mongo10logContextEPKc+0xfd) [0xa3e63d]
mongod(_ZN5mongo12verifyFailedEPKcS1_j+0xbe) [0xa2210e]
mongod(_ZN5mongo15NamespaceStringD1Ev+0) [0x59f280]
mongod(_ZN5mongo11DataFileMgr7findAllERKNS_10StringDataERKNS_7DiskLocE+0x54) [0x845734]
mongod(_ZNK5mongo15CursorGenerator14shortcutCursorEv+0x388) [0x8b7a78]
mongod(_ZN5mongo15CursorGenerator8generateEv+0x28) [0x8b9718]
mongod(_ZN5mongo25NamespaceDetailsTransient9getCursorERKNS_10StringDataERKNS_7BSONObjES6_RKNS_24QueryPlanSelectionPolicyERKN5boost10shared_ptrIKNS_11ParsedQueryEEEbPNS_16QueryPlanSummaryE+0x33) [0x8b9a53]
mongod(_ZN5mongo23queryWithQueryOptimizerEiRKSsRKNS_7BSONObjERNS_5CurOpES4_S4_RKN5boost10shared_ptrINS_11ParsedQueryEEES4_RKNS_12ChunkVersionERNS7_10scoped_ptrINS_25PageFaultRetryableSectionEEERNSG_INS_19NoPageFaultsAllowedEEERNS_7MessageE+0x11a) [0x82794a]
mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0xe46) [0x829726]
mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x4fc) [0x7c7e4c]
mongod(_ZN5mongo14DBDirectClient4callERNS_7MessageES2_bPSs+0x7a) [0x7c991a]
mongod(_ZN5mongo14DBClientCursor4initEv+0x96) [0x5eef36]
mongod(_ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0x212) [0x5ccb72]
mongod(_ZN5mongo14DBDirectClient5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0x45) [0x7c0105]
mongod(_ZN5mongo12DBClientBase5queryEN5boost8functionIFvRNS_27DBClientCursorBatchIteratorEEEERKSsNS_5QueryEPKNS_7BSONObjEi+0x63) [0x5c1ed3]
mongod(_ZN5mongo6Cloner4copyEPKcS2_bbbbbbNS_5QueryE+0x212) [0x683a52]
mongod(_ZN5mongo6Cloner2goEPKcRKNS_12CloneOptionsERSt3setISsSt4lessISsESaISsEERSsPi+0x33f) [0x68496f]
mongod(_ZN5mongo6Cloner2goEPKcRSsRKSsbbbbbbPi+0x155) [0x686205]
mongod(_ZN5mongo6Cloner9cloneFromEPKcRSsRKSsbbbbbbPi+0x90) [0x686480]
Thu Dec 7 02:26:34.440 [initandlisten] assertion 0 assertion src/mongo/db/pdfile.h:392 ns:ace.hotspot2conf query:{}
Thu Dec 7 02:26:34.441 [initandlisten] exception in initAndListen: 13106 nextSafe(): { $err: "assertion src/mongo/db/pdfile.h:392" }, terminating
Thu Dec 7 02:26:34.441 dbexit:
Thu Dec 7 02:26:34.441 [initandlisten] shutdown: going to close listening sockets...
Thu Dec 7 02:26:34.441 [initandlisten] shutdown: going to flush diaglog...
Thu Dec 7 02:26:34.441 [initandlisten] shutdown: going to close sockets...
Thu Dec 7 02:26:34.441 [initandlisten] shutdown: waiting for fs preallocator...
Thu Dec 7 02:26:34.982 [FileAllocator] done allocating datafile /var/lib/unifi/db/_tmp_repairDatabase_1/ace.1, size: 128MB, took 0.694 secs
Thu Dec 7 02:26:34.982 [initandlisten] shutdown: closing all files...
Thu Dec 7 02:26:34.986 [initandlisten] closeAllFiles() finished
Thu Dec 7 02:26:34.987 [initandlisten] shutdown: removing fs lock...
Thu Dec 7 02:26:34.987 dbexit: really exiting now

 

Highlighted
New Member
Posts: 15
Registered: Tuesday
Kudos: 1

Re: Unifii unable backup

What version are you running?

Senior Member
Posts: 3,200
Registered: ‎06-13-2015
Kudos: 851
Solutions: 154

Re: Unifii unable backup


chrisfd2 wrote:

What version are you running?


the logs say 5.6.22...

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
Senior Member
Posts: 3,200
Registered: ‎06-13-2015
Kudos: 851
Solutions: 154

Re: Unifii unable backup

@jerrod it will be of interest to know the exact OS version and the output of "java -version" from the command line of your server. Also the output of "df -h" may be useful.

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
New Member
Posts: 15
Registered: Tuesday
Kudos: 1

Re: Unifii unable backup


slooffmaster wrote:
the logs say 5.6.22...

I didn't spot that skim reading it. If there are no disk space issues it may be worth trying to upgrade the version.

New Member
Posts: 5
Registered: ‎05-15-2016

Re: Unifii unable backup

So to answer the queue of questions:

$ uname -a
Linux monitor 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux

$ java -version
java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.151-b01, mixed mode)

 

There are not disk space issues.  Unifi is on a 20gb partition that currently has 11gb free.

 

 

It is currently running the latest stable version (5.6.22).  I believe this problem was present during the last upgrade and possibly going back at least as far as 5.6.19, so upgrading versions does not fix the problem.

Senior Member
Posts: 3,200
Registered: ‎06-13-2015
Kudos: 851
Solutions: 154

Re: Unifii unable backup

Thanks. Nothing that stands out, but I would recommend upgrading OpenJDK to the latest Oracle version. Much more stable IMHO.

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
New Member
Posts: 5
Registered: ‎05-15-2016

Re: Unifii unable backup

I appreciate the jdk suggestion, but its clearly unrelated to this problem.  This problem exists even when unifi is not started - the mongodb repair process fails.  I'm attempting to stay with default debian installation, as that feels like something that should be well supported.

 

 

Senior Member
Posts: 3,200
Registered: ‎06-13-2015
Kudos: 851
Solutions: 154

Re: Unifii unable backup

Of course up to you. Good luck.

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
New Member
Posts: 5
Registered: ‎05-15-2016

Re: Unifi unable to backup - "There was an error generating a new backup file. Backup failed.&q

5.6.26 did not fix the issue.

Senior Member
Posts: 3,200
Registered: ‎06-13-2015
Kudos: 851
Solutions: 154

Re: Unifi unable to backup - "There was an error generating a new backup file. Backup failed.&a

Unless other applications on the same box require OpenJDK, if I were you I would upgrade to Oracle Java. Oracle is also what the UBNT team will recommend when you ask them. Can't hurt...

Art of WiFi
Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub.
Reply