Crash when installing Countly


#1

Hello, I'm new here!

FYI I'm trying to install Countly on non empty server. Ubuntu 16.04 LTS. Ports 80 is not used by anything but when installation comes to "concat:locales_vi\" (concat) task\n\nRunning \"concat:locales_zh\" (concat) task\n\nRunning \"concat:locales_pl\" (concat) task\n\nDone.\n" it stopped for a long time and there was not any warning.

here's my log

2018-07-13T04:31:48.503Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}

Full logs:

Creating certificates directory
Adding messages indexes
Installing plugin "star-rating"...
Installing plugin "slipping-away-users"...
Installing plugin "compare"...
Installing plugin "server-stats"...
Installing plugin "dbviewer"...
Installing plugin "assistant"...
Installing plugin "plugin-upload"...
Installing plugin "times-of-day"...
Installing plugin "compliance-hub"...
Installing compliance-hub plugin
Installing plugin "video-intelligence-monetization"...
Installing plugin "alerts"...
Installing alerts plugin
Adding alerts patch
Processing plugin files for production mode
Preparing production files
2018-07-13T04:31:47.584Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}
2018-07-13T04:31:47.585Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}
No apps to upgrade
Alerts plugin installation finished
2018-07-13T04:31:47.588Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}
2018-07-13T04:31:47.861Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}
No apps to upgrade
Adding token indexes... It can take up to several minutes in case you have millions of users.
2018-07-13T04:31:48.503Z: ERROR	[db:read]	Error reading apps {"name":"find","args":[null]} MongoError: not authorized on countly to execute command { find: "apps", filter: {}, $db: "countly" } {"name":"MongoError","message":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","ok":0,"errmsg":"not authorized on countly to execute command { find: \"apps\", filter: {}, $db: \"countly\" }","code":13,"codeName":"Unauthorized"}
Systemlogs plugin installation finished
Done installing plugin "plugins"
Done installing plugin "mobile"
Done installing plugin "locale"
Done installing plugin "desktop"
Done installing plugin "density"
Done installing plugin "sources"
Done installing plugin "browser"
Done installing plugin "enterpriseinfo"
Done installing plugin "systemlogs"
Done installing plugin "views"
Done installing plugin "populator"
Done installing plugin "dbviewer"
Done installing plugin "crashes"
Done installing plugin "logger"
Done installing plugin "compare"
Done installing plugin "reports"
Done installing plugin "star-rating"
Done installing plugin "server-stats"
Done installing plugin "slipping-away-users"
Done installing plugin "alerts"
Done installing plugin "video-intelligence-monetization"
Done installing plugin "compliance-hub"
Done installing plugin "times-of-day"
Done installing plugin "web"
Done installing plugin "assistant"
Done installing plugin "errorlogs"
Done installing plugin "plugin-upload"
Done installing plugin "push"
Done preparing production files with null / "Running \"plugins\" task\nPreparing production files for following plugins: [\"mobile\",\"web\",\"desktop\",\"plugins\",\"density\",\"locale\",\"browser\",\"sources\",\"views\",\"enterpriseinfo\",\"logger\",\"systemlogs\",\"errorlogs\",\"populator\",\"reports\",\"crashes\",\"push\",\"star-rating\",\"slipping-away-users\",\"compare\",\"server-stats\",\"dbviewer\",\"assistant\",\"plugin-upload\",\"times-of-day\",\"compliance-hub\",\"video-intelligence-monetization\",\"alerts\"]\nDone preparing production files\n\nRunning \"concat:plugins\" (concat) task\n\nRunning \"uglify:plugins\" (uglify) task\n>> 1 file created 2 MB → 1.07 MB\n\nRunning \"copy:plugins\" (copy) task\nCopied 16 files\n\nRunning \"cssmin:plugins\" (cssmin) task\n>> 1 file created. 122.4 kB → 100.6 kB\n\nRunning \"locales\" task\nPreparing locale files for core & plugins: [\"mobile\",\"web\",\"desktop\",\"plugins\",\"density\",\"locale\",\"browser\",\"sources\",\"views\",\"enterpriseinfo\",\"logger\",\"systemlogs\",\"errorlogs\",\"populator\",\"reports\",\"crashes\",\"push\",\"star-rating\",\"slipping-away-users\",\"compare\",\"server-stats\",\"dbviewer\",\"assistant\",\"plugin-upload\",\"times-of-day\",\"compliance-hub\",\"video-intelligence-monetization\",\"alerts\"]\nDone preparing locale files\n\nRunning \"concat:locales_\" (concat) task\n\nRunning \"concat:locales_ar\" (concat) task\n\nRunning \"concat:locales_bs\" (concat) task\n\nRunning \"concat:locales_ca\" (concat) task\n\nRunning \"concat:locales_de\" (concat) task\n\nRunning \"concat:locales_el\" (concat) task\n\nRunning \"concat:locales_en\" (concat) task\n\nRunning \"concat:locales_es\" (concat) task\n\nRunning \"concat:locales_et\" (concat) task\n\nRunning \"concat:locales_fa\" (concat) task\n\nRunning \"concat:locales_fr\" (concat) task\n\nRunning \"concat:locales_hi\" (concat) task\n\nRunning \"concat:locales_hu\" (concat) task\n\nRunning \"concat:locales_it\" (concat) task\n\nRunning \"concat:locales_ja\" (concat) task\n\nRunning \"concat:locales_ko\" (concat) task\n\nRunning \"concat:locales_lv\" (concat) task\n\nRunning \"concat:locales_my\" (concat) task\n\nRunning \"concat:locales_nb\" (concat) task\n\nRunning \"concat:locales_nl\" (concat) task\n\nRunning \"concat:locales_pt\" (concat) task\n\nRunning \"concat:locales_ro\" (concat) task\n\nRunning \"concat:locales_ru\" (concat) task\n\nRunning \"concat:locales_sl\" (concat) task\n\nRunning \"concat:locales_sv\" (concat) task\n\nRunning \"concat:locales_tr\" (concat) task\n\nRunning \"concat:locales_vi\" (concat) task\n\nRunning \"concat:locales_zh\" (concat) task\n\nRunning \"concat:locales_pl\" (concat) task\n\nDone.\n"

Is there any solution for this?


#2

So it looks like MongoDB is already installed and it is auth enabled, but Countly does not have a password or account?

You should setup a user for Countly in MongoDB


#3

Make sure you install Countly on a spare server. It is easy, costs close to nothing ($10 on Digital Ocean), and saves you and us a lot of time :slight_smile: