Instant Reload Not Working Since 8.0.0

Bug Summary

Since the last few updates Instant Reload doesn’t work, when you turn it on the site doesnt refresh then get a 502 error.

Steps to reproduce

Start a site

Turn on Instant reload

view in browser

Environment Info

Describe your environment.

Mac OS Sonoma 14.0

Supporting info

{"level":"warn","linuxEdition":null,"localVersion":"8.0.1+6490","message":"Electron Event ready","osArch":"x64","osPlatform":"darwin","osRelease":"23.0.0","timestamp":"2023-11-01T09:54:29.297Z","windowsEdition":null}

{"class":"Process","level":"warn","message":"2023-11-01T09:54:38.495511Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 55253","process":"mysql","thread":"main","timestamp":"2023-11-01T09:54:40.051Z"}

{"class":"Process","level":"warn","message":"2023-11-01T09:54:38.511861Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-01T09:54:40.051Z"}

{"class":"Process","level":"warn","message":"2023-11-01T09:54:38.528394Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-01T09:54:40.052Z"}

{"class":"Process","level":"warn","message":"2023-11-01T09:54:39.989645Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-01T09:54:40.052Z"}

{"class":"Process","level":"warn","message":"2023-11-01T09:54:40.050841Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10204 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-01T09:54:40.052Z"}

{"level":"warn","linuxEdition":null,"localVersion":"8.0.1+6490","message":"Electron Event ready","osArch":"x64","osPlatform":"darwin","osRelease":"23.0.0","timestamp":"2023-11-02T09:11:44.447Z","windowsEdition":null}

{"class":"Process","level":"warn","message":"2023-11-02T09:11:53.456997Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 4202","process":"mysql","thread":"main","timestamp":"2023-11-02T09:11:54.642Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:11:53.465929Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:11:54.642Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:11:53.475523Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-02T09:11:54.643Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:11:54.585561Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:11:54.643Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:11:54.641909Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10144 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:11:54.644Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:12:30.748007Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 4333","process":"mysql","thread":"main","timestamp":"2023-11-02T09:12:31.212Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:12:30.750901Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:12:31.213Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:12:30.751910Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-02T09:12:31.213Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:12:31.183276Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:12:31.214Z"}

{"class":"Process","level":"warn","message":"2023-11-02T09:12:31.212254Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10144 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-02T09:12:31.214Z"}

{"class":"Process","level":"warn","message":"2023-11-02T13:28:30.536914Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 17147","process":"mysql","thread":"main","timestamp":"2023-11-02T13:28:31.728Z"}

{"class":"Process","level":"warn","message":"2023-11-02T13:28:30.548325Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-02T13:28:31.729Z"}

{"class":"Process","level":"warn","message":"2023-11-02T13:28:30.549495Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-02T13:28:31.729Z"}

{"class":"Process","level":"warn","message":"2023-11-02T13:28:31.651881Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-02T13:28:31.730Z"}

{"class":"Process","level":"warn","message":"2023-11-02T13:28:31.728012Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10204 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-02T13:28:31.731Z"}

{"level":"warn","linuxEdition":null,"localVersion":"8.0.1+6490","message":"Electron Event ready","osArch":"x64","osPlatform":"darwin","osRelease":"23.0.0","timestamp":"2023-11-08T11:22:25.258Z","windowsEdition":null}

{"level":"warn","linuxEdition":null,"localVersion":"8.0.2+6509","message":"Electron Event ready","osArch":"x64","osPlatform":"darwin","osRelease":"23.0.0","timestamp":"2023-11-08T11:24:39.998Z","windowsEdition":null}

{"class":"Process","level":"warn","message":"2023-11-08T11:24:46.768397Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 15331","process":"mysql","thread":"main","timestamp":"2023-11-08T11:24:48.403Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:24:46.783246Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:24:48.404Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:24:46.797686Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-08T11:24:48.405Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:24:48.340637Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:24:48.405Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:24:48.403243Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10204 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:24:48.406Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:25:23.065535Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 15439","process":"mysql","thread":"main","timestamp":"2023-11-08T11:25:23.867Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:25:23.067321Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:25:23.867Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:25:23.076554Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-08T11:25:23.867Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:25:23.824545Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:25:23.868Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:25:23.866638Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10204 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:25:23.869Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:27:49.254671Z 0 [System] [MY-010116] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 15611","process":"mysql","thread":"main","timestamp":"2023-11-08T11:27:49.624Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:27:49.256234Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:27:49.624Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:27:49.257194Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","process":"mysql","thread":"main","timestamp":"2023-11-08T11:27:49.625Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:27:49.604237Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:27:49.625Z"}

{"class":"Process","level":"warn","message":"2023-11-08T11:27:49.624192Z 0 [System] [MY-010931] [Server] %%userDataPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16' socket: '%%site.runData%%/mysql/mysqld.sock' port: 10204 MySQL Community Server - GPL.","process":"mysql","thread":"main","timestamp":"2023-11-08T11:27:49.626Z"}

Hi @DanC

I’m on Ventura 13.6 using Local 8.1.0 and had no problems using Instant Reload on a new blank install. Is it not working for a specific site you’ve been working on? Or many sites? If you create a new, blank site in Local and setup Instant Reload do you get the same errors there?

Yes it does seem to work on new installs, but not ones previous to the updates.

Hi @DanC

As another test, for sites that it’s not working on, could you try re-importing them into Local and then see if they resume normal function?

The steps would look like this:

  • Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
  • Once you have those copied, completely delete the site from Local
  • Restart Local/your machine
  • Reimport the site back into Local. You can refer here on how to Restore from only Local site files