Skip to content

Commit b6cad8f

Browse files
committed
more debug
1 parent fc0078b commit b6cad8f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

server/cmd/api/api/chromium.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,21 @@ func (s *ApiService) UploadExtensionsAndRestart(ctx context.Context, request oap
182182
return oapi.UploadExtensionsAndRestart500JSONResponse{InternalErrorJSONResponse: oapi.InternalErrorJSONResponse{Message: "failed to write overlay flags"}}, nil
183183
}
184184
_ = os.Chown("/chromium/flags", 0, 0)
185+
_ = os.Chmod("/chromium/flags", 0o644)
185186
log.Info("wrote /chromium/flags", "paths", strings.Join(paths, ","))
186187

188+
// Debug: list directories to verify ownership/permissions
189+
if out, err := exec.Command("ls", "-alh", "/home/kernel/extensions").CombinedOutput(); err == nil {
190+
log.Info("ls -alh /home/kernel/extensions", "out", string(out))
191+
} else {
192+
log.Info("ls -alh /home/kernel/extensions failed", "err", err.Error(), "out", string(out))
193+
}
194+
if out, err := exec.Command("ls", "-alh", "/chromium").CombinedOutput(); err == nil {
195+
log.Info("ls -alh /chromium", "out", string(out))
196+
} else {
197+
log.Info("ls -alh /chromium failed", "err", err.Error(), "out", string(out))
198+
}
199+
187200
// Subscribe to upstream updates BEFORE triggering restart to avoid races
188201
updates, cancelSub := s.upstreamMgr.Subscribe()
189202
defer cancelSub()

0 commit comments

Comments
 (0)