Auto Update Failed: Failed to prepare for update: failed to unpack the new version
Hi there,
TeamCity can download the new version automatically. However it can not do the next step: failed to unpack the new version(拒绝访问。) .
> (拒绝访问。) means permisson denied.
I can see that it has already extract all the files to the folder in the target server.
After I add ```Everyone``` role to the UPDATE folder. It fails also.
Any thoughts? Thanks.
Please sign in to leave a comment.
Hi,
According to the error information, it appears that there is no permission to unpack the new version. If possible, please provide a screenshot of the error message.
Additionally, please gather and provide the teamcity-server.log and teamcity-update.log files for further investigation.
Large files can be uploaded via https://uploads.jetbrains.com/. Please let us know the exact id after the upload.
Hi,
this is the screenshot.
teamcity-server.log:
teamcity-update.log:
Hi,
Could you please share the complete teamcity-server.log and update.log files, preferably with debug logging enabled? Additionally, remember to revert to the default settings after collecting the necessary logs.
In the web UI, go to Administration | Diagnostics page. On the Troubleshooting tab, choose an active logging preset.Log files can be uploaded via https://uploads.jetbrains.com/. Please let us know the exact id after the upload.
sorry, how to set log with bebug logging enabled?
I have set the log level to ```DEBUG```, but it doesn't work, still can not output the error details…
Hi,
In the web UI, go to Administration | Diagnostics page. On the Troubleshooting tab, choose an active logging preset.
For more details, please refer to the screenshot.
The logs has uploaded.
Upload id: 2024_05_24_NU4jD3r71YxgBjHymFNEv9 (files: teamcity-update.log, teamcity-server.log)
Hi,
Based on the teamcity-upgrade.log, it appears that you upgraded the TeamCity server on 4-21. Have there been any modifications to your TeamCity server since then?
According to the teamcity-server.log , it seems that the access denied error occurred because the target directory is not empty.
So before upgrading the TeamCity server, please perform the following steps:
- Ensure that you have sufficient permissions to write to the folder.
- Verify that there is ample disk space available for the upgrade.
kindly execute the following actions:
1. Stop the TeamCity server.
2. Empty the D:\TeamCity\updates folder.
3. Start the TeamCity server.
4. Proceed with the TeamCity Server upgrade.
If it still doesn't help you, please collect the teamcity-server.log again and upload to https://uploads.jetbrains.com/. Please let us know the exact id after the upload.
We also can manually upgrade our TeamCity server, for more details, please refer to https://www.jetbrains.com/help/teamcity/upgrading-teamcity-server-and-agents.html#Manual+Update