You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vagrant配置Ubuntu17.10安装Bonobo后执行bonobo version失败求助排查

Troubleshooting Bonobo Install Failures Post-Vagrant Provision

Hey there! Let's walk through the most common culprits that cause Bonobo to seem like it installed fine during vagrant provision, but throw errors when you run bonobo version over SSH:

  • PATH/Environment Variable Mismatch
    Vagrant runs provisioning scripts as the root user by default (unless you explicitly set privileged: false in your Vagrantfile). When you SSH into the VM, you're almost certainly using the regular vagrant user. If your install script added Bonobo's directory to only root's PATH, or installed it in a location that's not accessible to the vagrant user's PATH, the shell won't find the bonobo command.
    To check this: Run echo $PATH in your SSH session, then run sudo echo $PATH to compare root's PATH. Look for the directory where Bonobo was installed—if it's missing from the regular user's PATH, that's your issue.

  • Shell Configuration Not Reloaded
    If your provision script modified a shell config file (like ~/.bashrc, ~/.profile, or /etc/profile) to update the PATH, those changes don't apply to already running SSH sessions. The provision script runs in a non-interactive shell, so it doesn't trigger a reload automatically.
    Fix this quickly by either logging out and back into SSH, or running source ~/.bashrc (or the appropriate config file for your shell) in your current session.

  • Silent Installation Errors
    Just because vagrant provision outputs "everything looks normal" doesn't mean there weren't hidden failures. Maybe a dependency failed to install, the Bonobo download was corrupted, or your script didn't check exit codes for critical commands (so it kept running even if a step failed).
    Try re-running the key parts of your install script manually (as root) in the SSH session—like the commands to install dependencies, download Bonobo, or run the installer. You might catch errors that were swallowed during provisioning.

  • File Permission Issues
    If Bonobo's binary files or supporting libraries were installed with permissions that only allow root to execute them, the regular vagrant user will get a "permission denied" error (or the shell might act like the command doesn't exist entirely).
    Find where Bonobo is installed with sudo find / -name bonobo, then check permissions with ls -l <path-to-bonobo-binary>. Make sure the file has at least r-x permissions for all users (e.g., chmod +x <path> if needed).

内容的提问来源于stack exchange,提问作者mrc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:41:58