tao-shen Claude Opus 4.6 commited on
Commit
9d33cda
·
1 Parent(s): 4b49862

fix: exclude huggingrun.log from rsync to prevent garbled restore

Browse files

The 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>

Files changed (1) hide show
  1. 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 = [