Broken MongoDB database after repair - mongodb

Prerequisites
I have MacBook Pro (128 GB! — it's maybe a reason of the problem, but I don't sure) with MacOS Yosemite (10.10.3). Also I have MongoDB 3.0 as system mongo. But I need Mongo 2.4 for one project. Next I'll talk about mongo 2.4, that I run so: ./mongod --dbpath=/data/db2.4/. I got dump from production server, restored it locally some days ago and ran it. Everything was good, but…
A problem description
But yesterday I stopped mongo process by Ctrl + C in the iTerm. Now, I try to start it the same command like in Prerequisites section, but I see this log:
➜ ~/Downloads/mongodb-osx-x86_64-2.4.14/bin ./mongod --dbpath=/data/db2.4/ -vvvvv
Mon Jun 22 19:18:25.498 BackgroundJob starting: DataFileSync
Mon Jun 22 19:18:25.502 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:18:25.502 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:18:25.502 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:18:25.502 Matcher::matches() { abcdef: "z23456789" }
Mon Jun 22 19:18:25.502 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:18:25.502 Matcher::matches() { abcdef: "z23456789" }
Mon Jun 22 19:18:25.504 shardObjTest passed
Mon Jun 22 19:18:25.504 isInRangeTest passed
Mon Jun 22 19:18:25.504 shardKeyTest passed
Mon Jun 22 19:18:25.504 versionArrayTest passed
Mon Jun 22 19:18:25.505 [initandlisten] MongoDB starting : pid=1187 port=27017 dbpath=/data/db2.4/ 64-bit host=MacBook-Pro-lancedikson.local
Mon Jun 22 19:18:25.505 [initandlisten]
Mon Jun 22 19:18:25.505 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
Mon Jun 22 19:18:25.505 [initandlisten] db version v2.4.14
Mon Jun 22 19:18:25.505 [initandlisten] git version: 05bebf9ab15511a71bfbded684bb226014c0a553
Mon Jun 22 19:18:25.505 [initandlisten] build info: Darwin bs-osx-106-x86-64-2.10gen.cc 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
Mon Jun 22 19:18:25.505 [initandlisten] allocator: system
Mon Jun 22 19:18:25.505 [initandlisten] options: { dbpath: "/data/db2.4/", vvvvv: true }
Mon Jun 22 19:18:25.507 [initandlisten] journal dir=/data/db2.4/journal
Mon Jun 22 19:18:25.507 [initandlisten] recover : no journal files present, no recovery needed
Mon Jun 22 19:18:25.519 [initandlisten] opening db: local
Mon Jun 22 19:18:25.519 [initandlisten] mmf open /data/db2.4/local.ns
Mon Jun 22 19:18:25.519 [initandlisten] mmf finishOpening 0x105c06000 /data/db2.4/local.ns len:16777216
Mon Jun 22 19:18:25.611 [initandlisten] mmf open /data/db2.4/local.0
Mon Jun 22 19:18:25.611 [initandlisten] mmf finishOpening 0x107c06000 /data/db2.4/local.0 len:67108864
Mon Jun 22 19:18:25.611 [initandlisten] mmf close
Mon Jun 22 19:18:25.612 [initandlisten] enter repairDatabases (to check pdfile version #)
Mon Jun 22 19:18:25.612 [initandlisten] admin
Mon Jun 22 19:18:25.612 [initandlisten] opening db: admin
Mon Jun 22 19:18:25.612 [initandlisten] mmf open /data/db2.4/admin.ns
Mon Jun 22 19:18:25.612 [initandlisten] mmf finishOpening 0x10fc06000 /data/db2.4/admin.ns len:16777216
Mon Jun 22 19:18:25.612 [initandlisten] mmf open /data/db2.4/admin.0
Mon Jun 22 19:18:25.612 [initandlisten] mmf finishOpening 0x111c06000 /data/db2.4/admin.0 len:67108864
Mon Jun 22 19:18:25.613 [initandlisten] mmf open /data/db2.4/admin.1
Mon Jun 22 19:18:25.613 [initandlisten] mmf finishOpening 0x119c06000 /data/db2.4/admin.1 len:134217728
Mon Jun 22 19:18:25.613 [initandlisten] mmf close /data/db2.4/admin.1
Mon Jun 22 19:18:25.613 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.613 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.613 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 0 n:5 0ms
Mon Jun 22 19:18:25.613 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.615 [initandlisten] mmf close /data/db2.4/admin.0
Mon Jun 22 19:18:25.615 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 0 n:1 0ms
Mon Jun 22 19:18:25.615 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.615 [initandlisten] mmf close /data/db2.4/admin.ns
Mon Jun 22 19:18:25.615 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 1 n:1 0ms
Mon Jun 22 19:18:25.615 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.615 [initandlisten] local
Mon Jun 22 19:18:25.615 [initandlisten] ****
Mon Jun 22 19:18:25.615 [initandlisten] ****
Mon Jun 22 19:18:25.615 [initandlisten] need to upgrade database local with pdfile version 4.21, new version: 4.5
Mon Jun 22 19:18:25.615 [initandlisten] Not upgrading, exiting
Mon Jun 22 19:18:25.615 [initandlisten] run --upgrade to upgrade dbs, then start again
Mon Jun 22 19:18:25.615 [initandlisten] ****
Mon Jun 22 19:18:25.615 dbexit:
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: going to close listening sockets...
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: going to flush diaglog...
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: going to close sockets...
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: waiting for fs preallocator...
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: lock for final commit...
Mon Jun 22 19:18:25.615 [initandlisten] shutdown: final commit...
Mon Jun 22 19:18:25.615 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.615 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 2 n:1 0ms
Mon Jun 22 19:18:25.615 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.617 [initandlisten] shutdown: closing all files...
Mon Jun 22 19:18:25.617 [initandlisten] mmf close /data/db2.4/local.ns
Mon Jun 22 19:18:25.617 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.617 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.617 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 1 n:1 0ms
Mon Jun 22 19:18:25.617 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.618 [initandlisten] mmf close /data/db2.4/local.0
Mon Jun 22 19:18:25.618 [initandlisten] _groupCommit
Mon Jun 22 19:18:25.618 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:18:25.618 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 0 n:1 0ms
Mon Jun 22 19:18:25.618 [initandlisten] groupCommit end
Mon Jun 22 19:18:25.618 [initandlisten] closeAllFiles() finished
Mon Jun 22 19:18:25.618 [initandlisten] journalCleanup...
Mon Jun 22 19:18:25.618 [initandlisten] removeJournalFiles
Mon Jun 22 19:18:25.618 [initandlisten] removeJournalFiles end
Mon Jun 22 19:18:25.618 [initandlisten] shutdown: removing fs lock...
Mon Jun 22 19:18:25.618 [initandlisten] shutdown: groupCommitMutex
Mon Jun 22 19:18:25.618 dbexit: really exiting now
So, if I try add --upgrade key, I see this error:
~/Downloads/mongodb-osx-x86_64-2.4.14/bin ./mongod --dbpath=/data/db2.4/ -vvvvv --upgrade
Mon Jun 22 19:19:18.473 BackgroundJob starting: DataFileSync
Mon Jun 22 19:19:18.476 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:19:18.476 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:19:18.476 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:19:18.476 Matcher::matches() { abcdef: "z23456789" }
Mon Jun 22 19:19:18.476 Matcher::matches() { abcd: 3.1, abcdef: "123456789" }
Mon Jun 22 19:19:18.476 Matcher::matches() { abcdef: "z23456789" }
Mon Jun 22 19:19:18.476 shardObjTest passed
Mon Jun 22 19:19:18.476 isInRangeTest passed
Mon Jun 22 19:19:18.476 shardKeyTest passed
Mon Jun 22 19:19:18.476 versionArrayTest passed
Mon Jun 22 19:19:18.476 [initandlisten] MongoDB starting : pid=1192 port=27017 dbpath=/data/db2.4/ 64-bit host=MacBook-Pro-lancedikson.local
Mon Jun 22 19:19:18.476 [initandlisten]
Mon Jun 22 19:19:18.476 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
Mon Jun 22 19:19:18.476 [initandlisten] db version v2.4.14
Mon Jun 22 19:19:18.476 [initandlisten] git version: 05bebf9ab15511a71bfbded684bb226014c0a553
Mon Jun 22 19:19:18.476 [initandlisten] build info: Darwin bs-osx-106-x86-64-2.10gen.cc 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
Mon Jun 22 19:19:18.476 [initandlisten] allocator: system
Mon Jun 22 19:19:18.476 [initandlisten] options: { dbpath: "/data/db2.4/", upgrade: true, vvvvv: true }
Mon Jun 22 19:19:18.485 [initandlisten] journal dir=/data/db2.4/journal
Mon Jun 22 19:19:18.485 [initandlisten] recover : no journal files present, no recovery needed
Mon Jun 22 19:19:18.499 [initandlisten] opening db: local
Mon Jun 22 19:19:18.499 [initandlisten] mmf open /data/db2.4/local.ns
Mon Jun 22 19:19:18.499 [initandlisten] mmf finishOpening 0x106000000 /data/db2.4/local.ns len:16777216
Mon Jun 22 19:19:18.506 [initandlisten] mmf open /data/db2.4/local.0
Mon Jun 22 19:19:18.506 [initandlisten] mmf finishOpening 0x108000000 /data/db2.4/local.0 len:67108864
Mon Jun 22 19:19:18.506 [initandlisten] mmf close
Mon Jun 22 19:19:18.506 [initandlisten] enter repairDatabases (to check pdfile version #)
Mon Jun 22 19:19:18.506 [initandlisten] admin
Mon Jun 22 19:19:18.506 [initandlisten] opening db: admin
Mon Jun 22 19:19:18.506 [initandlisten] mmf open /data/db2.4/admin.ns
Mon Jun 22 19:19:18.507 [initandlisten] mmf finishOpening 0x110000000 /data/db2.4/admin.ns len:16777216
Mon Jun 22 19:19:18.507 [initandlisten] mmf open /data/db2.4/admin.0
Mon Jun 22 19:19:18.507 [initandlisten] mmf finishOpening 0x112000000 /data/db2.4/admin.0 len:67108864
Mon Jun 22 19:19:18.518 [initandlisten] mmf open /data/db2.4/admin.1
Mon Jun 22 19:19:18.518 [initandlisten] mmf finishOpening 0x11a000000 /data/db2.4/admin.1 len:134217728
Mon Jun 22 19:19:18.518 [initandlisten] mmf close /data/db2.4/admin.1
Mon Jun 22 19:19:18.518 [initandlisten] _groupCommit
Mon Jun 22 19:19:18.518 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:19:18.518 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 0 n:5 0ms
Mon Jun 22 19:19:18.518 [initandlisten] groupCommit end
Mon Jun 22 19:19:18.518 [initandlisten] mmf close /data/db2.4/admin.0
Mon Jun 22 19:19:18.518 [initandlisten] _groupCommit
Mon Jun 22 19:19:18.518 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:19:18.518 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 0 n:1 0ms
Mon Jun 22 19:19:18.518 [initandlisten] groupCommit end
Mon Jun 22 19:19:18.518 [initandlisten] mmf close /data/db2.4/admin.ns
Mon Jun 22 19:19:18.518 [initandlisten] _groupCommit
Mon Jun 22 19:19:18.528 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:19:18.528 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 1 n:1 0ms
Mon Jun 22 19:19:18.528 [initandlisten] groupCommit end
Mon Jun 22 19:19:18.528 [initandlisten] local
Mon Jun 22 19:19:18.528 [initandlisten] ****
Mon Jun 22 19:19:18.528 [initandlisten] ****
Mon Jun 22 19:19:18.528 [initandlisten] need to upgrade database local with pdfile version 4.21, new version: 4.5
Mon Jun 22 19:19:18.528 [initandlisten] starting upgrade
Mon Jun 22 19:19:18.528 [initandlisten] local repairDatabase local
Mon Jun 22 19:19:18.528 [initandlisten] _groupCommit
Mon Jun 22 19:19:18.528 [initandlisten] journal REMAPPRIVATEVIEW
Mon Jun 22 19:19:18.528 [initandlisten] journal REMAPPRIVATEVIEW done startedAt: 2 n:1 0ms
Mon Jun 22 19:19:18.528 [initandlisten] groupCommit end
Mon Jun 22 19:19:18.530 [initandlisten] removeJournalFiles
Mon Jun 22 19:19:18.530 [initandlisten] removeJournalFiles end
Mon Jun 22 19:19:18.530 [initandlisten] checking size file /data/db2.4/local.ns
Mon Jun 22 19:19:18.530 [initandlisten] opening db: /data/db2.4/_tmp_repairDatabase_5 local
Mon Jun 22 19:19:18.531 [initandlisten] runQuery called local.system.namespaces {}
Mon Jun 22 19:19:18.531 [initandlisten] info PageFaultRetryableSection will not yield, already locked upon reaching
Mon Jun 22 19:19:18.531 [initandlisten] query local.system.namespaces ntoreturn:0 ntoskip:0 nscanned:2 keyUpdates:0 nreturned:2 reslen:150 0ms
Mon Jun 22 19:19:18.531 [initandlisten] cloner got { name: "local.startup_log", options: { create: "startup_log", size: 10485760, capped: true } }
Mon Jun 22 19:19:18.531 [initandlisten] not ignoring collection local.startup_log
Mon Jun 22 19:19:18.531 [initandlisten] cloner got { name: "local.system.indexes" }
Mon Jun 22 19:19:18.531 [initandlisten] not cloning because system collection
Mon Jun 22 19:19:18.531 [initandlisten] really will clone: { name: "local.startup_log", options: { create: "startup_log", size: 10485760, capped: true } }
Mon Jun 22 19:19:18.531 [initandlisten] create collection local.startup_log { create: "startup_log", size: 10485760, capped: true }
Mon Jun 22 19:19:18.532 [initandlisten] allocating new ns file /data/db2.4/_tmp_repairDatabase_5/local.ns, filling with zeroes...
Mon Jun 22 19:19:18.585 [initandlisten] mmf create /data/db2.4/_tmp_repairDatabase_5/local.ns
Mon Jun 22 19:19:18.585 [initandlisten] mmf finishOpening 0x110000000 /data/db2.4/_tmp_repairDatabase_5/local.ns len:16777216
Mon Jun 22 19:19:18.586 [initandlisten] mmf create /data/db2.4/_tmp_repairDatabase_5/local.0
Mon Jun 22 19:19:18.586 [FileAllocator] allocating new datafile /data/db2.4/_tmp_repairDatabase_5/local.0, filling with zeroes...
Mon Jun 22 19:19:18.586 [FileAllocator] creating directory /data/db2.4/_tmp_repairDatabase_5/_tmp
Mon Jun 22 19:19:18.805 [FileAllocator] done allocating datafile /data/db2.4/_tmp_repairDatabase_5/local.0, size: 64MB, took 0.218 secs
Mon Jun 22 19:19:18.805 [initandlisten] mmf finishOpening 0x112000000 /data/db2.4/_tmp_repairDatabase_5/local.0 len:67108864
Mon Jun 22 19:19:18.860 [initandlisten] allocExtent local.startup_log size 10485760 0
Mon Jun 22 19:19:18.860 [initandlisten] New namespace: local.startup_log
Mon Jun 22 19:19:18.862 [initandlisten] allocExtent local.system.namespaces size 5888 0
Mon Jun 22 19:19:18.862 [initandlisten] New namespace: local.system.namespaces
Mon Jun 22 19:19:18.862 [initandlisten] cloning local.startup_log -> local.startup_log
Mon Jun 22 19:19:18.862 [initandlisten] cloning collection local.startup_log to local.startup_log on localhost with filter {}
Mon Jun 22 19:19:18.862 [initandlisten] runQuery called local.startup_log {}
Mon Jun 22 19:19:18.862 [initandlisten] query local.startup_log ntoreturn:0 ntoskip:0 nscanned:1 keyUpdates:0 nreturned:1 reslen:856 0ms
Mon Jun 22 19:19:18.863 [initandlisten] cloning collection local.system.indexes to local.system.indexes on localhost with filter { name: { $ne: "_id_" }, ns: { $nin: {} } }
Mon Jun 22 19:19:18.863 [initandlisten] runQuery called local.system.indexes { name: { $ne: "_id_" }, ns: { $nin: {} } }
Mon Jun 22 19:19:18.865 [initandlisten] local.system.indexes Assertion failure dl.a() != -1 src/mongo/db/pdfile.h 646
0x10045236b 0x10042bfbc 0x100269200 0x1002692a0 0x1002c13a8 0x1002cec5a 0x1002d064b 0x1002d0858 0x10024335e 0x1002466a2 0x1001f18fb 0x1001e9a24 0x1001e9c2d 0x10006362a 0x100038e80 0x1001e95a1 0x10003a5bc 0x1000e8b76 0x1000eaaf4 0x1000eb5be
0 mongod 0x000000010045236b _ZN5mongo15printStackTraceERSo + 43
1 mongod 0x000000010042bfbc _ZN5mongo12verifyFailedEPKcS1_j + 284
2 mongod 0x0000000100269200 _ZN5mongo11DataFileMgr7findAllERKNS_10StringDataERKNS_7DiskLocE + 968
3 mongod 0x00000001002692a0 _ZN5mongo13findTableScanEPKcRKNS_7BSONObjERKNS_7DiskLocE + 128
4 mongod 0x00000001002c13a8 _ZNK5mongo9QueryPlan9newCursorERKNS_7DiskLocEb + 292
5 mongod 0x00000001002cec5a _ZN5mongo15CursorGenerator16singlePlanCursorEv + 214
6 mongod 0x00000001002d064b _ZN5mongo15CursorGenerator8generateEv + 97
7 mongod 0x00000001002d0858 _ZN5mongo25NamespaceDetailsTransient9getCursorERKNS_10StringDataERKNS_7BSONObjES6_RKNS_24QueryPlanSelectionPolicyERKN5boost10shared_ptrIKNS_11ParsedQueryEEEbPNS_16QueryPlanSummaryE + 56
8 mongod 0x000000010024335e _ZN5mongo23queryWithQueryOptimizerEiRKSsRKNS_7BSONObjERNS_5CurOpES4_S4_RKN5boost10shared_ptrINS_11ParsedQueryEEES4_RKNS_12ChunkVersionERNS7_10scoped_ptrINS_25PageFaultRetryableSectionEEERNSG_INS_19NoPageFaultsAllowedEEERNS_7MessageE + 446
9 mongod 0x00000001002466a2 _ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_ + 5346
10 mongod 0x00000001001f18fb _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1691
11 mongod 0x00000001001e9a24 _ZN5mongo14DBDirectClient4callERNS_7MessageES2_bPSs + 112
12 mongod 0x00000001001e9c2d _ZThn72_N5mongo14DBDirectClient4callERNS_7MessageES2_bPSs + 13
13 mongod 0x000000010006362a _ZN5mongo14DBClientCursor4initEv + 304
14 mongod 0x0000000100038e80 _ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii + 180
15 mongod 0x00000001001e95a1 _ZN5mongo14DBDirectClient5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii + 79
16 mongod 0x000000010003a5bc _ZN5mongo12DBClientBase5queryEN5boost8functionIFvRNS_27DBClientCursorBatchIteratorEEEERKSsNS_5QueryEPKNS_7BSONObjEi + 98
17 mongod 0x00000001000e8b76 _ZN5mongo6Cloner4copyEPKcS2_bbbbbbNS_5QueryE + 1228
18 mongod 0x00000001000eaaf4 _ZN5mongo6Cloner2goEPKcRKNS_12CloneOptionsERSt3setISsSt4lessISsESaISsEERSsPi + 5914
19 mongod 0x00000001000eb5be _ZN5mongo6Cloner2goEPKcRSsRKSsbbbbbbPi + 254
Mon Jun 22 19:19:18.933 [initandlisten] assertion 0 assertion src/mongo/db/pdfile.h:646 ns:local.system.indexes query:{ name: { $ne: "_id_" }, ns: { $nin: {} } }
Mon Jun 22 19:19:18.933 [initandlisten] query local.system.indexes query: { name: { $ne: "_id_" }, ns: { $nin: {} } } ntoreturn:0 keyUpdates:0 exception: assertion src/mongo/db/pdfile.h:646 reslen:71 69ms
Mon Jun 22 19:19:18.939 [initandlisten] nextSafe(): { $err: "assertion src/mongo/db/pdfile.h:646" }
Mon Jun 22 19:19:18.939 [initandlisten] User Assertion: 13106:nextSafe(): { $err: "assertion src/mongo/db/pdfile.h:646" }
Mon Jun 22 19:19:18.940 [initandlisten] exception in initAndListen: 13106 nextSafe(): { $err: "assertion src/mongo/db/pdfile.h:646" }, terminating
Mon Jun 22 19:19:18.940 dbexit:
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: going to close listening sockets...
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: going to flush diaglog...
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: going to close sockets...
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: waiting for fs preallocator...
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: lock for final commit...
Mon Jun 22 19:19:18.940 [initandlisten] shutdown: final commit...
Mon Jun 22 19:19:18.940 [initandlisten] _groupCommit
Mon Jun 22 19:19:18.941 [journal] journal WRITETODATAFILES 1
Mon Jun 22 19:19:18.941 [journal] journal WRITETODATAFILES 2
Mon Jun 22 19:19:18.941 [journal] journal WRITETODATAFILES 0.173ms
Mon Jun 22 19:19:18.942 [initandlisten] groupCommit end
Mon Jun 22 19:19:18.949 [initandlisten] shutdown: closing all files...
Mon Jun 22 19:19:18.949 [initandlisten] mmf close /data/db2.4/local.ns
Mon Jun 22 19:19:18.950 [initandlisten] mmf close /data/db2.4/_tmp_repairDatabase_5/local.0
Mon Jun 22 19:19:18.950 [initandlisten] mmf close /data/db2.4/local.0
Mon Jun 22 19:19:18.950 [initandlisten] mmf close /data/db2.4/_tmp_repairDatabase_5/local.ns
Mon Jun 22 19:19:18.950 [initandlisten] closeAllFiles() finished
Mon Jun 22 19:19:18.950 [initandlisten] journalCleanup...
Mon Jun 22 19:19:18.950 [initandlisten] removeJournalFiles
Mon Jun 22 19:19:18.950 [initandlisten] removeJournalFiles end
Mon Jun 22 19:19:18.950 [initandlisten] shutdown: removing fs lock...
Mon Jun 22 19:19:18.950 [initandlisten] shutdown: groupCommitMutex
Mon Jun 22 19:19:18.950 dbexit: really exiting now
Do you have any ideas what's going on and how to fix it without drop all data?

Related

Why do I get three user outputs instead of 2 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am having a problem with the output of this code:
#!/usr/bin/perl
# Opening the file timelog.txt, the "<" indicates that the file is being opened in read mode
open(DATA, "<timelog.txt") or die "Couldn't open file timelog.txt, $!";
# Looping through each line in this file, this each line can be accesed with $_
while(<DATA>) {
# In the line ($_), we search for patters
# We first search the pattern " pts/"
$_ =~ m/ pts\//;
# We store the text before this pattern in the variable userId
$userId = "$`";
# We now search for the patter "Word Number Number:Number - Number:Number"
# This pattern is found at the end of each string
$_ =~ m/(\w+) (\d+) (\d+):(\d+) - (\d+):(\d+)/;
# The required variables, i.e. the month start hour, start minutes, end hour and end minutes are extracted
($month, $hours1, $minutes1, $hours2, $minutes2) = ($1, $3, $4, $5, $6);
# $userId." ".$month is used to concatenate the userId along with month with a space between them
# the . is used to concatenate
# If the key already exists, we increase the value of time
if(exists($store{$userId." ".$month})){
$store{$userId." ".$month} += (($hours2 - $hours1)*60) + $minutes2 - $minutes1;
} else {
# If the key does not exist we create a new key value pair
$store{$userId." ".$month} = (($hours2 - $hours1)*60) + $minutes2 - $minutes1;
}
# Note that the key is concatenation of userId and the month
}
# We now loop through the elements and print them
foreach $key (keys %store){
print "$key $store{$key} minutes\n";
}
timelog.txt:
maclawty796 pts/1 10.1.28.122 Mon Oct 24 09:18 - 09:20
maclawty796 pts/1 ip-64-134-238-2. Fri Oct 21 14:23 - 14:25
maclawty796 pts/2 10.1.28.122 Fri Oct 21 09:42 - 09:55
ehowe pts/3 10.1.28.204 Fri Oct 21 09:28 - 09:29
kho398 pts/2 10.1.28.233 Fri Oct 21 09:22 - 09:34
maclawty796 pts/1 10.1.28.122 Fri Oct 21 09:20 - 09:55
maclawty796 pts/1 75.27.188.106 Thu Oct 20 21:09 - 21:23
maclawty796 pts/1 10.1.28.120 Fri Oct 14 09:46 - 09:52
kho398 pts/2 10.1.28.124 Thu Oct 13 09:29 - 09:30
maclawty796 pts/1 10.1.28.128 Thu Oct 13 09:28 - 09:51
maclawty796 pts/2 adsl-75-30-120-1 Wed Oct 12 20:35 - 20:35
maclawty796 pts/1 75-30-120-13.lig Wed Oct 12 19:27 - 19:33
hturner pts/1 tom-nilsons-macb Wed Oct 12 13:30 - 13:32
nnt pts/2 99-59-5-115.ligh Tue Oct 11 15:51 - 15:54
nnt pts/1 hitami yamas Tue Oct 11 15:31 - 17:42
maclawty796 pts/1 leda.local Tue Oct 11 14:10 - 14:11
ehowe pts/2 10.1.28.126 Tue Oct 11 09:21 - 09:24
maclawty796 pts/2 10.1.28.123 Tue Oct 11 09:01 - 09:08
nnt pts/1 10.1.28.210 Tue Oct 11 08:53 - 12:02
nnt pts/1 hitami yamas Tue Oct 11 07:53 - 07:54
nnt pts/1 hitami yamas Tue Oct 11 07:48 - 07:52
maclawty796 pts/1 adsl-75-16-61-10 Mon Oct 10 23:18 - 23:20
nnt pts/1 99-59-5-115.ligh Mon Oct 10 22:16 - 23:11
nnt pts/1 99-59-5-115.ligh Mon Oct 10 22:09 - 22:14
nnt pts/1 99-59-5-115.ligh Mon Oct 10 21:27 - 21:31
maclawty796 pts/2 adsl-75-16-61-10 Mon Oct 10 20:46 - 20:47
nnt pts/1 99-59-5-115.ligh Mon Oct 10 20:19 - 21:22
kho398 pts/2 108-93-76-161.li Mon Oct 10 19:15 - 19:19
kho398 pts/2 108-93-76-161.li Mon Oct 10 19:09 - 19:12
jimquinn409 pts/2 10.1.8.148 Mon Oct 10 17:40 - 17:46
jimquinn409 pts/2 10.1.8.148 Mon Oct 10 17:38 - 17:39
nnt pts/1 99-59-5-115.ligh Mon Oct 10 17:19 - 20:01
jimquinn409 pts/2 10.1.8.148 Mon Oct 10 16:29 - 16:33
jimquinn409 pts/2 10.1.8.148 Mon Oct 10 16:27 - 16:28
nnt pts/1 99-59-5-115.ligh Mon Oct 10 16:01 - 17:18
nnt pts/1 99-59-5-115.ligh Mon Oct 10 15:11 - 15:59
maclawty796 pts/1 10.1.31.27 Mon Oct 10 14:16 - 14:21
johnhouston pts/2 10.1.31.220 Mon Oct 10 12:01 - 12:17
jimquinn409 pts/1 ubuntu.local Mon Oct 10 11:58 - 12:04
kho398 pts/1 10.1.28.244 Mon Oct 10 09:07 - 09:17
maclawty796 pts/1 10.1.31.27 Mon Oct 10 08:45 - 08:49
honeill pts/1 99-59-7-95.light Mon Oct 10 05:42 - 07:14
honeill pts/1 99-59-7-95.light Mon Oct 10 04:26 - 05:26
kho398 pts/1 108-93-76-161.li Sun Oct 9 23:12 - 23:13
kho398 pts/1 108-93-76-161.li Sun Oct 9 20:56 - 21:15
kho398 pts/1 108-93-76-161.li Sun Oct 9 20:54 - 20:56
kho398 pts/1 108-93-76-161.li Sun Oct 9 20:51 - 20:52
kho398 pts/2 108-93-76-161.li Sun Oct 9 20:40 - 20:48
maclawty796 pts/1 adsl-75-27-233-7 Sun Oct 9 20:30 - 20:42
kho398 pts/1 108-93-76-161.li Sun Oct 9 20:15 - 20:19
johnhouston pts/2 99-176-56-113.li Sun Oct 9 19:58 - 20:04
kho398 pts/1 108-93-76-161.li Sun Oct 9 19:48 - 20:00
kho398 pts/3 108-93-76-161.li Sun Oct 9 19:36 - 19:48
kho398 pts/3 108-93-76-161.li Sun Oct 9 19:35 - 19:36
kho398 pts/3 108-93-76-161.li Sun Oct 9 19:32 - 19:34
johnhouston pts/2 99-176-56-113.li Sun Oct 9 19:29 - 19:55
nnt pts/1 99-59-5-115.ligh Sun Oct 9 18:29 - 19:45
kho398 pts/4 108-93-76-161.li Sun Oct 9 18:27 - 19:32
johnhouston pts/3 99-176-56-113.li Sun Oct 9 17:12 - 19:28
nnt pts/2 99-59-5-115.ligh Sun Oct 9 15:38 - 18:31
nnt pts/1 99-59-5-115.ligh Sun Oct 9 15:36 - 18:29
maclawty796 pts/1 10.1.31.27 Fri Oct 7 13:55 - 14:09
maclawty796 pts/1 10.1.31.27 Fri Oct 7 13:39 - 13:41
johnhouston pts/1 99-176-56-113.li Fri Oct 7 12:07 - 13:29
edrodri5722 pts/1 10.1.28.171 Fri Oct 7 09:49 - 09:52
kho398 pts/1 10.1.28.116 Fri Oct 7 09:46 - 09:48
jimquinn409 pts/1 10.1.28.200 Fri Oct 7 09:39 - 09:40
jimquinn409 pts/3 10.1.28.200 Fri Oct 7 08:56 - 09:42
nnt pts/3 hitami yamas Fri Oct 7 07:52 - 07:59
nnt pts/2 99-59-5-115.ligh Fri Oct 7 07:15 - 09:18
nnt pts/1 99-59-5-115.ligh Fri Oct 7 07:13 - 09:30
kho398 pts/1 108-93-76-161.li Fri Oct 7 01:15 - 01:17
kho398 pts/1 108-93-76-161.li Fri Oct 7 01:14 - 01:15
kho398 pts/1 108-93-76-161.li Fri Oct 7 01:12 - 01:13
kho398 pts/2 108-93-76-161.li Fri Oct 7 01:06 - 01:12
kho398 pts/2 108-93-76-161.li Fri Oct 7 01:04 - 01:05
kho398 pts/2 108-93-76-161.li Fri Oct 7 00:53 - 01:04
johnhouston pts/1 99-176-56-113.li Fri Oct 7 00:25 - 01:08
edrodri5722 pts/2 10.1.31.151 Thu Oct 6 22:27 - 22:48
honeill pts/1 jst-pc.local Thu Oct 6 22:19 - 22:53
nnt pts/1 99-59-5-115.ligh Thu Oct 6 19:44 - 19:54
honeill pts/6 jst-pc.local Thu Oct 6 19:43 - 22:19
edrodri5722 pts/5 10.1.31.151 Thu Oct 6 19:40 - 22:40
ehowe pts/2 ubuntu.local Thu Oct 6 19:40 - 20:36
hturner pts/2 97-90-193-108.dh Thu Oct 6 19:12 - 19:22
jimquinn409 pts/3 10.1.8.129 Thu Oct 6 18:21 - 22:54
jimquinn409 pts/5 10.1.8.129 Thu Oct 6 17:59 - 18:08
jimquinn409 pts/5 10.1.8.129 Thu Oct 6 17:55 - 17:58
johnhouston pts/4 99-176-56-113.li Thu Oct 6 17:13 - 22:15
johnhouston pts/4 99-176-56-113.li Thu Oct 6 17:09 - 17:12
johnhouston pts/4 99-176-56-113.li Thu Oct 6 17:07 - 17:08
jimquinn409 pts/3 ubuntu.local Thu Oct 6 16:56 - 18:14
hturner pts/2 97-90-193-108.dh Thu Oct 6 16:43 - 18:43
nnt pts/1 99-59-5-115.ligh Thu Oct 6 16:42 - 19:43
jimquinn409 pts/1 ubuntu.local Thu Oct 6 16:16 - 16:25
hturner pts/4 108-67-52-153.li Thu Oct 6 15:18 - 16:10
hturner pts/3 108-67-52-153.li Thu Oct 6 15:17 - 16:10
honeill pts/3 10.0.18.162 Thu Oct 6 14:00 - 14:15
hturner pts/2 10.1.13.227 Thu Oct 6 13:01 - 15:42
hturner pts/1 10.1.13.227 Thu Oct 6 13:01 - 15:41
maclawty796 pts/6 10.1.31.27 Thu Oct 6 10:02 - 10:11
hturner pts/5 tom-nilsons-macb Thu Oct 6 10:00 - 12:17
hturner pts/4 tom-nilsons-macb Thu Oct 6 09:58 - 12:17
edrodri5722 pts/4 10.1.28.135 Thu Oct 6 09:51 - 09:52
jimquinn409 pts/1 10.1.28.126 Thu Oct 6 09:49 - 12:06
jimquinn409 pts/4 10.1.28.126 Thu Oct 6 09:41 - 09:41
jimquinn409 pts/4 10.1.28.126 Thu Oct 6 09:29 - 09:35
hturner pts/2 10.1.28.167 Thu Oct 6 09:28 - 12:05
mvan682 pts/8 10.1.28.119 Thu Oct 6 09:17 - 09:18
honeill pts/7 10.1.28.163 Thu Oct 6 09:15 - 09:57
jimquinn409 pts/2 10.1.28.126 Thu Oct 6 09:15 - 09:21
jimquinn409 pts/7 10.1.28.126 Thu Oct 6 09:13 - 09:14
jimquinn409 pts/7 10.1.28.126 Thu Oct 6 09:08 - 09:11
ehowe pts/6 10.1.28.155 Thu Oct 6 09:07 - 09:28
maclawty796 pts/5 10.1.28.123 Thu Oct 6 09:05 - 09:28
maclawty796 pts/4 10.1.28.123 Thu Oct 6 09:04 - 09:28
hturner pts/3 10.1.28.167 Thu Oct 6 09:01 - 12:06
honeill pts/2 10.1.28.163 Thu Oct 6 08:59 - 09:14
edrodri5722 pts/1 10.1.28.135 Thu Oct 6 08:56 - 09:47
ehowe pts/2 10.1.28.155 Thu Oct 6 08:49 - 08:54
maclawty796 pts/1 10.1.31.27 Thu Oct 6 08:24 - 08:53
edrodri5722 pts/1 76-202-53-118.li Thu Oct 6 05:11 - 05:23
kho398 pts/1 108-93-76-161.li Thu Oct 6 02:18 - 02:23
kho398 pts/2 108-93-76-161.li Thu Oct 6 00:36 - 02:04
ehowe pts/1 10.0.17.151 Thu Oct 6 00:29 - 00:41
jimquinn409 pts/3 76-202-52-236.li Thu Oct 6 00:21 - 02:28
ehowe pts/1 10.0.17.151 Thu Oct 6 00:11 - 00:22
ehowe pts/1 10.0.17.180 Thu Oct 6 00:05 - 00:11
ehowe pts/1 10.0.17.151 Wed Oct 5 23:17 - 23:26
ehowe pts/1 10.1.6.218 Wed Oct 5 22:06 - 22:20
ehowe pts/1 10.1.6.218 Wed Oct 5 21:38 - 21:48
maclawty796 pts/2 adsl-75-16-59-16 Wed Oct 5 21:04 - 21:07
ehowe pts/3 10.1.6.218 Wed Oct 5 20:53 - 21:28
ehowe pts/2 10.1.6.218 Wed Oct 5 20:46 - 21:02
maclawty796 pts/3 adsl-75-16-59-16 Wed Oct 5 19:20 - 20:04
nnt pts/2 99-59-5-115.ligh Wed Oct 5 19:09 - 20:22
kho398 pts/1 108-93-76-161.li Wed Oct 5 19:00 - 21:31
maclawty796 pts/1 10.1.31.27 Wed Oct 5 15:27 - 16:28
maclawty796 pts/1 :0.0 Wed Oct 5 15:10 - 15:25
maclawty796 pts/1 10.1.31.27 Wed Oct 5 13:34 - 13:42
maclawty796 pts/1 10.1.31.27 Wed Oct 5 13:29 - 13:30
nnt pts/2 99-59-5-115.ligh Wed Oct 5 10:51 - 13:15
nnt pts/1 166.205.141.16 Wed Oct 5 09:28 - 12:07
honeill pts/4 76-202-53-118.li Tue Oct 4 21:12 - 22:47
honeill pts/4 76-202-53-118.li Tue Oct 4 21:02 - 21:11
edrodri5722 pts/1 76-202-53-118.li Tue Oct 4 20:46 - 22:48
jimquinn409 pts/1 10.1.8.233 Tue Oct 4 20:37 - 20:43
edrodri5722 pts/4 76-202-53-118.li Tue Oct 4 20:29 - 20:32
edrodri5722 pts/4 76-202-53-118.li Tue Oct 4 20:02 - 20:09
edrodri5722 pts/3 76-202-53-118.li Tue Oct 4 19:43 - 21:51
nnt pts/2 166.205.141.16 Tue Oct 4 19:19 - 21:54
nnt pts/1 166.205.141.16 Tue Oct 4 18:29 - 20:33
nnt pts/3 108-195-113-206. Tue Oct 4 16:47 - 17:18
maclawty796 pts/2 10.1.31.27 Tue Oct 4 16:43 - 16:59
maclawty796 pts/2 10.1.31.27 Tue Oct 4 16:27 - 16:32
maclawty796 pts/3 10.1.31.27 Tue Oct 4 16:26 - 16:26
maclawty796 pts/2 10.1.31.27 Tue Oct 4 15:05 - 16:26
nnt pts/1 108-195-113-206. Tue Oct 4 14:40 - 17:32
kho398 pts/1 108-93-76-161.li Tue Oct 4 02:22 - 03:08
edrodri5722 pts/1 76-202-53-118.li Mon Oct 3 22:32 - 22:36
edrodri5722 pts/1 76-202-53-118.li Mon Oct 3 20:45 - 22:31
edrodri5722 pts/1 76-202-53-118.li Mon Oct 3 20:44 - 20:44
nnt pts/1 108-195-113-206. Mon Oct 3 16:07 - 19:54
jimquinn409 pts/1 10.1.28.142 Mon Oct 3 09:04 - 09:47
kho398 pts/1 10.1.28.199 Mon Oct 3 09:01 - 09:02
kho398 pts/1 108-93-76-161.li Sun Oct 2 22:27 - 22:29
kho398 pts/1 108-93-76-161.li Sun Oct 2 19:18 - 19:23
kho398 pts/1 108-93-76-161.li Sun Oct 2 18:51 - 19:17
edrodri5722 pts/1 76-202-53-118.li Sun Oct 2 18:28 - 18:47
kho398 pts/1 108-93-76-161.li Sun Oct 2 17:04 - 18:16
maclawty796 pts/1 adsl-75-28-65-14 Sat Oct 1 21:15 - 21:32
maclawty796 pts/1 10.1.31.27 Fri Sep 30 15:19 - 15:20
hturner pts/1 108-67-52-153.li Fri Sep 30 11:06 - 11:13
mvan682 pts/4 10.1.28.119 Fri Sep 30 09:50 - 09:50
kho398 pts/3 10.1.28.199 Fri Sep 30 09:49 - 09:50
kho398 pts/3 10.1.28.199 Fri Sep 30 09:29 - 09:46
mvan682 pts/4 10.1.28.121 Fri Sep 30 09:04 - 09:12
kho398 pts/3 10.1.28.199 Fri Sep 30 09:02 - 09:21
jimquinn409 pts/2 10.1.28.142 Fri Sep 30 09:02 - 11:27
mvan682 pts/2 10.1.28.121 Fri Sep 30 09:02 - 09:02
kho398 pts/2 10.1.28.199 Fri Sep 30 09:00 - 09:01
maclawty796 pts/1 10.1.28.212 Fri Sep 30 08:57 - 09:51
maclawty796 pts/1 adsl-75-28-22-24 Thu Sep 29 20:16 - 20:35
nnt pts/1 108-195-113-206. Thu Sep 29 16:24 - 17:14
jimquinn409 pts/2 ubuntu.local Thu Sep 29 15:24 - 17:40
maclawty796 pts/2 enoch-tang-ima Thu Sep 29 14:21 - 14:22
maclawty796 pts/2 10.1.31.27 Thu Sep 29 14:08 - 14:09
johnhouston pts/2 187.34 -32-94.dhcp Thu Sep 29 13:25 - 13:40
johnhouston pts/1 187.34 -32-94.dhcp Thu Sep 29 13:10 - 15:25
mvan682 pts/3 10.1.28.119 Thu Sep 29 09:47 - 09:48
kho398 pts/2 10.1.28.103 Thu Sep 29 09:47 - 09:51
kho398 pts/2 10.1.28.103 Thu Sep 29 09:44 - 09:46
maclawty796 pts/1 10.1.28.105 Thu Sep 29 09:43 - 09:54
mvan682 pts/3 10.1.28.119 Thu Sep 29 09:23 - 09:24
edrodri5722 pts/2 10.1.28.199 Thu Sep 29 09:20 - 09:23
jimquinn409 pts/1 10.1.28.142 Thu Sep 29 09:20 - 09:28
kho398 pts/3 10.1.28.103 Thu Sep 29 09:08 - 09:15
ehowe pts/2 10.1.28.106 Thu Sep 29 09:07 - 09:10
maclawty796 pts/1 10.1.28.105 Thu Sep 29 09:05 - 09:15
ehowe pts/1 10.1.28.106 Thu Sep 29 08:51 - 08:52
ehowe pts/1 10.1.28.225 Thu Sep 29 08:47 - 08:48
maclawty796 pts/2 10.1.31.27 Thu Sep 29 08:41 - 08:56
ehowe pts/1 10.1.28.225 Thu Sep 29 08:40 - 08:46
honeill pts/1 99-59-7-95.light Thu Sep 29 03:50 - 03:56
edrodri5722 pts/1 76-202-53-118.li Thu Sep 29 01:03 - 01:04
edrodri5722 pts/1 76-202-53-118.li Thu Sep 29 00:59 - 01:03
johnhouston pts/1 187.34 -32-94.dhcp Thu Sep 29 00:49 - 00:55
johnhouston pts/1 187.34 -32-94.dhcp Wed Sep 28 23:40 - 23:43
ehowe pts/1 10.0.17.91 Wed Sep 28 21:57 - 22:12
ehowe pts/1 10.0.17.91 Wed Sep 28 21:23 - 21:53
kho398 pts/2 10.1.8.83 Wed Sep 28 20:16 - 20:18
kho398 pts/2 10.1.8.83 Wed Sep 28 20:13 - 20:13
kho398 pts/2 10.1.8.83 Wed Sep 28 20:10 - 20:11
kho398 pts/2 10.1.8.83 Wed Sep 28 20:06 - 20:07
kho398 pts/2 10.1.8.83 Wed Sep 28 19:53 - 20:00
ehowe pts/1 10.0.17.91 Wed Sep 28 19:17 - 21:11
jimquinn409 pts/1 10.1.8.85 Wed Sep 28 15:25 - 16:22
maclawty796 pts/1 10.1.31.27 Wed Sep 28 14:32 - 14:37
kho398 pts/1 108-93-76-161.li Wed Sep 28 00:28 - 01:05
kho398 pts/1 108-93-76-161.li Wed Sep 28 00:25 - 00:28
maclawty796 pts/1 75.16.62.214 Tue Sep 27 22:32 - 22:44
nnt pts/1 enoch-tang-ima Tue Sep 27 16:26 - 16:26
nnt pts/2 psc147-04-4.loca Tue Sep 27 15:42 - 16:22
johnhouston pts/1 psc147-04-3.loca Tue Sep 27 15:40 - 16:22
maclawty796 pts/1 psc147-04-3.loca Tue Sep 27 15:37 - 15:37
maclawty796 pts/1 psc147-04.local Tue Sep 27 15:26 - 15:26
hturner pts/1 10.1.13.49 Tue Sep 27 12:52 - 12:58
hturner pts/1 10.1.13.49 Tue Sep 27 12:50 - 12:51
jimquinn409 pts/2 10.1.31.27 Tue Sep 27 10:06 - 10:06
honeill pts/2 10.1.31.27 Tue Sep 27 10:05 - 10:06
maclawty796 pts/1 10.1.31.27 Tue Sep 27 10:04 - 10:07
maclawty796 pts/2 10.1.28.120 Tue Sep 27 09:42 - 09:52
edrodri5722 pts/1 10.1.28.207 Tue Sep 27 09:41 - 09:46
mvan682 pts/1 10.1.28.157 Tue Sep 27 09:39 - 09:39
mvan682 pts/1 10.1.28.157 Tue Sep 27 09:33 - 09:37
maclawty796 pts/1 10.1.31.27 Tue Sep 27 08:37 - 08:54
maclawty796 pts/1 adsl-75-30-121-1 Mon Sep 26 22:51 - 23:06
maclawty796 pts/1 75-30-121-143.li Mon Sep 26 22:44 - 22:49
edrodri5722 pts/2 10.1.31.27 Mon Sep 26 12:14 - 12:14
edrodri5722 pts/2 10.1.31.27 Mon Sep 26 12:13 - 12:13
maclawty796 pts/1 10.1.31.27 Mon Sep 26 12:11 - 12:14
maclawty796 pts/1 10.1.28.154 Mon Sep 26 09:55 - 09:55
I do not know why I am getting 3 outputs for each user (each should be just 2) being the third one an empty one.
Please make a small change to your code for debug purpose:
at very begin add
use strict;
use warnings;
and output your captured data
# The required variables, i.e. the month start hour, start minutes, end hour and end minutes are extracted
my ($month, $hours1, $minutes1, $hours2, $minutes2) = ($1, $3, $4, $5, $6);
my $format = "DEBUG: %-25s %3s %02d:%02d %02d:%02d\n";
printf $format,$userId, $month, $hours1, $minutes1, $hours2, $minutes2;
# $userId." ".$month is used to concatenate the userId along with month with a space between them
Debug information gives you a clue where the problem is originated from and you will figure out the direction how to correct it.
NOTE: your code is flowed as it does not take into an account when login crosses midnight hour -- computation will get negative time
The code after a slight modification could look like following (midnight issue still present)
use strict;
use warnings;
use feature 'say';
my $fname = shift || 'timelog.txt';
my %store;
my $re = qr|(\w+)\s+pts/\d\s+(.*?)\s+\w{3} (\w{3}) (\d+) (\d+):(\d+) - (\d+):(\d+)|;
# Opening the file timelog.txt, the "<" indicates that the file is being opened in read mode
open(DATA, '<', $fname)
or die "Couldn't open file timelog.txt, $!";
while(<DATA>) {
next unless /$re/;
my($userId,$host,$month,$hours1,$minutes1,$hours2,$minutes2) = ($1,$2,$3,$4,$5,$6,$7);
# $userId." ".$month is used to concatenate the userId along with month with a space between them
# the . is used to concatenate
# If the key already exists, we increase the value of time
if(exists($store{$userId." ".$month})){
$store{$userId." ".$month} += (($hours2 - $hours1)*60) + $minutes2 - $minutes1;
} else {
# If the key does not exist we create a new key value pair
$store{$userId." ".$month} = (($hours2 - $hours1)*60) + $minutes2 - $minutes1;
}
# Note that the key is concatenation of userId and the month
}
# We now loop through the elements and print them
foreach my $key (sort keys %store){
printf "%-25s - %6d minutes\n", $key, $store{$key};
}
Final output
edrodri5722 Sep - -959 minutes
ehowe Oct - 1020 minutes
ehowe Sep - 2523 minutes
honeill Oct - 2883 minutes
honeill Sep - -60 minutes
hturner Oct - 1080 minutes
hturner Sep - 1440 minutes
jimquinn409 Oct - 8521 minutes
jimquinn409 Sep - -3955 minutes
johnhouston Oct - -540 minutes
johnhouston Sep - 1323 minutes
kho398 Oct - 1080 minutes
kho398 Sep - -4378 minutes
maclawty796 Oct - 9840 minutes
maclawty796 Sep - 3182 minutes
mvan682 Sep - -240 minutes
nnt Oct - 12792 minutes
nnt Sep - 542 minutes
Reference:
open,
regex,
Perl regular expression quick start

i can't receive any email if enabled email forwarding

if I enabled email forwarding, I can't receive any email but when I disabled email forwarding. Then webmail working fine. Anyone, please look into email logs? I don't see any sending and receiving problems. when email forwarding disabled on cyberpanel.
This problem only appear after enabling email forwarding.
Mar 29 07:14:01 blastoff postfix/bounce[2809]: 3DC8B3410DD: sender non-delivery notification: C9CED3410DE
Mar 29 07:14:01 blastoff postfix/qmgr[1082]: 3DC8B3410DD: removed
Mar 29 07:14:01 blastoff postfix/smtp[2934]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4023:c03::1b]:25: Network is unreachable
Mar 29 07:14:02 blastoff postfix/smtp[2934]: C9CED3410DE: to=<riadloud#gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.137.26]:25, delay=0.86, delays=0.01/0.07/0.36/0.42, dsn=2.0.0, status=sent (250 2.0.0 OK 1617002042 i21si16857578otj.220 - gsmtp)
Mar 29 07:14:02 blastoff postfix/qmgr[1082]: C9CED3410DE: removed
Mar 29 07:14:32 blastoff dovecot: imap-login: Login: user=<riad#blastoff.us>, method=PLAIN, rip=::1, lip=::1, mpid=2967, TLS, session=<QfcVoqe+6pUAAAAAAAAAAAAAAAAAAAAB>
Mar 29 07:14:32 blastoff dovecot: imap(riad#blastoff.us)<2967><QfcVoqe+6pUAAAAAAAAAAAAAAAAAAAAB>: Logged out in=89 out=1045 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Mar 29 07:16:32 blastoff dovecot: imap-login: Login: user=<riad#blastoff.us>, method=PLAIN, rip=::1, lip=::1, mpid=3043, TLS, session=<b41Aqae+7JUAAAAAAAAAAAAAAAAAAAAB>
Mar 29 07:16:32 blastoff dovecot: imap(riad#blastoff.us)<3043><b41Aqae+7JUAAAAAAAAAAAAAAAAAAAAB>: Logged out in=89 out=1045 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Mar 29 07:17:18 blastoff postfix/anvil[2916]: statistics: max connection rate 1/60s for (smtp:209.85.217.53) at Mar 29 07:13:56
Mar 29 07:17:18 blastoff postfix/anvil[2916]: statistics: max connection count 1 for (smtp:209.85.217.53) at Mar 29 07:13:56
Mar 29 07:17:18 blastoff postfix/anvil[2916]: statistics: max cache size 1 at Mar 29 07:13:56
Mar 29 07:17:24 blastoff dovecot: imap-login: Login: user=<riad#blastoff.us>, method=PLAIN, rip=::1, lip=::1, mpid=3087, TLS, session=<3BlfrKe+7pUAAAAAAAAAAAAAAAAAAAAB>
Mar 29 07:17:24 blastoff dovecot: imap(riad#blastoff.us)<3087><3BlfrKe+7pUAAAAAAAAAAAAAAAAAAAAB>: Logged out in=240 out=1300 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Mar 29 07:18:17 blastoff spamd[3146]: logger: removing stderr method
Mar 29 07:18:17 blastoff spamd[3148]: config: no rules were found! Do you need to run 'sa-update'?
Mar 29 07:18:18 blastoff spamd[3146]: child process [3148] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Mar 29 07:18:19 blastoff spamd[3150]: logger: removing stderr method
Mar 29 07:18:19 blastoff spamd[3152]: config: no rules were found! Do you need to run 'sa-update'?
Mar 29 07:18:20 blastoff spamd[3150]: child process [3152] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Mar 29 07:18:21 blastoff spamd[3156]: logger: removing stderr method
Mar 29 07:18:21 blastoff spamd[3158]: config: no rules were found! Do you need to run 'sa-update'?
Mar 29 07:18:22 blastoff spamd[3156]: child process [3158] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Mar 29 07:18:23 blastoff spamd[3159]: logger: removing stderr method
Mar 29 07:18:23 blastoff spamd[3161]: config: no rules were found! Do you need to run 'sa-update'?
Mar 29 07:18:24 blastoff spamd[3159]: child process [3161] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Mar 29 07:18:24 blastoff spamd[3162]: logger: removing stderr method
Mar 29 07:18:24 blastoff spamd[3164]: config: no rules were found! Do you need to run 'sa-update'?
Mar 29 07:18:25 blastoff spamd[3162]: child process [3164] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Mar 29 07:18:32 blastoff dovecot: imap-login: Login: user=<riad#blastoff.us>, method=PLAIN, rip=::1, lip=::1, mpid=3176, TLS, session=<qhxjsKe+8JUAAAAAAAAAAAAAAAAAAAAB>
Mar 29 07:18:32 blastoff dovecot: imap(riad#blastoff.us)<3176><qhxjsKe+8JUAAAAAAAAAAAAAAAAAAAAB>: Logged out in=89 out=1053 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Mar 29 07:19:15 blastoff postfix/smtpd[3197]: connect from mail-vs1-f45.google.com[209.85.217.45]
Mar 29 07:19:15 blastoff postfix/smtpd[3197]: 9043434088F: client=mail-vs1-f45.google.com[209.85.217.45]
Mar 29 07:19:15 blastoff postfix/smtpd[3197]: warning: connect to /var/log/policyServerSocket: No such file or directory
Mar 29 07:19:16 blastoff postfix/smtpd[3197]: warning: connect to /var/log/policyServerSocket: No such file or directory
Mar 29 07:19:16 blastoff postfix/smtpd[3197]: warning: problem talking to server /var/log/policyServerSocket: No such file or directory
Mar 29 07:19:16 blastoff postfix/cleanup[3201]: 9043434088F: hold: header Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45])??by mail.blastoff.us (Postfix) with ESMTPS id 9043434088F??for <riad#blastoff.us>; Mon, 29 Mar 2021 07:19:15 +0000 (UTC from mail-vs1-f45.google.com[209.85.217.45]; from=<riadloud#gmail.com> to=<riad#blastoff.us> proto=ESMTP helo=<mail-vs1-f45.google.com>
Mar 29 07:19:16 blastoff postfix/cleanup[3201]: 9043434088F: message-id=<CACGWsS=QumtoJMTYX49XNFv7Kbk_-+xhJ4TrZdFezAytvToTow#mail.gmail.com>
Mar 29 07:19:16 blastoff opendkim[920]: 9043434088F: s=20161025 d=gmail.com SSL
Mar 29 07:19:16 blastoff postfix/smtpd[3197]: disconnect from mail-vs1-f45.google.com[209.85.217.45] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Mar 29 07:19:17 blastoff postfix/qmgr[1082]: 07B043410DD: from=<riadloud#gmail.com>, size=2541, nrcpt=2 (queue active)
Mar 29 07:19:19 blastoff postfix/pipe[3212]: 07B043410DD: to=<riad#blastoff.us>, relay=spamassassin, delay=3.7, delays=1.6/0.01/0/2, dsn=5.3.0, status=bounced (command line usage error. Command output: lda: Fatal: Unknown argument: unix Usage: dovecot-lda [-c <config file>] [-d <username>] [-p <path>] [-m <mailbox>] [-e] [-k] [-f <envelope sender>] [-a <original envelope recipient>] [-r <final envelope recipient>] )
Mar 29 07:19:19 blastoff postfix/pipe[3213]: 07B043410DD: to=<riadshout#gmail.com>, orig_to=<riad#blastoff.us>, relay=spamassassin, delay=3.7, delays=1.6/0.02/0/2, dsn=5.3.0, status=bounced (command line usage error. Command output: lda: Fatal: Unknown argument: unix Usage: dovecot-lda [-c <config file>] [-d <username>] [-p <path>] [-m <mailbox>] [-e] [-k] [-f <envelope sender>] [-a <original envelope recipient>] [-r <final envelope recipient>] )
Mar 29 07:19:19 blastoff postfix/cleanup[3201]: 3AEDA3410DE: message-id=<20210329071919.3AEDA3410DE#mail.blastoff.us>
Mar 29 07:19:19 blastoff postfix/bounce[3217]: 07B043410DD: sender non-delivery notification: 3AEDA3410DE
Mar 29 07:19:19 blastoff postfix/qmgr[1082]: 3AEDA3410DE: from=<>, size=6095, nrcpt=1 (queue active)
Mar 29 07:19:19 blastoff postfix/qmgr[1082]: 07B043410DD: removed
Mar 29 07:19:19 blastoff postfix/smtp[3220]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4023:c03::1a]:25: Network is unreachable
Mar 29 07:19:19 blastoff postfix/smtp[3220]: 3AEDA3410DE: to=<riadloud#gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.137.26]:25, delay=0.67, delays=0/0.02/0.29/0.35, dsn=2.0.0, status=sent (250 2.0.0 OK 1617002359 g9si17981450plj.221 - gsmtp)
Mar 29 07:19:19 blastoff postfix/qmgr[1082]: 3AEDA3410DE: removed
There are many configuration issues here.
The one that is causing the reject is:
command line usage error. Command output: lda: Fatal: Unknown argument: unix Usage: dovecot-lda [-c <config file>] [-d <username>] [-p <path>]
But there are also spamassassin issues (no rules found) and other milter issues (/var/log/policyServerSocket missing).
It doesn’t look like a forwarding issue but a general misconfiguration issue.
It is quite difficult to provide a precise advice here, you should review the whole configuration with someone familiar with this stuff.

freeradius daloradius authentication failure

i followed this tutorial to install freeradius and dalo radius for the raspberry pi:
http://www.binaryheartbeat.net/2013/12/raspberry-pi-based-freeradius-server.html
i tested the file authentication and it worked fine but after installing daloradius and switching to MySQL authnetications fail for unknown reasons
here is freeradius output that occurs when trying to authenticate a user:
rad_recv: Access-Request packet from host 192.168.1.1 port 32779, id=216, length=172
User-Name = "ccc"
State = 0xf9775519ff7f4c9188c14494359a170f
EAP-Message = 0x0208005b190017030100500d2898ca35aa9fa9e4febd8816c9e6deda71960fe5692b7c3d0499f2b5bba6b531483e373e14f8aff517aa081e214edc98e2c8bb22d16a961ecff4f498d20d152535b4d11ace1484b985bd2501ade77b
Service-Type = Framed-User
Framed-MTU = 1420
NAS-IP-Address = 192.168.1.1
Message-Authenticator = 0x49fc781b8a152fbec467b2c1f275a1a1
Tue Dec 29 18:38:47 2015 : Info: # Executing section authorize from file /etc/freeradius/sites-enabled/default
Tue Dec 29 18:38:47 2015 : Info: +group authorize {
Tue Dec 29 18:38:47 2015 : Info: ++[preprocess] = ok
Tue Dec 29 18:38:47 2015 : Info: ++[chap] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[mschap] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[digest] = noop
Tue Dec 29 18:38:47 2015 : Info: [suffix] No '#' in User-Name = "ccc", looking up realm NULL
Tue Dec 29 18:38:47 2015 : Info: [suffix] No such realm "NULL"
Tue Dec 29 18:38:47 2015 : Info: ++[suffix] = noop
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP packet type response id 8 length 91
Tue Dec 29 18:38:47 2015 : Info: [eap] Continuing tunnel setup.
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = ok
Tue Dec 29 18:38:47 2015 : Info: +} # group authorize = ok
Tue Dec 29 18:38:47 2015 : Info: Found Auth-Type = EAP
Tue Dec 29 18:38:47 2015 : Info: # Executing group from file /etc/freeradius/sites-enabled/default
Tue Dec 29 18:38:47 2015 : Info: +group authenticate {
Tue Dec 29 18:38:47 2015 : Info: [eap] Request found, released from the list
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP/peap
Tue Dec 29 18:38:47 2015 : Info: [eap] processing type peap
Tue Dec 29 18:38:47 2015 : Info: [peap] processing EAP-TLS
Tue Dec 29 18:38:47 2015 : Info: [peap] eaptls_verify returned 7
Tue Dec 29 18:38:47 2015 : Info: [peap] Done initial handshake
Tue Dec 29 18:38:47 2015 : Info: [peap] eaptls_process returned 7
Tue Dec 29 18:38:47 2015 : Info: [peap] EAPTLS_OK
Tue Dec 29 18:38:47 2015 : Info: [peap] Session established. Decoding tunneled attributes.
Tue Dec 29 18:38:47 2015 : Info: [peap] Peap state phase2
Tue Dec 29 18:38:47 2015 : Info: [peap] EAP type mschapv2
Tue Dec 29 18:38:47 2015 : Info: [peap] Got tunneled request
EAP-Message = 0x0208003e1a0208003931461c2f1334a4b7bab38912e9d82dd97b000000000000000070fb7810a938a00d884f17dc01b62eaa7dde9fbb7ab2cf4200636363
server {
Tue Dec 29 18:38:47 2015 : Info: [peap] Setting User-Name to ccc
Sending tunneled request
EAP-Message = 0x0208003e1a0208003931461c2f1334a4b7bab38912e9d82dd97b000000000000000070fb7810a938a00d884f17dc01b62eaa7dde9fbb7ab2cf4200636363
FreeRADIUS-Proxied-To = 127.0.0.1
User-Name = "ccc"
State = 0x4bb6eef44bbef48a7072f4e023895561
server inner-tunnel {
Tue Dec 29 18:38:47 2015 : Info: # Executing section authorize from file /etc/freeradius/sites-enabled/inner-tunnel
Tue Dec 29 18:38:47 2015 : Info: +group authorize {
Tue Dec 29 18:38:47 2015 : Info: ++[chap] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[mschap] = noop
Tue Dec 29 18:38:47 2015 : Info: [suffix] No '#' in User-Name = "ccc", looking up realm NULL
Tue Dec 29 18:38:47 2015 : Info: [suffix] No such realm "NULL"
Tue Dec 29 18:38:47 2015 : Info: ++[suffix] = noop
Tue Dec 29 18:38:47 2015 : Info: ++update control {
Tue Dec 29 18:38:47 2015 : Info: ++} # update control = noop
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP packet type response id 8 length 62
Tue Dec 29 18:38:47 2015 : Info: [eap] No EAP Start, assuming it's an on-going EAP conversation
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = updated
Tue Dec 29 18:38:47 2015 : Info: ++[files] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[expiration] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[logintime] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[pap] = noop
Tue Dec 29 18:38:47 2015 : Info: +} # group authorize = updated
Tue Dec 29 18:38:47 2015 : Info: Found Auth-Type = EAP
Tue Dec 29 18:38:47 2015 : Info: # Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
Tue Dec 29 18:38:47 2015 : Info: +group authenticate {
Tue Dec 29 18:38:47 2015 : Info: [eap] Request found, released from the list
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP/mschapv2
Tue Dec 29 18:38:47 2015 : Info: [eap] processing type mschapv2
Tue Dec 29 18:38:47 2015 : Info: [mschapv2] # Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
Tue Dec 29 18:38:47 2015 : Info: [mschapv2] +group MS-CHAP {
Tue Dec 29 18:38:47 2015 : Info: [mschap] No Cleartext-Password configured. Cannot create LM-Password.
Tue Dec 29 18:38:47 2015 : Info: [mschap] No Cleartext-Password configured. Cannot create NT-Password.
Tue Dec 29 18:38:47 2015 : Info: [mschap] Creating challenge hash with username: ccc
Tue Dec 29 18:38:47 2015 : Info: [mschap] Client is using MS-CHAPv2 for ccc, we need NT-Password
Tue Dec 29 18:38:47 2015 : Info: [mschap] FAILED: No NT/LM-Password. Cannot perform authentication.
Tue Dec 29 18:38:47 2015 : Info: [mschap] FAILED: MS-CHAP2-Response is incorrect
Tue Dec 29 18:38:47 2015 : Info: ++[mschap] = reject
Tue Dec 29 18:38:47 2015 : Info: +} # group MS-CHAP = reject
Tue Dec 29 18:38:47 2015 : Info: [eap] Freeing handler
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = reject
Tue Dec 29 18:38:47 2015 : Info: +} # group authenticate = reject
Tue Dec 29 18:38:47 2015 : Info: Failed to authenticate the user.
Tue Dec 29 18:38:47 2015 : Info: Using Post-Auth-Type REJECT
Tue Dec 29 18:38:47 2015 : Info: # Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
Tue Dec 29 18:38:47 2015 : Info: +group REJECT {
Tue Dec 29 18:38:47 2015 : Info: [attr_filter.access_reject] expand: %{User-Name} -> ccc
Tue Dec 29 18:38:47 2015 : Debug: attr_filter: Matched entry DEFAULT at line 11
Tue Dec 29 18:38:47 2015 : Info: ++[attr_filter.access_reject] = updated
Tue Dec 29 18:38:47 2015 : Info: +} # group REJECT = updated
} # server inner-tunnel
Tue Dec 29 18:38:47 2015 : Info: [peap] Got tunneled reply code 3
MS-CHAP-Error = "\010E=691 R=1"
EAP-Message = 0x04080004
Message-Authenticator = 0x00000000000000000000000000000000
Tue Dec 29 18:38:47 2015 : Info: [peap] Got tunneled reply RADIUS code 3
MS-CHAP-Error = "\010E=691 R=1"
EAP-Message = 0x04080004
Message-Authenticator = 0x00000000000000000000000000000000
Tue Dec 29 18:38:47 2015 : Info: [peap] Tunneled authentication was rejected.
Tue Dec 29 18:38:47 2015 : Info: [peap] FAILURE
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = handled
Tue Dec 29 18:38:47 2015 : Info: +} # group authenticate = handled
Sending Access-Challenge of id 216 to 192.168.1.1 port 32779
EAP-Message = 0x0109002b190017030100205991bfd8f9e7f70794477d653c848e8b443626b3b935a5b3f049ac7af1534d3e
Message-Authenticator = 0x00000000000000000000000000000000
State = 0xf9775519fe7e4c9188c14494359a170f
Tue Dec 29 18:38:47 2015 : Info: Finished request 7.
Tue Dec 29 18:38:47 2015 : Debug: Going to the next request
Tue Dec 29 18:38:47 2015 : Debug: Waking up in 0.4 seconds.
rad_recv: Access-Request packet from host 192.168.1.1 port 32779, id=217, length=124
User-Name = "ccc"
State = 0xf9775519fe7e4c9188c14494359a170f
EAP-Message = 0x0209002b190017030100202a7f1a72de2970b689e44c005661d1e1e444854af7499ebeb23eabc7bfad7b64
Service-Type = Framed-User
Framed-MTU = 1420
NAS-IP-Address = 192.168.1.1
Message-Authenticator = 0xc9b0d8e268df2d8e4b484725c3efa189
Tue Dec 29 18:38:47 2015 : Info: # Executing section authorize from file /etc/freeradius/sites-enabled/default
Tue Dec 29 18:38:47 2015 : Info: +group authorize {
Tue Dec 29 18:38:47 2015 : Info: ++[preprocess] = ok
Tue Dec 29 18:38:47 2015 : Info: ++[chap] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[mschap] = noop
Tue Dec 29 18:38:47 2015 : Info: ++[digest] = noop
Tue Dec 29 18:38:47 2015 : Info: [suffix] No '#' in User-Name = "ccc", looking up realm NULL
Tue Dec 29 18:38:47 2015 : Info: [suffix] No such realm "NULL"
Tue Dec 29 18:38:47 2015 : Info: ++[suffix] = noop
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP packet type response id 9 length 43
Tue Dec 29 18:38:47 2015 : Info: [eap] Continuing tunnel setup.
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = ok
Tue Dec 29 18:38:47 2015 : Info: +} # group authorize = ok
Tue Dec 29 18:38:47 2015 : Info: Found Auth-Type = EAP
Tue Dec 29 18:38:47 2015 : Info: # Executing group from file /etc/freeradius/sites-enabled/default
Tue Dec 29 18:38:47 2015 : Info: +group authenticate {
Tue Dec 29 18:38:47 2015 : Info: [eap] Request found, released from the list
Tue Dec 29 18:38:47 2015 : Info: [eap] EAP/peap
Tue Dec 29 18:38:47 2015 : Info: [eap] processing type peap
Tue Dec 29 18:38:47 2015 : Info: [peap] processing EAP-TLS
Tue Dec 29 18:38:47 2015 : Info: [peap] eaptls_verify returned 7
Tue Dec 29 18:38:47 2015 : Info: [peap] Done initial handshake
Tue Dec 29 18:38:47 2015 : Info: [peap] eaptls_process returned 7
Tue Dec 29 18:38:47 2015 : Info: [peap] EAPTLS_OK
Tue Dec 29 18:38:47 2015 : Info: [peap] Session established. Decoding tunneled attributes.
Tue Dec 29 18:38:47 2015 : Info: [peap] Peap state send tlv failure
Tue Dec 29 18:38:47 2015 : Info: [peap] Received EAP-TLV response.
Tue Dec 29 18:38:47 2015 : Info: [peap] The users session was previously rejected: returning reject (again.)
Tue Dec 29 18:38:47 2015 : Info: [peap] *** This means you need to read the PREVIOUS messages in the debug output
Tue Dec 29 18:38:47 2015 : Info: [peap] *** to find out the reason why the user was rejected.
Tue Dec 29 18:38:47 2015 : Info: [peap] *** Look for "reject" or "fail". Those earlier messages will tell you.
Tue Dec 29 18:38:47 2015 : Info: [peap] *** what went wrong, and how to fix the problem.
Tue Dec 29 18:38:47 2015 : Info: [eap] Handler failed in EAP/peap
Tue Dec 29 18:38:47 2015 : Info: [eap] Failed in EAP select
Tue Dec 29 18:38:47 2015 : Info: ++[eap] = invalid
Tue Dec 29 18:38:47 2015 : Info: +} # group authenticate = invalid
Tue Dec 29 18:38:47 2015 : Info: Failed to authenticate the user.
Tue Dec 29 18:38:47 2015 : Info: Using Post-Auth-Type REJECT
Tue Dec 29 18:38:47 2015 : Info: # Executing group from file /etc/freeradius/sites-enabled/default
Tue Dec 29 18:38:47 2015 : Info: +group REJECT {
Tue Dec 29 18:38:47 2015 : Info: [sql] expand: %{User-Name} -> ccc
Tue Dec 29 18:38:47 2015 : Info: [sql] sql_set_user escaped user --> 'ccc'
Tue Dec 29 18:38:47 2015 : Info: [sql] expand: %{User-Password} ->
Tue Dec 29 18:38:47 2015 : Info: [sql] ... expanding second conditional
Tue Dec 29 18:38:47 2015 : Info: [sql] expand: %{Chap-Password} ->
Tue Dec 29 18:38:47 2015 : Info: [sql] expand: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S') -> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'ccc', '', 'Access-Reject', '2015-12-29 18:38:47')
Tue Dec 29 18:38:47 2015 : Debug: rlm_sql (sql) in sql_postauth: query is INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'ccc', '', 'Access-Reject', '2015-12-29 18:38:47')
Tue Dec 29 18:38:47 2015 : Debug: rlm_sql (sql): Reserving sql socket id: 29
Tue Dec 29 18:38:47 2015 : Debug: rlm_sql (sql): Released sql socket id: 29
Tue Dec 29 18:38:47 2015 : Info: ++[sql] = ok
Tue Dec 29 18:38:47 2015 : Info: [attr_filter.access_reject] expand: %{User-Name} -> ccc
Tue Dec 29 18:38:47 2015 : Debug: attr_filter: Matched entry DEFAULT at line 11
Tue Dec 29 18:38:47 2015 : Info: ++[attr_filter.access_reject] = updated
Tue Dec 29 18:38:47 2015 : Info: +} # group REJECT = updated
Tue Dec 29 18:38:47 2015 : Info: Delaying reject of request 8 for 1 seconds
Tue Dec 29 18:38:47 2015 : Debug: Going to the next request
Tue Dec 29 18:38:47 2015 : Debug: Waking up in 0.1 seconds.
Tue Dec 29 18:38:47 2015 : Info: Cleaning up request 0 ID 209 with timestamp +11
Tue Dec 29 18:38:47 2015 : Debug: Waking up in 0.3 seconds.
Tue Dec 29 18:38:47 2015 : Info: Cleaning up request 1 ID 210 with timestamp +11
Tue Dec 29 18:38:47 2015 : Debug: Waking up in 0.3 seconds.
Tue Dec 29 18:38:48 2015 : Info: Cleaning up request 2 ID 211 with timestamp +12
Tue Dec 29 18:38:48 2015 : Debug: Waking up in 0.1 seconds.
Tue Dec 29 18:38:48 2015 : Info: Sending delayed reject for request 8
Sending Access-Reject of id 217 to 192.168.1.1 port 32779
EAP-Message = 0x04090004
Message-Authenticator = 0x00000000000000000000000000000000
Found the solution,
the problem was that i didn't configure the /etc/raddb/sites-available/inner-tunnel file to use sql

mongooplog is failing with unauthorized error

I am trying to replay the oplog from 1 replica set to another in mongo. I am getting an error, any idea why?
mongooplog --from "10.0.0.180:27017" -h "my_rs/10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019" -d my_db -u dbuser -p db_pass
Fri Jun 27 14:24:21 starting new replica set monitor for replica set my_rs with seed of 10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019
Fri Jun 27 14:24:21 successfully connected to seed 10.0.0.88:27017 for replica set my_rs
Fri Jun 27 14:24:21 changing hosts to { 0: "10.0.0.88:27017", 1: "10.0.0.88:27018" } from my_rs/
Fri Jun 27 14:24:21 trying to add new host 10.0.0.88:27017 to replica set my_rs
Fri Jun 27 14:24:21 successfully connected to new host 10.0.0.88:27017 in replica set my_rs
Fri Jun 27 14:24:21 trying to add new host 10.0.0.88:27018 to replica set my_rs
Fri Jun 27 14:24:21 successfully connected to new host 10.0.0.88:27018 in replica set my_rs
Fri Jun 27 14:24:21 successfully connected to seed 10.0.0.88:27019 for replica set my_rs
Fri Jun 27 14:24:21 Primary for replica set my_rs changed to 10.0.0.88:27017
Fri Jun 27 14:24:21 replica set monitor for replica set my_rs started, address is my_rs/10.0.0.88:27017,10.0.0.88:27018
connected to: my_rs/10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019
Fri Jun 27 14:24:21 [ReplicaSetMonitorWatcher] starting
Fri Jun 27 14:24:21 [oplogreplay] going to connect
Fri Jun 27 14:24:21 [oplogreplay] connected
Fri Jun 27 14:24:21 [oplogreplay] starting from Jun 26 14:24:21:0
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [omongooplog --from "10.0.0.180:27017" -h "my_rs/10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019" -d my_db -u dbuser -p db_pass
Fri Jun 27 14:24:21 starting new replica set monitor for replica set my_rs with seed of 10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019
Fri Jun 27 14:24:21 successfully connected to seed 10.0.0.88:27017 for replica set my_rs
Fri Jun 27 14:24:21 changing hosts to { 0: "10.0.0.88:27017", 1: "10.0.0.88:27018" } from my_rs/
Fri Jun 27 14:24:21 trying to add new host 10.0.0.88:27017 to replica set my_rs
Fri Jun 27 14:24:21 successfully connected to new host 10.0.0.88:27017 in replica set my_rs
Fri Jun 27 14:24:21 trying to add new host 10.0.0.88:27018 to replica set my_rs
Fri Jun 27 14:24:21 successfully connected to new host 10.0.0.88:27018 in replica set my_rs
Fri Jun 27 14:24:21 successfully connected to seed 10.0.0.88:27019 for replica set my_rs
Fri Jun 27 14:24:21 Primary for replica set my_rs changed to 10.0.0.88:27017
Fri Jun 27 14:24:21 replica set monitor for replica set my_rs started, address is my_rs/10.0.0.88:27017,10.0.0.88:27018
connected to: my_rs/10.0.0.88:27017,10.0.0.88:27018,10.0.0.88:27019
Fri Jun 27 14:24:21 [ReplicaSetMonitorWatcher] starting
Fri Jun 27 14:24:21 [oplogreplay] going to connect
Fri Jun 27 14:24:21 [oplogreplay] connected
Fri Jun 27 14:24:21 [oplogreplay] starting from Jun 26 14:24:21:0
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 } plogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
Fri Jun 27 14:24:21 [oplogreplay] { assertion: "unauthorized db:admin ns:admin lock type:1 client:10.0.0.88", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }
The from parameter is also an RS (with noauth=true set), but if i try use "my_rs/10.0.0.180:27017" it fails, doesn't look like the from parameter can use an RS address.
the username and password used for the replay on 88 is in the admin db as well as my_db.
Update
I have upgraded to 2.4.10. The upgrade seems to give more meaningful logging. On 180, I can connect to the local db (without auth) and do a db.oplog.rs.count() and get results (both on local and remote connections). However, when I run mongooplog with 180 as the from, I still get an error (this is from 88):
Tue Jul 1 10:16:29.034 [oplogreplay] error getting oplog
Tue Jul 1 10:16:29.034 [oplogreplay] { $err: "not authorized for query on local.oplog.rs", code: 16550 }
and i see a similar error in 180's error logs.
You need to add the authentication database to the command line, as by default mongooplog is going to assume that your username and password credentials apply to the database your are applying the oplog to.
--authenticationDatabase dbname
New in version 2.4.
Specifies the database that holds the user’s credentials. If you do
not specify an authentication database, the mongooplog assumes that
the database specified as the argument to the --db option holds the
user’s credentials.
so in your case I would add --authenticationDatabase admin to your command line.
Mongooplog seemed to buggy around authentication, and also doesn't seem to support filtering of dbs to replicate.
I have written a tool (gem) that allows replication between 2 replica sets. It's available at https://github.com/brettcave/mongo-oplogreplay

App crash in didFinishPickingMediaWithInfo

My app is crashing when the user records a video and then clicks choose. Here is my code:
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie, nil];
//picker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:picker.sourceType];
picker.allowsEditing = NO;
picker.delegate = self;
picker.videoQuality = UIImagePickerControllerQualityTypeMedium;
[self presentModalViewController:picker animated:YES];
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
// [self dismissModalViewControllerAnimated:YES];
AppDelegate *del = [[UIApplication sharedApplication]delegate];
NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType];
moviePath = [[info objectForKey:UIImagePickerControllerMediaURL]path];..//using this for upload
del.globalMoviePath = moviePath;
if (CFStringCompare ((__bridge CFStringRef) mediaType, kUTTypeMovie, 0)== kCFCompareEqualTo)
{
moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
del.globalMoviePath = moviePath;
picker.videoMaximumDuration = 60.0f;
picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModeVideo;
NSLog(#"nrgkrg===>%#",moviePath);
videoUrl=(NSURL*)[info objectForKey:UIImagePickerControllerMediaURL];
NSLog(#"Urlllll===>%#",videoUrl);
videoData = [NSData dataWithContentsOfURL:videoUrl];
del.globalMoviePath = moviePath;
NSLog(#"video is====>%#",del.globalMoviePath);
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoUrl];
UIImage *thumbnail = [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame];
[player stop];
videoImage = [[UIImageView alloc]initWithImage:thumbnail];
//NSLog(#"imegsvideo====>%#",thumbnail);
//if (UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(moviePath))
//{
// UISaveVideoAtPathToSavedPhotosAlbum (moviePath, self, #selector(video:didFinishSavingWithError:contextInfo:), nil);
// }
//MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoUrl];
//UIImage *thumbnail = [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame];
}
[self dismissModalViewControllerAnimated:YES];
//[[picker parentViewController] dismissModalViewControllerAnimated: YES];
}
When the user records a video and clicks choose app gets crashed but works fine when selected from camera roll.
Please help!!
Here's the log:
Nov 29 20:28:14 ReportCrash[259] <Notice>: Formulating crash report for process [254]
Nov 29 20:28:14 com.apple.launchd[1] <Warning>: (UIKitApplication:[0xcc37]) Job appears to have crashed: Segmentation fault: 11
Nov 29 20:28:14 backboardd[52] <Warning>: Application 'UIKitApplication:[0xcc37]' exited abnormally with signal 11: Segmentation fault: 11
Nov 29 20:28:14 ReportCrash[259] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Nov 29 20:28:14 ReportCrash[259] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/ using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) mstreamd: Checking on job state for Photo Stream
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) mstreamd: No jobs scheduled for Photo Stream.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) mstreamd: Checking on job state for Shared Stream
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) mstreamd: No jobs scheduled for Shared Stream.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) PS: Media stream daemon stopping.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x1ee72590>: Shared Streams daemon shutting down.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x1ee72590>: Shutting down state machine for personID 1446684163.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSASStateMachine: 0x1ed3e060>: Shutting down uploader.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSASStateMachine: 0x1ed3e060>: Shutting down downloader.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSASStateMachine: 0x1ed3e060>: Shutting down state machine.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x1ee72590>: Shutting down model.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSASServerSideModel: 0x1ed39d50>: Command Queue has shut down.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x1ee72590>: Model has shut down.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x1ee72590>: Shared Streams daemon has shut down.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Note ) mstreamd: <MSPowerBudget: 0x1ed394b0>: Stopping post-foreground timer.
Nov 29 20:28:38 mstreamd[257] <Notice>: (Warn ) mstreamd: mstreamd shutting down.
Nov 29 20:49:16 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_screen_off even though we are not in it, doing nothing
Nov 29 20:49:16 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableDetect 0
Nov 29 20:49:16 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableType Detached
Nov 29 20:49:16 kernel[0] <Debug>: virtual IOReturn AppleUSBDeviceMux::message(UInt32, IOService *, void *) - kMessageInterfaceWasDeActivated
Nov 29 20:49:16 kernel[0] <Debug>: AppleUSBDeviceMux::reportStats: USB mux statistics:
Nov 29 20:49:16 kernel[0] <Debug>: USB mux: 190 reads / 0 errors, 899 writes / 0 errors
Nov 29 20:49:16 kernel[0] <Debug>: USB mux: 0 short packets, 0 dups
Nov 29 20:49:16 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_charging even though we are not in it, doing nothing
Nov 29 20:49:16 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_screen_off even though we are not in it, doing nothing
Nov 29 20:49:16 ptpd[104] <Notice>: PTP interface has been deactivated.
Nov 29 20:49:18 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_asleep even though we are not in it, doing nothing
Nov 29 20:49:18 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableDetect 1
Nov 29 20:49:18 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableType USBHost
Nov 29 20:49:18 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_screen_off even though we are not in it, doing nothing
Nov 29 20:49:18 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_screen_off even though we are not in it, doing nothing
Nov 29 20:49:19 ptpd[104] <Notice>: PTP interface has been activated at high speed.
Nov 29 20:49:56 lockdownd[29] <Notice>: 2fe93000 special_case_get: MGCopyAnswer(kMGQMobileEquipmentIdentifier) returned NULL
Nov 29 20:49:56 lockdownd[29] <Notice>: 2fe93000 copy_phonenumber: CTSettingCopyMyPhoneNumber() returned NULL
Nov 29 20:49:56 mobile_installation_proxy[265] <Error>: 0x3cbd7b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Nov 29 20:49:56 mobile_installation_proxy[265] <Error>: 0x3cbd7b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1c545b90 [0x3bfb1100]>{type = mutable dict, count = 1,
entries =>
6 : <CFString 0x1c545bc0 [0x3bfb1100]>{contents = "ApplicationType"} = <CFString 0x1c545b30 [0x3bfb1100]>{contents = "User"}
}
Nov 29 20:49:57 mc_mobile_tunnel[267] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:49:57 mc_mobile_tunnel[267] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:49:57 mc_mobile_tunnel[268] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:49:57 mc_mobile_tunnel[268] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:49:57 lockdownd[29] <Notice>: 2fe93000 set_response_error: handle_start_session SessionActive
Nov 29 20:49:57 lockdownd[29] <Notice>: 2fe93000 set_response_error: handle_start_session SessionActive
Nov 29 20:50:03 mc_mobile_tunnel[270] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:50:03 mc_mobile_tunnel[270] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:51:31 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_screen_off even though we are not in it, doing nothing
Nov 29 20:51:31 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableDetect 0
Nov 29 20:51:31 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableType Detached
Nov 29 20:51:31 kernel[0] <Debug>: virtual IOReturn AppleUSBDeviceMux::message(UInt32, IOService *, void *) - kMessageInterfaceWasDeActivated
Nov 29 20:51:31 kernel[0] <Debug>: AppleUSBDeviceMux::reportStats: USB mux statistics:
Nov 29 20:51:31 kernel[0] <Debug>: USB mux: 195 reads / 0 errors, 493 writes / 0 errors
Nov 29 20:51:31 kernel[0] <Debug>: USB mux: 0 short packets, 0 dups
Nov 29 20:51:31 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_charging even though we are not in it, doing nothing
Nov 29 20:51:31 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_screen_off even though we are not in it, doing nothing
Nov 29 20:51:31 ptpd[104] <Notice>: PTP interface has been deactivated.
Nov 29 20:51:41 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_asleep even though we are not in it, doing nothing
Nov 29 20:51:41 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableDetect 1
Nov 29 20:51:41 kernel[0] <Debug>: AppleD1881PMUPowerSource: AppleUSBCableType USBHost
Nov 29 20:51:41 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state unplugged_screen_off even though we are not in it, doing nothing
Nov 29 20:51:41 UserEventAgent[13] <Warning>: PLAggregateState Error: Leaving state pluggedin_screen_off even though we are not in it, doing nothing
Nov 29 20:51:41 ptpd[272] <Error>: ptpd: startResponder
Nov 29 20:51:41 kernel[0] <Debug>: launchd[272] Builtin profile: ptpd (sandbox)
Nov 29 20:51:42 ptpd[272] <Notice>: PTP interface has been activated at high speed.
Nov 29 20:51:43 lockdownd[29] <Notice>: 2ffcf000 verify_pair_record: The strings don't match. Is this really a UUID?
Nov 29 20:51:43 lockdownd[29] <Notice>: 2ffcf000 store_escrow_record: Creating escrow bag (hash=9263ecf9c114f3a5cecdf7a52df193b4ce25044f) for 30264900-17792825678462560
Nov 29 20:51:52 lockdownd[29] <Notice>: 01442000 verify_pair_record: The strings don't match. Is this really a UUID?
Nov 29 20:51:52 lockdownd[29] <Notice>: 01442000 store_escrow_record: Creating escrow bag (hash=9de39584e1758f58137d28e4bd8c2fd79b5ba0a2) for 30264900-1682617038156454252
Nov 29 20:51:53 lockdownd[29] <Notice>: 01442000 special_case_get: MGCopyAnswer(kMGQMobileEquipmentIdentifier) returned NULL
Nov 29 20:51:53 lockdownd[29] <Notice>: 01442000 copy_phonenumber: CTSettingCopyMyPhoneNumber() returned NULL
Nov 29 20:51:53 mobile_installation_proxy[275] <Error>: 0x3cbd7b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Nov 29 20:51:53 mobile_installation_proxy[275] <Error>: 0x3cbd7b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1c5119d0 [0x3bfb1100]>{type = mutable dict, count = 1,
entries =>
6 : <CFString 0x1c511a00 [0x3bfb1100]>{contents = "ApplicationType"} = <CFString 0x1c511970 [0x3bfb1100]>{contents = "User"}
}
Nov 29 20:51:53 mc_mobile_tunnel[277] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:51:53 mc_mobile_tunnel[277] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:51:53 mc_mobile_tunnel[278] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:51:53 mc_mobile_tunnel[278] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:51:55 mc_mobile_tunnel[280] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:51:55 mc_mobile_tunnel[280] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
Nov 29 20:52:01 iPhone4S mc_mobile_tunnel[282] <Notice>: (Note ) MC: mc_mobile_tunnel starting.
Nov 29 20:52:01 iPhone4S mc_mobile_tunnel[282] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down.
this is because may be you are dismissing view just after dismissing picker:
[picker dismissModalViewControllerAnimated:YES];
[self dismissModalViewControllerAnimated:YES];
as you have used animated YES, the picker is not yet dismissed so either use new API
[picker dismissViewControllerAnimated:YES completion:^{
[self dismissModalViewControllerAnimated:YES];
}];
The App is crashes because in iOS6 [self dismissModalViewControllerAnimated:YES];
is deprecated you replace it with [picker dismissViewControllerAnimated:YES completion:nil]; may solve you issue.