Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to create master user #29

Closed
need-root opened this issue May 12, 2013 · 2 comments
Closed

failed to create master user #29

need-root opened this issue May 12, 2013 · 2 comments

Comments

@need-root
Copy link

Sun May 12 14:51:27 2013 [P0x9f8f290 ] Starting ebftpd 0.1-859..
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Loading config file..
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Initialising TLS context..
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Initialising Templates..
Sun May 12 14:51:27.217 Assertion failure (long long)millis >= 0 src/mongo/bson/util/misc.h 97
0x813fa62 0x8140d24 0x81374df 0x8127170 0xb73215d1 0xb7320f51 0xb72ee483 0xb72f9b5d 0xb72fb930 0xb72f9c5f 0xb72f0653 0xb72ef076 0xb72e08eb 0xb72d4d35 0xb72dc15d 0xb72dc3c8 0x80c1e07 0xb6727e46 0x80c0bd1
./ebftpd(mongo::printStackTrace(std::basic_ostream<char, std::char_traits >&)+0x32) [0x813fa62]
./ebftpd(mongo::logContext(char const_)+0x64) [0x8140d24]
./ebftpd(mongo::verifyFailed(char const_, char const_, unsigned int)+0xdf) [0x81374df]
./ebftpd(mongo::Date_t::toString() const+0) [0x8127170]
/ebftpd/bin/../lib/libeb.so(mongo::Date_t::toTm(tm_)+0x1d) [0xb73215d1]
/ebftpd/bin/../lib/libeb.so(db::ToPosixTime(mongo::Date_t const&)+0x24) [0xb7320f51]
/ebftpd/bin/../lib/libeb.so(acl::UserData db::Unserializeacl::UserData(mongo::BSONObj const&)+0x821) [0xb72ee483]
/ebftpd/bin/../lib/libeb.so(std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const_)::{lambda(mongo::BSONObj const&)#1}::operator()(mongo::BSONObj const&) const+0x2b) [0xb72f9b5d]
/ebftpd/bin/../lib/libeb.so(std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const_)::{lambda(mongo::BSONObj const&)#1} std::for_each<__gnu_cxx::_normal_iterator<mongo::BSONObj*, std::vector<mongo::BSONObj, std::allocatormongo::BSONObj > >, std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const)::{lambda(mongo::BSONObj const&)#1}>(gnu_cxx::normal_iterator<mongo::BSONObj, std::vector<mongo::BSONObj, std::allocatormongo::BSONObj > >, std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const)::{lambda(mongo::BSONObj const&)#1}, std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const)::{lambda(mongo::BSONObj const&)#1})+0x2e) [0xb72fb930]
/ebftpd/bin/../lib/libeb.so(std::vector<acl::UserData, std::allocatoracl::UserData > db::Connection::QueryMultiacl::UserData(std::basic_string<char, std::char_traits, std::allocator > const&, mongo::Query const&, int, int, mongo::BSONObj const)+0xb7) [0xb72f9c5f]
/ebftpd/bin/../lib/libeb.so(+0x526653) [0xb72f0653]
/ebftpd/bin/../lib/libeb.so(db::GetUsers(std::basic_string<char, std::char_traits, std::allocator > const&)+0x20) [0xb72ef076]
/ebftpd/bin/../lib/libeb.so(db::UserCache::Populate()+0x4d) [0xb72e08eb]
/ebftpd/bin/../lib/libeb.so(db::Replicator::Register(std::shared_ptrdb::Replicable const&)+0x29) [0xb72d4d35]
/ebftpd/bin/../lib/libeb.so(db::RegisterCaches(std::function<void (int)> const&)+0x55) [0xb72dc15d]
/ebftpd/bin/../lib/libeb.so(db::Initialise(std::function<void (int)> const&)+0xd7) [0xb72dc3c8]
./ebftpd(main+0x521) [0x80c1e07]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb6727e46]
./ebftpd() [0x80c0bd1]
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Unserialize user failed : { id: ObjectId('518e64f7116f8c62fddbf0fc'), comment: "", created: new Date(-1871367424), creator: 0, credits: {}, expires: null, flags: "1", gadmin gids: {}, home dir: "/", idle time: -1, ip masks: [ "@localhost" ], last login: new Date(-1808093424), logged in: 1, max down speed: 0, max sim down: -1, max sim up: -1, max up speed: 0, name: "ebftpd", num logins: 1, password: "C4B67CBB88938192757E570FF23994713AE625BDBBDAB038E30FF327E70EEDDC", primary gid: 0, ratio: [ { section: "", value: 3 } ], salt: "6F2F64401AC3D3B380DB2E9F4AA938338B617F6E991C24C49AE4735705495998", secondary gids: {}, tagline: "", uid: 0, weekly allotment: {} } : assertion src/mongo/bson/util/misc.h:97
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Query multi failed : users : {} : NULL : assertion src/mongo/bson/util/misc.h:97
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Failed to create master user (ebftpd).
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Error while creating root user and group and default user template
Sun May 12 14:51:27 2013 [P0x9f8f290 ] Bye!

@bioboy
Copy link
Collaborator

bioboy commented May 19, 2013

This is related to some weird problem with dates in mongo fields resetting to a time before epoch (1969 or so). ebftpd is unable to unserialize the invalid dates.

@bioboy
Copy link
Collaborator

bioboy commented May 19, 2013

Fixed by commit # 1730efb

@bioboy bioboy closed this as completed May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants