While updating ERPNext, Pillow compilation error

Hello

I was updating my instance and got a pillow compilation error and then “Internal server error”

      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run

    self.build_extensions()
  File "/tmp/pip-build-J4O8y0/Pillow/setup.py", line 515, in build_extension

s
% (f, f))
ValueError: --enable-jpeg requested but jpeg not found, aborting.

----------------------------------------

Command “/home/nescode/frappe-bench/env/bin/python -c “import setuptools, tokeni
ze;file=‘/tmp/pip-build-J4O8y0/Pillow/setup.py’;exec(compile(getattr(tokeniz
e, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” ins
tall --record /tmp/pip-Wj9n58-record/install-record.txt --single-version-externa
lly-managed --compile --install-headers /home/nescode/frappe-bench/env/include/s
ite/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-J4O8y0/Pillow
Please install these dependencies using the command:
sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev li
blcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/nescode/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in ca
ll

return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main

rv = self.invoke(ctx)

File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invo
ke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invo
ke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invo
ke
return callback(*args, **kwargs)
File “/home/nescode/bench-repo/bench/cli.py”, line 240, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no
_backup, upgrade, force=force)
File “/home/nescode/bench-repo/bench/cli.py”, line 256, in update
before_update(bench=bench_path, requirements=requirements)
File “/home/nescode/bench-repo/bench/utils.py”, line 625, in before_update
validate_pillow_dependencies(bench, requirements)
File “/home/nescode/bench-repo/bench/utils.py”, line 633, in validate_pillow_d
ependencies
exec_cmd(“{pip} install Pillow”.format(pip=pip))
File “/home/nescode/bench-repo/bench/utils.py”, line 103, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install Pillow
nescode@nescodeerp:~/frappe-bench$ bench update
Already up-to-date.
You are using pip version 7.0.3, however version 7.1.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
Collecting Pillow
Using cached Pillow-3.0.0.tar.gz
Building wheels for collected packages: Pillow
Running setup.py bdist_wheel for Pillow
Complete output from command /home/nescode/frappe-bench/env/bin/python -c “imp
ort setuptools;file=‘/tmp/pip-build-tOhzh9/Pillow/setup.py’;exec(compile(ope
n(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” bdist_wheel -d /tm
p/tmpLQ2iN8pip-wheel-:
Single threaded build, not installing mp_compile:1 processes
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpGradientFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageCms.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PngImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/FpxImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/CurImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/EpsImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/FontFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegPresets.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PyAccess.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/WalImageFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PdfImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/BdfFontFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PSDraw.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PcdImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageEnhance.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/GbrImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageStat.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/GribStubImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/Hdf5StubImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/_util.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PcxImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpPaletteFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/OleFileIO.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/Jpeg2KImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/BufrStubImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffTags.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/XbmImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/GifImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/XpmImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/SgiImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/features.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMode.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PixarImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImtImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/SpiderImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/WebPImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageQt.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PpmImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/IcnsImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/TgaImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFilter.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/FliImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/DcxImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/TarIO.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageChops.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/GdImageFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/Image.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFont.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PaletteFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageSequence.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/SunImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/McIdasImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/_binary.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ContainerIO.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PsdImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageColor.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/MpegImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/IptcImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/MpoImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageWin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePath.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/WmfImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ExifTags.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/MspImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/FitsStubImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PalmImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePalette.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/PcfFontFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTk.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMorph.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw2.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageOps.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMath.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/XVThumbImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/init.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageGrab.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/IcoImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFile.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageShow.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/BmpImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
copying PIL/MicImagePlugin.py → build/lib.linux-x86_64-2.7/PIL
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
warning: manifest_maker: standard file ‘-c’ not found

reading manifest file ‘Pillow.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘Pillow.egg-info/SOURCES.txt’
copying PIL/OleFileIO-README.md → build/lib.linux-x86_64-2.7/PIL
running build_ext
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-tOhzh9/Pillow/setup.py”, line 767, in
zip_safe=not debug_build(),
File “/usr/lib/python2.7/distutils/core.py”, line 152, in setup
dist.run_commands()
File “/usr/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/wheel
/bdist_wheel.py”, line 175, in run
self.run_command(‘build’)
File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/lib/python2.7/distutils/command/build.py”, line 128, in run
self.run_command(cmd_name)
File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/lib/python2.7/distutils/command/build_ext.py”, line 339, in run
self.build_extensions()
File “/tmp/pip-build-tOhzh9/Pillow/setup.py”, line 515, in build_extensions
% (f, f))
ValueError: --enable-jpeg requested but jpeg not found, aborting.


Failed building wheel for Pillow
Failed to build Pillow
Installing collected packages: Pillow
Running setup.py install for Pillow
Complete output from command /home/nescode/frappe-bench/env/bin/python -c “i
mport setuptools, tokenize;file=‘/tmp/pip-build-tOhzh9/Pillow/setup.py’;exec
(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’),
file, ‘exec’))” install --record /tmp/pip-rmLgFV-record/install-record.txt
–single-version-externally-managed --compile --install-headers /home/nescode/fr
appe-bench/env/include/site/python2.7/Pillow:
Single threaded build, not installing mp_compile:1 processes
running install
running build
running build_py
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
warning: manifest_maker: standard file ‘-c’ not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-tOhzh9/Pillow/setup.py", line 767, in <module>
    zip_safe=not debug_build(),
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/set

uptools/command/install.py", line 61, in run
return orig.install.run(self)
File “/usr/lib/python2.7/distutils/command/install.py”, line 601, in run
self.run_command(‘build’)
File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/lib/python2.7/distutils/command/build.py”, line 128, in run
self.run_command(cmd_name)
File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/lib/python2.7/distutils/command/build_ext.py”, line 339, in run

    self.build_extensions()
  File "/tmp/pip-build-tOhzh9/Pillow/setup.py", line 515, in build_extension

s
% (f, f))
ValueError: --enable-jpeg requested but jpeg not found, aborting.

----------------------------------------

Command “/home/nescode/frappe-bench/env/bin/python -c “import setuptools, tokeni
ze;file=‘/tmp/pip-build-tOhzh9/Pillow/setup.py’;exec(compile(getattr(tokeniz
e, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” ins
tall --record /tmp/pip-rmLgFV-record/install-record.txt --single-version-externa
lly-managed --compile --install-headers /home/nescode/frappe-bench/env/include/s
ite/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-tOhzh9/Pillow
Please install these dependencies using the command:
sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev li
blcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/nescode/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in ca
ll

return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main

rv = self.invoke(ctx)

File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invo
ke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invo
ke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invo
ke
return callback(*args, **kwargs)
File “/home/nescode/bench-repo/bench/cli.py”, line 240, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no
_backup, upgrade, force=force)
File “/home/nescode/bench-repo/bench/cli.py”, line 256, in update
before_update(bench=bench_path, requirements=requirements)
File “/home/nescode/bench-repo/bench/utils.py”, line 625, in before_update
validate_pillow_dependencies(bench, requirements)
File “/home/nescode/bench-repo/bench/utils.py”, line 633, in validate_pillow_d
ependencies
exec_cmd(“{pip} install Pillow”.format(pip=pip))
File “/home/nescode/bench-repo/bench/utils.py”, line 103, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install Pillow
nescode@nescodeerp:~/frappe-bench$

Can you pls help me resolve the error?

Sunil

After installing pillow another other require dependencies manually, got this error:

nescode@nescodeerp:~$ sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

[sudo] password for nescode:
Reading package lists… Done
Building dependency tree
Reading state information… Done
liblcms2-dev is already the newest version.
libjpeg8-dev is already the newest version.
libwebp-dev is already the newest version.
python-tk is already the newest version.
tcl8.5-dev is already the newest version.
libtiff5-dev is already the newest version.
tk8.5-dev is already the newest version.
zlib1g-dev is already the newest version.
libfreetype6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
nescode@nescodeerp:~$ cd frappe-bench/
nescode@nescodeerp:~/frappe-bench$ bench update
Already up-to-date.
You are using pip version 7.0.3, however version 7.1.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch master → FETCH_HEAD
    Already up-to-date.
    Database backed up /home/nescode/frappe-bench/sites/site1.local/private/backups/20151020_48828291_database.sql.gz
    Migrating site1.local
    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/nescode/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/nescode/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
    return self.main(*args, **kwargs)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
    rv = self.invoke(ctx)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
    return callback(*args, **kwargs)
    File “/home/nescode/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/nescode/frappe-bench/apps/frappe/frappe/commands.py”, line 214, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/nescode/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 21, in run_all
    executed = [p[0] for p in frappe.db.sql(“”“select patch from tabPatch Log”“”)]
    File “/home/nescode/frappe-bench/apps/frappe/frappe/database.py”, line 105, in sql
    self.connect()
    File “/home/nescode/frappe-bench/apps/frappe/frappe/database.py”, line 51, in connect
    use_unicode=True, charset=‘utf8’)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
    return Connection(*args, **kwargs)
    File “/home/nescode/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init
    super(Connection, self).init(*args, **kwargs2)
    _mysql_exceptions.OperationalError: (2002, ‘Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 “Connection refused”)’)
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/nescode/bench-repo/bench/cli.py”, line 60, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
    return callback(*args, **kwargs)
    File “/home/nescode/bench-repo/bench/cli.py”, line 240, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/nescode/bench-repo/bench/cli.py”, line 273, in update
    patch_sites(bench=bench_path)
    File “/home/nescode/bench-repo/bench/utils.py”, line 157, in patch_sites
    run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/nescode/bench-repo/bench/utils.py”, line 488, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)
    nescode@nescodeerp:~/frappe-bench$

Read the trace. MySQL is not stated.

Yes, mysqld was down. Thank you so much @rmehta :slight_smile:

Just outlining the steps in case someone need:

Step 1: sudo service mysql start
Step 2: bench update

Sunil