Frappe site , stuck in updating status

Hello,

We were successful in creating a bench. After trying relogin after a day, the CSS was not proper, So we decided to rebuld the bench and do bench migrate.

since then, after starting bench, It constantly says site is being updated, not sure what the issue is?

followng are the logs on bench
05:57:07 web.1 | _epoch = datetime.utcfromtimestamp(0)
05:57:08 web.1 | /home/frappe/new-bench/apps/frappe/frappe/utils/caching.py:99: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
05:57:08 web.1 | func.expiration = datetime.utcnow() + timedelta(seconds=func.ttl)
05:57:08 web.1 | * Debugger is active!
05:57:08 web.1 | * Debugger PIN: 153-616-510
05:57:08 watch.1 | yarn run v1.22.22
05:57:08 watch.1 | $ node esbuild --watch --live-reload
05:57:18 web.1 | /home/frappe/new-bench/apps/frappe/frappe/utils/data.py:302: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
05:57:18 web.1 | dt = convert_utc_to_system_timezone(datetime.datetime.utcnow())
05:57:18 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:18] “GET / HTTP/1.1” 503 -
05:57:18 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:18] “GET /assets/frappe/dist/css/website.bundle.3TZQHFKJ.css HTTP/1.1” 200 -
05:57:18 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:18] “GET /assets/frappe/dist/js/frappe-web.bundle.5Z254UFX.js HTTP/1.1” 200 -
05:57:19 web.1 | /home/frappe/new-bench/apps/frappe/frappe/utils/data.py:302: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
05:57:19 web.1 | dt = convert_utc_to_system_timezone(datetime.datetime.utcnow())
05:57:19 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:19] “GET /website_script.js HTTP/1.1” 503 -
05:57:19 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:19] “GET /assets/frappe/css/fonts/inter/InterVariable.woff2 HTTP/1.1” 200 -
05:57:21 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:21] “GET /assets/frappe/dist/js/file_uploader.bundle.EQGF66XW.js HTTP/1.1” 200 -
05:57:24 web.1 | /home/frappe/new-bench/apps/frappe/frappe/utils/data.py:302: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
05:57:24 web.1 | dt = convert_utc_to_system_timezone(datetime.datetime.utcnow())
05:57:24 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:24] “GET / HTTP/1.1” 503 -
05:57:24 web.1 | /home/frappe/new-bench/apps/frappe/frappe/utils/data.py:302: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
05:57:24 web.1 | dt = convert_utc_to_system_timezone(datetime.datetime.utcnow())
05:57:24 web.1 | 49.36.33.26 - - [26/Aug/2024 05:57:24] “GET /website_script.js HTTP/1.1” 503 -
05:57:31 watch.1 | Browserslist: caniuse-lite is outdated. Please run:
05:57:31 watch.1 | npx update-browserslist-db@latest
05:57:31 watch.1 | Why you should do it regularly: GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
05:58:39 watch.1 | Watching for changes…

Hi @Yash_Gandhi:

Use bench set-config maintenance_mode 0

1 Like

Thank you this worked. @avc .
I will try and figure, what does this command do.

This command bench set-config maintenance_mode 0 turns off maintenance mode, allowing everyone to use the system normally again. Maintenance mode is like putting the site on hold for updates or fixes, and this command brings it back to regular use.

3 Likes

Thanks @NCP