ERPNext Update issue

Hi,
Facing an issue when updating the Bench.

itwork@ERP:~$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling knowledge_base
    From https://github.com/frappe/knowledge_base
  • branch master -> FETCH_HEAD
    Already up-to-date.
    /home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    /home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    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/itwork/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/itwork/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/itwork/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
    File “/home/itwork/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/itwork/frappe-bench/apps/frappe/frappe/commands/site.py”, line 277, in backup
    frappe.init(site=site)
    File “/home/itwork/frappe-bench/apps/frappe/frappe/init.py”, line 120, in init
    local.conf = _dict(get_site_config())
    File “/home/itwork/frappe-bench/apps/frappe/frappe/init.py”, line 172, in get_site_config
    config.update(get_file_json(site_config))
    File “/home/itwork/frappe-bench/apps/frappe/frappe/init.py”, line 846, in get_file_json
    return json.load(f)
    File “/usr/lib/python2.7/json/init.py”, line 290, in load
    **kw)
    File “/usr/lib/python2.7/json/init.py”, line 338, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
    ValueError: Expecting property name: line 5 column 1 (char 113)

Hi,

did you make any changes in site_config.json or common_site_config.json ?
if yes then please check if json is valid or not on jsonlint

Thanks, Makarand

Hi,
I checked both the files. it shows Valid JSON.

Hi,
Its fixed.
I have 2 sites. there was an error in 2nd site. the Site JSON was like below.

{
“db_password”: “xxxxxxxxxxxxxx”,
“db_name”: “xxxxxxxxxxxxxxxx”,
“host_name”: “http://hostname”,
}

I changed it to ,

{
“db_password”: “xxxxxxxxxxxxxxxx”,
“db_name”: “xxxxxxxxxxxxxxxxxx”,
“host_name”: “http://hostname”,
“limits”: {
“space_usage”: {
“backup_size”: 203.0,
“database_size”: 43.38,
“files_size”: 37.0,
“total”: 283.38
}
}
}

The DNS based multi tenancy is also enabled.

remove the comma from the end and try again

Yes… Done… Thanks…