Upgrading the Agent
The MyOsicam agent is a statically compiled Go binary deployed as a systemd service. Upgrades replace the binary in place and restart the service. OScam is not affected at any point — it continues running throughout the upgrade.
Checking whether an upgrade is available
The Agents list in the panel shows the currently installed agent version alongside the latest available version:
- Log in to the panel.
- In the left sidebar, click Agents.
- The Version (installed) column shows the version running on each server.
- If a newer version is available, an Update badge appears next to the installed version, and the available version is shown in a lighter style below it.
Recommended upgrade path: Re-run Bootstrap
The safest and most reliable way to upgrade an agent is to re-run the bootstrap installer from the panel. The bootstrap script is idempotent — it stops the existing service, replaces the binary, and restarts the service cleanly.
- In the panel, navigate to Agents in the sidebar.
- Find the agent you want to upgrade and click Details to open its detail page.
- If the agent is Online, you will see the agent’s action buttons at the top of the page. Click Re-run Bootstrap — or, if the agent is Offline or Unknown, the Agent Recovery section shows the Re-run Bootstrap button automatically.
- The panel generates a fresh single-use install token and displays the bootstrap command.
- Copy the bootstrap command and run it on the OScam server as root.
The bootstrap script:
- Stops the existing
myosicam-agentservice. - Downloads the latest agent binary from the install service.
- Replaces the binary at
/usr/local/bin/myosicam-agent. - Restarts the service.
- The agent re-registers with the panel using the new install token.
Alternative: panel-triggered SSH install
If you want the panel to perform the upgrade over SSH rather than running the bootstrap command manually on the server:
- In the panel, navigate to Agents → Install Agent (or use the Install Agent button).
- Enter the same SSH credentials you used for the original install.
- The panel connects over SSH, runs the bootstrap script, and the agent upgrades itself.
What happens during an upgrade
- The
myosicam-agentservice is stopped briefly while the binary is replaced. - OScam is not affected. OScam runs independently of the agent and continues serving subscribers without interruption.
- Once the new binary is in place, systemd brings the service back up. With
Restart=alwaysconfigured, the service restarts automatically even if the stop was unclean. - The upgraded agent reconnects to the panel, sends a heartbeat, and the panel shows it as Online within the next heartbeat cycle.
Verifying the upgrade
After the bootstrap completes:
- In the panel, open the Agents list.
- Confirm the agent’s Version (installed) column shows the new version number.
- Confirm the status badge is Online.
- If the server previously showed an Update badge, it should now show Up to date.
If the agent does not come back online within a minute, check the service status on the server:
systemctl status myosicam-agentjournalctl -u myosicam-agent -n 50Related pages
- Install the Agent — initial agent installation reference.
- Agent Removal — cleanly remove an agent from a server.
- Operational Monitoring — watching agent online/offline status.
- Troubleshooting / FAQ — diagnose agent connectivity issues.