Commit 72c9814
authored
This partially reverts commit 9bd46a1.
Root Cause:
1. The exec > >(tee -a "${POST_STARTUP_OUTPUT_FILE}") creates a tee
subprocess that remains alive
2. The background process that waits for Jupyter inherits file
descriptors from tee
3. When the main startup script exits, tee subprocess stays alive
because the background process still has the pipes open
4. google-startup-scripts.service remains stuck in "activating" state
indefinitely, waiting for all child processes
5. google-dataproc-agent.service has
After=google-startup-scripts.service, so it never starts
6. This creates a race condition where the background Jupyter
configuration runs while Dataproc is still writing its config
Symptoms:
- google-startup-scripts.service stuck in "activating" for hours
- google-dataproc-agent.service never starts (ConditionResult=no)
1 parent b7bf009 commit 72c9814
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
921 | | - | |
| 920 | + | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| |||
0 commit comments