Skip to main content
Graduate
October 18, 2025
Solved

"An error occurred while synchronizing metadata." on VS Code MacOS 26 Aarch64

  • October 18, 2025
  • 15 replies
  • 2643 views

Just upgraded to the latest version of STM32Cube for VS Code extension (3.6.4) and now the extension stopped to work. I've tried reinstalling the extension pack several times. Every time after the bundle was installed an error show up saying "An error occurred while synchronizing metadata. Please try run "STM32Cube: Install prerequisite bundle" and "STM32Cube: Synchronize pack list". Or work offline."
Running "STM32Cube: Install prerequisite bundle" from the VS Code command palette will result in a message saying "No STM32Cube bundle to install", subsequently running "STM32Cube: Synchronize pack list" will return the original metadata synchronization error.

I checked my HOME/Library/"Application Support"/stmcube/ directory, the bundle/ folder seems to contain what I expected, things like cmake, gnu-gdb-for-stm32 or the stink-gdbserver, etc. However, the packs/ folder is empty, not sure if that's the problem. 

I checked the output log of STM32Cube Core and found the following:

```
[Info] 'cube pack sync' exited with signal null [1]
[Error] Failed to synchronize PDSC metadata: Syncing metadata information /Users/poshengcheng/Library/Application Support/stm32cube/packs
Snapshot is already up to date
Syncing online metadata information /Users/poshengcheng/Library/Application Support/stm32cube/packs
Error during metadata sync: Error: Unexpected close tag
Line: 4
Column: 117
Char: >
```
Additionally, after I selected a MCU device in "Setup STM32Cube Project(s)", downloading the supporting packs for the specified device always fails. The following message is from the output log of STM32Cube CMake Build:
```
2025-10-17 22:58:45.028 [Info] Pack STMicroelectronics.stm32l4xx_dfp.1.1.0 (1/1)


2025-10-17 22:58:48.060 [Info] Unable to install pack STMicroelectronics.stm32l4xx_dfp.1.1.0

2025-10-17 22:58:48.061 [Info] Error during installation: Error: Could not fetch content of pack-URL: https://developer.st.com/st-pack-server/api/v1/pack/STMicroelectronics.stm32l4xx_dfp.1.1.0.pack, got: 503 - Service Unavailable

2025-10-17 22:58:48.069 [Info] 'cube pack install STMicroelectronics.stm32l4xx_dfp.1.1.0' exited with signal null [1]
2025-10-17 22:58:48.071 [Error] Failed to download pack 'STMicroelectronics.stm32l4xx_dfp.1.1.0'. Please check your setup and try again (via command line 'cube pack install <pack_id>' or via command palette 'STM32Cube: Restore STM32Cube CMake projects configuration')
```
So far I've only been able to build the project but attempts to debug have failed since the stm32cube doesn't seem to be able to setup the project with the selected device. 
    This topic has been closed for replies.
    Best answer by Julien D

    All,

    Fyi the infrastructure has been fixed, cube pack sync should be ok now.

    Apologies for the inconvenience.

    15 replies

    Visitor II
    October 18, 2025

    WH485_0-1760788302078.png

    I'm the same; many chips can't be selected—they can be compiled but not flashed.

     

    Graduate
    October 18, 2025

    For some reason if the device pack failed to be downloaded you won't be able to select that family again - if you delete the HOME/Library/"Application Support"/stmcube/ folder and run "STM32Cube: Install prerequisite bundle" again you might be able to select every device again.

    But for me, downloading the device pack still fails every time.

    Graduate
    October 18, 2025

    Same issue here, had to go back to old version.

    Explorer
    October 18, 2025

    Same issue on VS Code Windows as well. It's happening to both my computers.

    Visitor II
    October 19, 2025

    I also encountered the same problem on WINDOWS, and now I am completely unable to use it

    Visitor II
    October 19, 2025

    Can confirm its affecting me as well on Linux.
    Seems like the pack api server is down/broken. Hopefully ST can fix it this weekend.
    I can build projects but not debug with the stlink gdb server. Went back to using cortex-debug and that is working OK for now.

    Visitor II
    October 19, 2025

    Has there been a solution found?

     

    Explorer
    October 19, 2025

    I’m facing a similar issue after updating to 3.6.4 — it seems like the pack synchronization is failing due to a metadata parsing error (Unexpected close tag) on the ST pack server. The 503 response also suggests a temporary server-side issue. You could try clearing the .stmcube/packs folder and re-syncing once the ST server stabilizes. Running cube --pack-update from the CLI sometimes helps too. Hopefully ST resolves this soon, as the new version seems to break metadata sync on macOS (Aarch64).

    Graduate
    October 19, 2025

    To the STM32 team, may I suggest that you don't publish updates on a Friday if you're not going to be around during the weekend to fix issues like this?

    ST Employee
    October 19, 2025

    @ecorm,

    Thank you for your kind advice. I want to reassure you that we are not "playing this game" at all. Our VSCode-related releases are always pushed on Mondays. We conduct thorough validation, but given the wide variety of combinations involving the marketplace, third parties, and Microsoft itself, some issues may still arise.

    For your reference, our latest update was released on October 13th. This update moved the extension pack from pre-release to release and updated metadata only. All other features remain the same as in the pre-release version published on September 29th. Over the two weeks between releases, we had more than 3,000 end users and almost no complaints.

    Interestingly, the move to release exposed the extension to a wider user base and more varied setups, which has led to the issues you are reporting here.
    We worked over the weekend to address this, and I can confirm progress. We will update you as soon as possible.

    Graduate
    October 19, 2025

    Thank you for pointing out the date of the last update, and for your valiant efforts working over the weekend to resolve this. It's appreciated.

    I'm also mindful that I made the conscious decision to participate in the pre-release, and understand that there are risks involved for early adoption.

    Graduate
    October 19, 2025

    at this point I am pretty sure the problem is st's server hosting APIs for accessing the device packs. a simple curl https://developer.st.com/st-pack-server/api/v1/ would return a html with the following content: "

    An error occurred while processing your request"

    hopefully st can address the problem asap this Monday.

     

    Explorer
    October 20, 2025

    I have the same issue. 

    AdamHamilton_0-1760946253985.png

    and running either of these commands brings the error back or says "No STM32Cube bundle to install"