Frappe.exceptions.MandatoryError: user_category Error Shown When Try to create new-site

Currently i am try to make a new-site in my vps server. But the following error shown.

 root@www:/home/frappe/frappe-bench# bench new-site site3
    /home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py:65: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('get-frappe-commands')
    /home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py:69: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('get-frappe-help')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:61: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def new_site(site, mariadb_root_username=None, mariadb_root_password=None, admin_password=None, verbose=False, install_apps=None, source_sql=None, force=None, install_app=None, db_name=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:122: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def restore(context, sql_file_path, mariadb_root_username=None, mariadb_root_password=None, db_name=None, verbose=None, install_app=None, admin_password=None, force=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:132: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:154: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:170: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:185: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def migrate(context, rebuild_website=False):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:223: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:239: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:254: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def build(make_copy=False, verbose=False):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:261: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('watch')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:269: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:285: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:298: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:314: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def sync_www(context, force=False):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:327: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:342: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:357: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:374: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:392: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.argument('args')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:400: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:413: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:428: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:445: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:461: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:476: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:489: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:504: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def import_doc(context, path, force=False):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:517: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:534: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def get_untranslated(context, lang, untranslated_file, all=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:549: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:563: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:584: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:593: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:610: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def run_tests(context, app=None, module=None, doctype=None, test=(), driver=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:637: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def serve(context, port=None, profile=False, sites_path='.', site=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:648: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:671: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('doctor')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:678: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('purge-all-tasks')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:686: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.command('dump-queue-status')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:695: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @click.argument('app_name')
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:702: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def _use(site, sites_path='.'):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:712: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def backup(context, with_files=False, backup_path_db=None, backup_path_files=None, quiet=False):
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:730: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      @pass_context
    /home/frappe/frappe-bench/apps/frappe/frappe/commands.py:766: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      def drop_site(site, root_login='root', root_password=None):
    /home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py:27: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      return click.group(name=app, commands=app_commands)(app_group)
    /home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py:14: Warning: Click detected the use of the unicode_literals __future__ import.  This is heavily discouraged because it can introduce subtle bugs in your code.  You should instead use explicit u"" literals for your unicode strings.  For more information see http://click.pocoo.org/python3/
      click.Group(commands=commands)(prog_name='bench')
    MySQL root password: 
    Installing frappe...
    Updating frappe                     : [========================================]
    Traceback (most recent call last):
      File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
        "__main__", fname, loader, pkg_name)
      File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
        main()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
        click.Group(commands=commands)(prog_name='bench')
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 700, in __call__
        return self.main(*args, **kwargs)
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 680, in main
        rv = self.invoke(ctx)
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 873, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 508, in invoke
        return callback(*args, **kwargs)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 67, in new_site
        _new_site(db_name, site, mariadb_root_username=mariadb_root_username, mariadb_root_password=mariadb_root_password, admin_password=admin_password, verbose=verbose, install_apps=install_app, source_sql=source_sql, force=force)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 87, in _new_site
        _install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 130, in install_app
        frappe.get_attr(after_install)()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/install.py", line 44, in after_install
        frappe.get_doc(d).insert()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 179, in insert
        self._validate()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 300, in _validate
        self._validate_mandatory()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 462, in _validate_mandatory
        raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
    frappe.exceptions.MandatoryError: user_category

Seems related to your custom app.