[Mega Thread] Version 12 Release Bugs

When creating a PDF invoice, it gives this error. It is a fresh install. v12.0.0
Regards

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 25, in get_pdf
filedata = pdfkit.from_string(html, False, options=options or {})
File “/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/api.py”, line 68, in from_string
return r.to_pdf(output_path)
File “/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py”, line 140, in to_pdf
raise IOError(‘wkhtmltopdf reported an error:\n’ + stderr.decode(‘utf-8’))
OSError: wkhtmltopdf reported an error:
QSslSocket: cannot resolve CRYPTO_num_locks
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
Exit with code 1 due to network error: UnknownNetworkError
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1036, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/print_format.py”, line 91, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 32, in get_pdf
if (“ContentNotFoundError” in e.message
AttributeError: ‘OSError’ object has no attribute ‘message’

@Not_a_countant i think there’s a wkhtmltopdf error in v12.0.0 which has been fixed in 12.0.2. Update your instance and check if you still have the issue.

1 Like

I have a following error:
I’m not using support Doctype, so when I comment out erpnext.patches.v12_0.set_priority_for_support, it upgrades fine, but in any case I should not have to comment out patches in order to upgrade…

Executing erpnext.patches.v12_0.set_priority_for_support in site1.local (_1bd3e0                                                               294da19198)
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", lin                                                               e 97, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", lin                                                               e 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 717, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py"                                                               , line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/decorato                                                               rs.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line                                                                25, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 234                                                               , in migrate
    migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_                                                               failing)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 48, in mi                                                               grate
    frappe.modules.patch_handler.run_all(skip_failing)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py",                                                                line 41, in run_all
    run_patch(patch)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py",                                                                line 30, in run_patch
    if not run_single(patchmodule = patch):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py",                                                                line 71, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py",                                                                line 91, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v12_0/set_priorit                                                               y_for_support.py", line 9, in execute
    set_priorities_service_level()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v12_0/set_priorit                                                               y_for_support.py", line 33, in set_priorities_service_level
    service_level_priorities = frappe.get_list("Service Level", fields=["name",                                                                "priority", "response_time", "response_time_period", "resolution_time", "resolut                                                               ion_time_period"])
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1264, in                                                                get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **k                                                               wargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 94                                                               , in execute
    result = self.build_and_run()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 12                                                               4, in build_and_run
    return frappe.db.sql(query, as_dict=not self.as_list, debug=self.debug, upda                                                               te=self.update)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line                                                                171, in sql
    self._cursor.execute(query)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/cursor                                                               s.py", line 170, in execute
    result = self._query(query)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/cursor                                                               s.py", line 328, in _query
    conn.query(q)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connec                                                               tions.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connec                                                               tions.py", line 732, in _read_query_result
    result.read()
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connec                                                               tions.py", line 1075, in read
    first_packet = self.connection._read_packet()
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connec                                                               tions.py", line 684, in _read_packet
    packet.check_error()
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/protoc                                                               ol.py", line 220, in check_error
    err.raise_mysql_exception(self._data)
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/err.py                                                               ", line 109, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.InternalError: (1054, "Unknown column 'priority' in 'field list'")

There is a bug in Project timesheets in v12.
When adding a timesheet from the project it adds a time sheet entry with the project field populated. If you fill out the rest of the fields and press save it will prompt with a warning that the timesheet field is mandatory.
Also the automatically added timesheet entry cannot be deleted. and replaced with a manually added one

replace ‘unicode’ with ‘bytes’

When i export the “Activity Log” to CSV, i get this exceptopn. When I try with excel, it is empty. Thanks

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1036, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 511, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py”, line 163, in export_query
frappe.response[‘result’] = text_type(f.read(), ‘utf-8’)
TypeError: decoding str is not supported

Hi all,

After updating to version 12 with _bench switch-to-branch version-12 frappe erpnext --upgrade, the frappe version was updated to 12.0.3 but erpnext is 11.1.38.

Please suggest how can I resolve this…

image

Thanks

Go to your erpnext directory, and run this command:

git config remote.upstream.fetch "+refs/heads/*:refs/remotes/upstream/*

After that, go to frappe bench and run:

bench switch-to-branch version-12 --upgrade

Version 12.02

I am unable to assign a task to a parent task

Error: Document has been modified after you have opened it (2019-07-31 09:26:30.005709, 2019-07-31 09:26:30.018997). Please refresh to get the latest document.

Steps to recreate:
Create project - add task to project with “is group” checked - add additional task to project and select the parent task. Same error every time on multiple installs.

Also, was the Task table intentionally removed from the Project page and if so what was the reasoning. This make Project creation significantly more time consuming.

Nice! I was having the same problem.

Hi Kenneth,

Installed Apps

ERPNext: v11.1.38 (version-12) (When checked with bench version it is showing 12.0.3)

Frappe Framework: v12.0.3 (version-12)

null modules are shown…

Any workaround for this…

1 Like

Same problem here. null values in “Show/Hide Cards”. No modules shown in Modules section on the Desktop

Why i can’t add a guardian in a student application logged like a student?

I get this:

image

This is because ERPNext on 11.1.38, Please Upgrade ERPNext app to v12 problem will be solved

i am in version 12

Can you plz let me know how to upgrade. I used this command bench switch-to-branch version-12 frappe erpnext --upgrade

Thanks

@Prasanna_CSA

bench switch-to-branch version-12 --upgrade

Hope this helps.

Thanks… This worked

I created a new server and installed ERPNext 12 than create a new user with a role Stock User, when I login with that user, all the modules appear, like the picture below


Thanks

@hendrik_zeta Go to User and Permission → Users → Click User → Allow Modules and select Modules to allow for user:

All modules not checked will be invincible to user. Note however that it has been reported that users are still able to search for modules using the magic search bar. So make sure you also set permissions for the user to ensure access restriction for the user in case they know what to search for using the search bar.