Bench migrate error

hi
ikhlas1@ikhlas1:~/frappe-bench$ bench migrate

Migrating restore1
Executing frappe.patches.v5_0.style_settings_to_website_theme in restore1 (7cb9420641)
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/ikhlas1/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ikhlas1/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/ikhlas1/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/ikhlas1/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/ikhlas1/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/ikhlas1/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/ikhlas1/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/ikhlas1/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/ikhlas1/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/commands.py”, line 220, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/migrate.py”, line 27, in migrate
frappe.modules.patch_handler.run_all()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/patches/v5_0/style_settings_to_website_theme.py”, line 10, in execute
migrate_style_settings()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/patches/v5_0/style_settings_to_website_theme.py”, line 28, in migrate_style_settings
website_theme.use_theme()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 55, in use_theme
use_theme(self.name)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 62, in use_theme
website_settings.save()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 247, in save
self.run_before_save_methods()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 639, in run_before_save_methods
self.run_method(“validate”)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 600, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 764, in composer
return composed(self, method, *args, **kwargs)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 747, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/model/document.py”, line 594, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 17, in validate
self.validate_home_page()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 22, in validate_home_page
if self.home_page and not resolve_route(self.home_page):
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/router.py”, line 46, in resolve_route
return get_generator_route(path)
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/router.py”, line 57, in get_generator_route
generator_routes = get_generator_routes()
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/website/router.py”, line 84, in get_generator_routes
{2}""".format(route_column_name, doctype, condition), as_dict=True):
File “/home/ikhlas1/frappe-bench/apps/frappe/frappe/database.py”, line 147, in sql
self._cursor.execute(query)
File “/home/ikhlas1/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/ikhlas1/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘page_name’ in ‘field list’”)
ikhlas1@ikhlas1:~/frappe-bench$
ikhlas1@ikhlas1:~/frappe-bench$

@Mohamed_Sajid Sorry for taking so long to reply.

Have you run bench update? Did it run successfully?

Are you upgrading from an older version?

Bench update is not successfull…Now i done the restore database but migration is not successfull…

can you please add screen shots or snippets of the errors…

ikhlas@ikhlas:~$ cd frappe-bench
ikhlas@ikhlas:~/frappe-bench$ bench update
remote: Counting objects: 204, done.
remote: Compressing objects: 100% (204/204), done.
remote: Total 204 (delta 90), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (204/204), 161.29 KiB | 143 KiB/s, done.
Resolving deltas: 100% (90/90), done.
From https://github.com/frappe/frappe
b3efdd8…00d3d9a develop -> upstream/develop
5ccfe9a…8d881a9 hotfix -> upstream/hotfix
5ccfe9a…8d881a9 master -> upstream/master

  • [new tag] v6.27.16 -> v6.27.16
    INFO:bench.utils:updating bench
    remote: Counting objects: 17, done.
    remote: Total 17 (delta 11), reused 11 (delta 11), pack-reused 6
    Unpacking objects: 100% (17/17), done.
    From https://github.com/frappe/bench
    821bdb0…e591574 master -> origin/master
    ca97764…e591574 develop -> origin/develop
    Updating 821bdb0…e591574
    Fast-forward
    .travis.yml | 2 ±
    README.md | 4 ±
    bench/init.py | 2 ±
    bench/app.py | 5 ±
    bench/commands/update.py | 5 ±
    bench/commands/utils.py | 7 +±
    bench/config/common_site_config.py | 41 ±-----------
    bench/config/nginx.py | 12 +±-
    bench/config/procfile.py | 23 ++++±-
    bench/config/supervisor.py | 20 +++±-
    bench/config/templates/Procfile | 13 ++±
    bench/config/templates/nginx.conf | 39 ++++++++++±
    bench/config/templates/supervisor.conf | 91 ++++++++++++++++++++++±—
    bench/patches/init.py | 31 ++++++++++
    bench/patches/patches.txt | 2 +
    bench/patches/v3/celery_to_rq.py | 25 ++++++++
    bench/patches/v3/deprecate_old_config.py | 38 ++++++++++++
    bench/release.py | 16 +++±
    bench/tests/test_init.py | 49 ++++++++++++±-
    bench/tests/test_setup_production.py | 99 +++++++++++++++++++++±-------
    bench/utils.py | 34 ++++++±–
    playbooks/install.py | 2 ±
    22 files changed, 433 insertions(+), 127 deletions(-)
    create mode 100644 bench/patches/init.py
    create mode 100644 bench/patches/patches.txt
    create mode 100644 bench/patches/v3/init.py
    create mode 100644 bench/patches/v3/celery_to_rq.py
    create mode 100644 bench/patches/v3/deprecate_old_config.py

This update will remove Celery config and prepare the bench to use Python RQ.
And it will overwrite Procfile and supervisor.conf.
If you don’t know what this means, type Y :wink:

Do you want to continue? [y/N]: y
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch develop -> FETCH_HEAD
    Updating b3efdd8…00d3d9a
    Fast-forward
    frappe/init.py | 2 ±
    frappe/version.py | 2 ±
    frappe/core/doctype/communication/comment.py | 37 ±
    …/core/doctype/communication/communication.json | 1967 +++++++++±---------
    frappe/core/doctype/communication/communication.py | 1 +
    frappe/core/doctype/communication/email.py | 2 ±
    frappe/desk/form/load.py | 2 ±
    frappe/desk/page/activity/activity.js | 98 ±
    frappe/desk/page/setup_wizard/setup_wizard.js | 28 ±
    frappe/email/init.py | 11 ±
    …/email/doctype/email_account/email_account.py | 1 +
    frappe/exceptions.py | 1 +
    frappe/hooks.py | 2 ±
    frappe/model/db_query.py | 22 ±
    frappe/model/delete_doc.py | 2 ±
    frappe/patches.txt | 3 ±
    frappe/patches/v7_0/add_communication_in_doc.py | 13 +
    frappe/public/build.json | 1 +
    frappe/public/css/website.css | 2 ±
    frappe/public/js/frappe/assets.js | 19 ±
    frappe/public/js/frappe/form/control.js | 32 ±
    frappe/public/js/frappe/form/dashboard.js | 12 ±
    frappe/public/js/frappe/form/formatters.js | 4 ±
    frappe/public/js/frappe/form/layout.js | 6 ±
    frappe/public/js/frappe/form/print.js | 21 ±
    frappe/public/js/frappe/form/quick_entry.js | 3 +
    frappe/public/js/frappe/list/doclistview.js | 7 +
    frappe/public/js/frappe/misc/tools.js | 1 -
    frappe/public/js/frappe/model/create_new.js | 2 ±
    frappe/public/js/frappe/model/indicator.js | 12 ±
    frappe/public/js/frappe/model/meta.js | 4 +
    frappe/public/js/frappe/request.js | 32 ±
    frappe/public/js/frappe/ui/filters/filters.js | 6 ±
    frappe/public/js/frappe/views/calendar.js | 22 ±
    frappe/public/js/frappe/views/ganttview.js | 30 ±
    …/public/js/frappe/views/reports/grid_report.js | 13 ±
    …/public/js/frappe/views/reports/query_report.js | 11 ±
    …/public/js/frappe/views/reports/reportview.js | 3 ±
    frappe/public/js/frappe/views/test_runner.js | 10 ±
    frappe/public/js/legacy/form.js | 20 ±
    frappe/public/less/website.less | 2 ±
    frappe/templates/includes/comments/comments.html | 10 ±
    frappe/templates/includes/login/login.css | 6 ±
    frappe/utils/response.py | 10 ±
    …/website/doctype/website_theme/website_theme.js | 9 ±
    frappe/website/render.py | 13 ±
    setup.py | 2 ±
    47 files changed, 1296 insertions(+), 1223 deletions(-)
    create mode 100644 frappe/patches/v7_0/add_communication_in_doc.py
    INFO:bench.app:pulling erpnext
    remote: Counting objects: 266, done.
    remote: Compressing objects: 100% (244/244), done.
    remote: Total 266 (delta 104), reused 14 (delta 14), pack-reused 7
    Receiving objects: 100% (266/266), 649.65 KiB | 223 KiB/s, done.
    Resolving deltas: 100% (104/104), completed with 11 local objects.
    From https://github.com/frappe/erpnext
  • branch develop -> FETCH_HEAD
    Updating 79c536a…b78adcf
    Fast-forward
    .github/ISSUE_TEMPLATE.md | 29 –
    .github/PULL_REQUEST_TEMPLATE.md | 14 -
    CONTRIBUTING.md | 68 ----
    erpnext/version.py | 2 ±
    erpnext/accounts/doctype/asset/asset.js | 103 +++++
    erpnext/accounts/doctype/asset/asset.json | 30 ±
    erpnext/accounts/doctype/asset/asset.py | 15 ±
    …/doctype/asset_movement/asset_movement.js | 15 +
    …/doctype/asset_movement/asset_movement.json | 274 ++++++++++++++
    …/doctype/asset_movement/asset_movement.py | 48 +++
    …/doctype/asset_movement/test_asset_movement.py | 51 +++
    erpnext/accounts/doctype/c_form/c_form.js | 4 ±
    …/doctype/journal_entry/journal_entry.js | 2 ±
    …/payment_reconciliation_invoice.json | 25 ±
    …/financial_analytics/financial_analytics.js | 2 ±
    …/accounts/report/balance_sheet/balance_sheet.js | 6 ±
    erpnext/accounts/report/cash_flow/cash_flow.js | 16 ±
    …/item_wise_purchase_register.py | 66 +±-
    …/item_wise_sales_register.py | 65 +±-
    …/profit_and_loss_statement.js | 21 ±
    …/purchase_invoice_trends.js | 10 ±
    …/report/purchase_register/purchase_register.py | 36 ±
    …/sales_invoice_trends/sales_invoice_trends.js | 10 ±
    …/accounts/report/trial_balance/trial_balance.js | 123 ++±–
    …/doctype/purchase_common/purchase_common.js | 15 ±
    …/request_for_quotation/request_for_quotation.js | 2 ±
    erpnext/buying/doctype/supplier/supplier.js | 1 -
    …/purchase_order_trends/purchase_order_trends.js | 10 ±
    erpnext/config/accounts.py | 5 +
    erpnext/crm/doctype/opportunity/opportunity.js | 2 ±
    erpnext/docs/assets/img/accounts/asset-graph.png | Bin 0 -> 232075 bytes
    …/img/accounts/asset-movement-using-button.png | Bin 0 -> 255190 bytes
    …/docs/assets/img/accounts/asset-movement.png | Bin 0 -> 114690 bytes
    …/manual/en/accounts/managing-fixed-assets.md | 16 ±
    erpnext/hooks.py | 2 ±
    erpnext/hr/doctype/employee/employee.js | 1 -
    …/doctype/upload_attendance/upload_attendance.js | 2 ±
    …/production_planning_tool.js | 2 ±
    erpnext/patches.txt | 1 -
    erpnext/projects/doctype/project/project.js | 17 ±
    erpnext/projects/doctype/project/project.py | 9 +
    erpnext/projects/doctype/time_log/time_log.js | 194 ++++±----
    erpnext/projects/doctype/time_log/time_log.json | 23 ±
    erpnext/projects/doctype/time_log/time_log.py | 19 ±
    erpnext/projects/doctype/time_log/time_log_list.js | 12 ±
    erpnext/public/build.json | 7 ±
    erpnext/public/js/controllers/taxes_and_totals.js | 51 +±
    erpnext/public/js/controllers/transaction.js | 163 +++±—
    erpnext/public/js/stock_analytics.js | 393 +++++++++±---------
    erpnext/selling/doctype/customer/customer.js | 1 -
    …/doctype/installation_note/installation_note.js | 2 ±
    …/report/quotation_trends/quotation_trends.js | 9 ±
    …/sales_order_trends/sales_order_trends.js | 10 ±
    erpnext/selling/sales_common.js | 5 ±
    erpnext/stock/dashboard/item_dashboard.js | 23 ±
    erpnext/stock/doctype/item/item.js | 27 ±
    erpnext/stock/doctype/item/item.py | 16 ±
    …/landed_cost_voucher/landed_cost_voucher.js | 7 ±
    …/doctype/material_request/material_request.js | 2 ±
    erpnext/stock/doctype/stock_entry/stock_entry.js | 5 -
    …/stock_reconciliation/stock_reconciliation.js | 2 -
    …/stock/page/stock_analytics/stock_analytics.js | 25 ±
    erpnext/stock/page/stock_balance/stock_balance.js | 51 ±-
    …/delivery_note_trends/delivery_note_trends.js | 9 ±
    …/purchase_receipt_trends.js | 9 ±
    …/doctype/maintenance_visit/maintenance_visit.js | 2 ±
    …/doctype/warranty_claim/warranty_claim.js | 3 ±
    erpnext/templates/form_grid/item_grid.html | 10 ±
    erpnext/templates/form_grid/stock_entry_grid.html | 28 ±
    setup.py | 2 ±
    70 files changed, 1372 insertions(+), 858 deletions(-)
    delete mode 100644 .github/ISSUE_TEMPLATE.md
    delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md
    delete mode 100644 CONTRIBUTING.md
    create mode 100644 erpnext/accounts/doctype/asset_movement/init.py
    create mode 100644 erpnext/accounts/doctype/asset_movement/asset_movement.js
    create mode 100644 erpnext/accounts/doctype/asset_movement/asset_movement.json
    create mode 100644 erpnext/accounts/doctype/asset_movement/asset_movement.py
    create mode 100644 erpnext/accounts/doctype/asset_movement/test_asset_movement.py
    create mode 100644 erpnext/docs/assets/img/accounts/asset-graph.png
    create mode 100644 erpnext/docs/assets/img/accounts/asset-movement-using-button.png
    create mode 100644 erpnext/docs/assets/img/accounts/asset-movement.png
    INFO:bench.app:pulling schools
    From https://github.com/frappe/schools
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling s3_backup
    From https://github.com/ccfiel/s3_backup
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling mandrill_integration
    From https://github.com/frappe/mandrill_integration
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling paypal_integration
    From https://github.com/frappe/paypal_integration
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext_shopify
    From https://github.com/frappe/erpnext_shopify
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling civil_contracting
    remote: Counting objects: 7, done.
    remote: Total 7 (delta 5), reused 5 (delta 5), pack-reused 2
    Unpacking objects: 100% (7/7), done.
    From https://github.com/revant/civil_contracting
  • branch master -> FETCH_HEAD
    Updating 77411a4…5a903be
    Fast-forward
    civil_contracting/version.py | 2 ±
    …/docs/assets/img/wage-slip/wage-slip-1.png | Bin 68399 -> 43357 bytes
    …/docs/assets/img/worker/worker-1.png | Bin 64260 -> 73100 bytes
    …/docs/current/api/civil_contracting.hooks.html | 2 ±
    …/docs/current/api/config/index.txt | 4 ±
    civil_contracting/docs/current/api/index.txt | 2 ±
    civil_contracting/docs/current/index.html | 6 ±
    …/models/civil_contracting/measurement_book.html | 2 ±
    …/civil_contracting/measurement_book_record.html | 2 ±
    …/civil_contracting/measurement_sheet.html | 2 ±
    …/civil_contracting/measurement_sheet_item.html | 2 ±
    …/civil_contracting/running_account_bill.html | 515 ++++++++++++++++++++
    …/running_account_bill_invoices.html | 132 +++++
    …/running_account_bill_items.html | 168 +++++++
    …/models/civil_contracting/wage_slip.html | 43 ±
    …/civil_contracting/wage_slip_allocation.html | 2 ±
    …/current/models/civil_contracting/worker.html | 107 ++±
    …/models/civil_contracting/worker_sheet.html | 2 ±
    …/civil_contracting/worker_sheet_attendance.html | 2 ±
    …/civil_contracting/worker_sheet_settings.html | 2 ±
    …/worker_sheet_settings_other.html | 2 ±
    …/worker_sheet_settings_outstanding.html | 2 ±
    …/worker_sheet_settings_wages.html | 2 ±
    civil_contracting/docs/index.html | 63 +±
    civil_contracting/docs/user/wage-slip.md | 3 ±
    civil_contracting/docs/user/worker.md | 1 +
    civil_contracting/hooks.py | 2 ±
    setup.py | 2 ±
    28 files changed, 996 insertions(+), 78 deletions(-)
    create mode 100644 civil_contracting/docs/current/models/civil_contracting/running_account_bill.html
    create mode 100644 civil_contracting/docs/current/models/civil_contracting/running_account_bill_invoices.html
    create mode 100644 civil_contracting/docs/current/models/civil_contracting/running_account_bill_items.html
    INFO:bench.app:pulling shopping_cart
    From https://github.com/frappe/shopping_cart
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    /home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: 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. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    /home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating civil
    Executing frappe.patches.v7_0.add_communication_in_doc in civil (d66149f7ee)
    Success
    Updating frappe : [========================================]
    Updating civil_contracting : [========================================]
    Migrating erp
    Executing frappe.patches.v7_0.add_communication_in_doc in erp (44ea05c927)
    Success
    Updating frappe : [========================================]
    Migrating sunerp
    Executing frappe.patches.v5_0.style_settings_to_website_theme in sunerp (8f16163e62)
    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/ikhlas/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/home/ikhlas/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/ikhlas/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/ikhlas/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/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/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/ikhlas/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/commands.py”, line 220, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/migrate.py”, line 27, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
    if not run_single(patchmodule = patch):
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + “.execute”)()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/patches/v5_0/style_settings_to_website_theme.py”, line 10, in execute
    migrate_style_settings()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/patches/v5_0/style_settings_to_website_theme.py”, line 28, in migrate_style_settings
    website_theme.use_theme()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 55, in use_theme
    use_theme(self.name)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 62, in use_theme
    website_settings.save()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 247, in save
    self.run_before_save_methods()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 639, in run_before_save_methods
    self.run_method(“validate”)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 600, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 764, in composer
    return composed(self, method, *args, **kwargs)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 747, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/model/document.py”, line 594, in
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 17, in validate
    self.validate_home_page()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/website_settings.py”, line 22, in validate_home_page
    if self.home_page and not resolve_route(self.home_page):
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/router.py”, line 46, in resolve_route
    return get_generator_route(path)
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/router.py”, line 57, in get_generator_route
    generator_routes = get_generator_routes()
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/website/router.py”, line 84, in get_generator_routes
    {2}""".format(route_column_name, doctype, condition), as_dict=True):
    File “/home/ikhlas/frappe-bench/apps/frappe/frappe/database.py”, line 147, in sql
    self._cursor.execute(query)
    File “/home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
    self.errorhandler(self, exc, value)
    File “/home/ikhlas/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
    raise errorclass, errorvalue
    _mysql_exceptions.OperationalError: (1054, “Unknown column ‘page_name’ in ‘field list’”)
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==2.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/ikhlas/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/bench-repo/bench/commands/update.py”, line 61, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/ikhlas/bench-repo/bench/commands/update.py”, line 91, in _update
    patch_sites(bench=bench_path)
    File “/home/ikhlas/bench-repo/bench/utils.py”, line 131, in patch_sites
    run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/ikhlas/bench-repo/bench/utils.py”, line 468, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)

@Mohamed_Sajid you are in development branch, which is too buggy right now due to many changes and the change of celery…
if you want to have a 100% working mode you have to change to the production branch which as i think can use develop mode in it