Spaces:
Sleeping
Sleeping
fix: exclude huggingrun.log from rsync to prevent garbled restore
Browse filesThe old log file (with Unicode chars) was being restored from dataset
via /var/log rsync, overwriting the clean truncated log on startup.
The log is already uploaded separately via upload_file.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- entrypoint.py +1 -1
entrypoint.py
CHANGED
|
@@ -35,7 +35,7 @@ PIP_FILE = os.path.join(PERSIST_PATH, "pip-packages.txt")
|
|
| 35 |
SYNC_DIRS = ["/home", "/root", "/usr/local", "/opt", "/var/lib", "/var/log", "/etc"]
|
| 36 |
|
| 37 |
# Exclude from rsync (relative paths - rsync matches from transfer root)
|
| 38 |
-
RSYNC_EXCLUDES = ["*.sock", "*.pid", "*.lock"]
|
| 39 |
|
| 40 |
# Extra excludes only for /etc/ restore (container-managed files)
|
| 41 |
ETC_RESTORE_EXCLUDES = [
|
|
|
|
| 35 |
SYNC_DIRS = ["/home", "/root", "/usr/local", "/opt", "/var/lib", "/var/log", "/etc"]
|
| 36 |
|
| 37 |
# Exclude from rsync (relative paths - rsync matches from transfer root)
|
| 38 |
+
RSYNC_EXCLUDES = ["*.sock", "*.pid", "*.lock", "huggingrun.log"]
|
| 39 |
|
| 40 |
# Extra excludes only for /etc/ restore (container-managed files)
|
| 41 |
ETC_RESTORE_EXCLUDES = [
|