Unable to update new info after update

Hello everyone,

after completing update by executing # bench update
then, i got error message, and unable to update any new info.

Also tried to install PyPDF or PyPDF2, and

Trying to enable this module by following command but still getting that error.
:~/frappe-bench$ ./env/bin/pip install PyPDF

Please help me to fix the issue.

yesterday, i use this, to solving that error.
cd ~/.bench
git reset --hard
git pull
bench update

i tried but not succeed, this show as below,

frappe@pink:~$ cd frappe-bench/
frappe@pink:~/frappe-bench$ pwd
/home/frappe/frappe-bench
frappe@pink:~/frappe-bench$ cd …
frappe@pink:~$ pwd
/home/frappe
frappe@pink:~$ git reset --hard
fatal: Not a git repository (or any of the parent directories): .git
frappe@pink:~$ cd frappe-bench/
frappe@pink:~/frappe-bench$ git reset --hard
fatal: Not a git repository (or any of the parent directories): .git
frappe@pink:~/frappe-bench$

~frappe-bench$ cd ~/.bench
~/.bench$ git reset --hard
~/.bench$ git pull

~/.bench$ cd …
~$/cd frappe-bench/
~$frappe-bench$ bench migrate

thanks @komsel2228

i tried with your commands, but the issue is still there, unable to update new info.

frappe@pink:~/frappe-bench$ cd ~/.bench/
frappe@pink:~/.bench$ pwd
/home/frappe/.bench
frappe@pink:~/.bench$ git reset --hard
HEAD is now at 2b67155 Merge pull request #345 from shreyasp/max-redis-mem
frappe@pink:~/.bench$ cd …/frappe-bench/
frappe@pink:~/frappe-bench$ cd -
/home/frappe/.bench
frappe@pink:~/.bench$ git pull
Already up-to-date.
frappe@pink:~/.bench$ cd …
frappe@pink:~$ cd frappe-bench/
frappe@pink:~/frappe-bench$ bench migrate
Migrating testsite.com
Updating frappe : [========================================]
Updating erpnext : [========================================]
Syncing help database…
frappe@pink:~/frappe-bench$

em…
try, bench update and reboot your server.

it still doesn’t work after bench update and reboot the server, same error.

i also provide the pip search info,

frappe@pink:~$ pip search pyPdf
pdftools (1.1.0) - A collection of convenience scripts for pdf manipulation, based on the PyPdf2 package.
pyjon.reports (0.6) - Pyjon.Reports is a module bridging z3c.rml, genshi and pypdf together to provide a
simple mean of creating templated pdf documents in python.
pyPdf (1.13) - PDF toolkit
INSTALLED: 1.13 (latest)
PyPDF2 (1.26.0) - PDF toolkit
pypdf2table (0.2.2) - PDF table extraction tool
pypdf2xml (0.3) - A reimplementation of pdftoxml in Python, using pdfMiner. Handles unicode characters
better.
pyPdfFinder (0.2) - A pdf api created to easy find and write words at a pdf file
pypdflib (0.1.a3) - Pango Cairo based Python PDF Library
PyPDFLite (0.1.40) - Simple PDF Writer.
pypdfml (0.1.0alpha) - Simple XML wrapper for reportlab.
pypdfocr (0.9.1) - Converts a scanned PDF into an OCR’ed pdf using Tesseract-OCR and Ghostscript
pypdfparse (0.3.1) - A PDF Inspector
pypdftk (0.3) - Python wrapper for PDFTK
frappe@pink:~$

Try this command:

bench update --requirements

still not fix the issue after executing that command,

frappe@pink:~/frappe-bench$ bench update --requirements
[sudo] password for frappe:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started


Bench: Open source installer + admin for Frappe and ERPNext (https://erpnext.com)

still looking for solution :frowning:
thanks a lot

@bzero,

try installing pypdf package manually from frappe-bench using below command

./env/bin/pip install pypdf

Thanks, Makarand

frappe@pink:~/frappe-bench$ ./env/bin/pip install pypdf

Still not work after executing that command.

anyone has idea please?
still unable to post or update any data :frowning:

i try and try again and again in my vm and docker, and always success.
first i get error pypdf

i do this:
frappe-bench$ cd ~/.bench
~/.bench$ git reset --hard
~/.bench$ git pull

~/.bench$ cd …
~$/cd frappe-bench/bench update
~$frappe-bench$ bench migrate

and always success.

oke, try again:
frappe-bench$ cd apps/frappe
frappe-bench$ git reset --hard
frappe-bench$ git pull

frappe-bench$ cd apps/erpnext
frappe-bench$ git reset --hard
frappe-bench$ git pull

frappe-bench$ cd ~/.bench
~/.bench$ git reset --hard
~/.bench$ git pull

~/.bench$ cd …
~$/cd frappe-bench/
frappe-bench$ bench update
frappe-bench$ bench migrate

if you get error again:
sudo pip install --upgrade pip
and bench update and migrate again
or
bench update --requirements
bench migrate

check your version (now):
frappe-bench$ bench version
erpnext 7.1.20
frappe 7.1.21

thanks @komsel2228 for your detail.

Unfortunately, i am still getting same error, here is what i did,

frappe@pink:~$ cd frappe-bench/
frappe@pink:~/frappe-bench$ cd apps/frappe/
frappe@pink:~/frappe-bench/apps/frappe$ git reset --hard
HEAD is now at 47ecf4c Merge branch ‘master’ into develop
frappe@pink:~/frappe-bench/apps/frappe$ git pull
Already up-to-date.
frappe@pink:~/frappe-bench/apps/frappe$ cd ~/.bench/
frappe@pink:~/.bench$ git reset --hard
HEAD is now at 2b67155 Merge pull request #345 from shreyasp/max-redis-mem
frappe@pink:~/.bench$ git pull
Already up-to-date.
frappe@pink:~/.bench$ cd …
frappe@pink:~$ cd frappe-bench/
frappe@pink:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
INFO:bench.app:pulling frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch develop → FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch develop → FETCH_HEAD
    Already up-to-date.
    Migrating testsite.com
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Syncing help database…
    Wrote ./assets/js/print_format_v3.min.js - 18k
    Wrote ./assets/js/frappe-web.min.js - 132k
    Wrote ./assets/js/form.min.js - 138k
    Wrote ./assets/js/report.min.js - 159k
    Wrote ./assets/js/erpnext.min.js - 84k
    Wrote ./assets/css/list.min.css - 8k
    Wrote ./assets/js/item-dashboard.min.js - 6k
    Wrote ./assets/js/d3.min.js - 343k
    Wrote ./assets/css/report.min.css - 8k
    Wrote ./assets/css/frappe-web.css - 54k
    Wrote ./assets/js/list.min.js - 116k
    Wrote ./assets/js/dialog.min.js - 65k
    Wrote ./assets/js/desk.min.js - 251k
    Wrote ./assets/css/form.min.css - 4k
    Wrote ./assets/js/editor.min.js - 27k
    Wrote ./assets/css/erpnext.css - 3k
    Wrote ./assets/js/libs.min.js - 886k
    Wrote ./assets/js/erpnext-web.min.js - 2k
    Wrote ./assets/css/desk.min.css - 266k
    Wrote ./assets/css/module.min.css - 2k
    [sudo] password for frappe:
    frappe-bench-workers:frappe-bench-frappe-schedule: stopped
    frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
    frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
    frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
    frappe-bench-web:frappe-bench-node-socketio: stopped
    frappe-bench-web:frappe-bench-frappe-web: stopped
    frappe-bench-workers:frappe-bench-frappe-schedule: started
    frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
    frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
    frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
    frappe-bench-web:frappe-bench-frappe-web: started
    frappe-bench-web:frappe-bench-node-socketio: started

Bench: Open source installer + admin for Frappe and ERPNext (https://erpnext.com)

frappe@pink:~/frappe-bench$ bench migrate
Migrating testsite.com
Updating frappe : [========================================]
Updating erpnext : [========================================]
Syncing help database…
frappe@pink:~/frappe-bench$ bench version
erpnext 7.1.20
frappe 7.1.21
frappe@pink:~/frappe-bench$

any solutions for this i getting issue in pdf while migrating from v13 to v14 in localhost