Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] Optional trigger to force device ip when installing agent 🧹 #119

Open
SquirrelDeveloper opened this issue Jul 16, 2024 · 5 comments
Labels
chores Refactoring or small updates

Comments

@SquirrelDeveloper
Copy link
Collaborator

SquirrelDeveloper commented Jul 16, 2024

Trigger when installing / reinstalling agent to force device IP on agent

@SquirrelDeveloper
Copy link
Collaborator Author

Added in doc

@SquirrelDeveloper SquirrelDeveloper modified the milestones: v0.1.17, v0.1.18 Aug 21, 2024
@SquirrelDeveloper SquirrelDeveloper modified the milestones: v0.1.18, v0.1.19 Sep 13, 2024
@chrisbehectik
Copy link

Has this been implemented?

I installed the agent on a few hosts connected by Tailscale network, which worked fine, but then it defaulted to local ip instead of Tailscale IP and now can't manage the host. I assume resinstalling the agent works but to what extent until I have to do the same again.

@SquirrelDeveloper
Copy link
Collaborator Author

Hi @chrisbehectik . It has been implemented on the agent , you can see here https://squirrelserversmanager.io/docs/technical-guide/troubleshoot#the-device-s-ip-has-automatically-changed-to-its-lan-ip-the-ip-changed-to-vlan-s-one how to do it.
It will be possible to do it from the UI directly in a future release

@chrisbehectik
Copy link

chrisbehectik commented Oct 2, 2024

Thanks @SquirrelDeveloper, got it working after following your instructions! Is there a way to restart the agent manually? I rebooted which worked but only after running 'restart.sh' didn't work. I got the following error:

internet-lab-01:/opt/squirrelserversmanager $ sudo ./restart.sh 

########################################
#### SQUIRREL SERVERS MANAGER AGENT ####
########################################

##### Clean PM2
./restart.sh: line 14: pm2: command not found
./restart.sh: line 15: pm2: command not found
##### Start agent...
./restart.sh: line 18: pm2: command not found
##### PM2 startup...
./restart.sh: line 20: pm2: command not found
##### PM2 save...
./restart.sh: line 22: pm2: command not found
./restart.sh: line 23: pm2: command not found` 

@SquirrelDeveloper
Copy link
Collaborator Author

@chrisbehectik Thanks for the update, Do you have the same result from the UI in inventory , bottom facing arrow, restart agent ?
Screenshot 2024-10-03 at 10 06 13

@SquirrelDeveloper SquirrelDeveloper modified the milestones: v0.1.20, v0.1.22 Oct 14, 2024
@SquirrelDeveloper SquirrelDeveloper removed this from the v0.1.22 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chores Refactoring or small updates
Projects
Development

No branches or pull requests

2 participants