You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,44 @@ Log output format:
168
168
}
169
169
```
170
170
171
+
## Troubleshooting
172
+
173
+
If you encounter errors during installation, here are common error codes and their solutions:
174
+
175
+
| Error Code | Message | Solution |
176
+
|------------|---------|----------|
177
+
|`EACCES`| Permission denied | Check write permissions for `~/.config/opencode/agents/`. Run `chmod -R u+w ~/.config/opencode/` or use `sudo` if needed. |
178
+
|`EPERM`| Operation not permitted | The file may be locked or in use. Close any editors or applications using the agent files and try again. |
179
+
|`ENOSPC`| Disk full | Free up disk space and retry the installation. |
180
+
|`EROFS`| Read-only file system | The target directory is on a read-only filesystem. Remount with write permissions or choose a different config location. |
181
+
|`EAGAIN`| Resource temporarily unavailable | A transient error. The installer retries automatically, but if it persists, wait a moment and try again. |
182
+
|`EBUSY`| File is busy or locked | Another process is using the file. Close any applications that might have the agent files open. |
183
+
|`ENOENT`| Source file not found | The agent source files are missing from the package. Try reinstalling with `bun add opencode-plugin-opencoder`. |
184
+
|`EEXIST`| Target already exists | An agent file already exists. The installer should handle this, but you can manually remove files in `~/.config/opencode/agents/` if needed. |
185
+
|`EMFILE` / `ENFILE`| Too many open files | System file descriptor limit reached. Close some applications or increase your system's `ulimit`. |
186
+
|`EISDIR`| Expected file but found directory | A directory exists where an agent file should be. Remove the conflicting directory from `~/.config/opencode/agents/`. |
187
+
188
+
### Manual Recovery
189
+
190
+
If automatic installation fails, you can manually copy the agents:
0 commit comments