Got the error “Reinstallation of ampinstmgr is not possible, it cannot be downloaded”
I upgraded from 22.04 LTS not that long ago to fix a networking issue i was having, along with updating to the latest kernel, it seems the repositories for AMP were lost in this upgrade.
Tried to install AMP from the bash script and it was saying it was going to create the AMP management instance on port 8082, the current AMP is running on 8081 so I feel this will just install a brand new one alongside my broken AMP and not update it.
Is there any way I can update in place without losing anything? Such as just adding the correct repositories to APT and doing a force reinstall?
If not can I backup AMP so I can remove the old one and install a new one?
I’ve looked into backing up AMP in the past and the only thing I came up with was its impossible.
Thank you for the reply.
I went to the link and successfully added the Repo using the command getamp addRepo.
Unfortunately that’s all I accomplished.
Running the commands getamp update as root seemed to do an instance upgrade for all instances.
no change in firewall.
running apt --reinstall ampinstmgr did reinstall the app, however the firewall still is failed status.
rebooted the computer, again no change.
ran apt update and apt upgrade, no change.
Jan 05 11:40:41 ubuntu-dedicated systemd[1]: Starting ampfirewall.service - AMP Instance Manager Firewall...
Jan 05 11:40:41 ubuntu-dedicated systemd[1]: ampfirewall.service: Main process exited, code=exited, status=255/EXCEPTION
Jan 05 11:40:41 ubuntu-dedicated systemd[1]: ampfirewall.service: Failed with result 'exit-code'.
Jan 05 11:40:41 ubuntu-dedicated systemd[1]: Failed to start ampfirewall.service - AMP Instance Manager Firewall.
journalctl doesn’t seem to have any more info than what I just posted.
except this little tidbit which happened right around the time i did the dist-upgrade
Nov 28 14:12:48 ubuntu-dedicated systemd[1]: Starting ampfirewall.service - AMP Instance Manager Firewall...
Nov 28 14:12:48 ubuntu-dedicated systemd[1]: ampfirewall.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 28 14:12:48 ubuntu-dedicated systemd[1]: ampfirewall.service: Failed with result 'exit-code'.
Nov 28 14:12:48 ubuntu-dedicated systemd[1]: Failed to start ampfirewall.service - AMP Instance Manager Firewall.
Nov 28 14:13:13 ubuntu-dedicated systemd[1]: Starting ampfirewall.service - AMP Instance Manager Firewall...
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: /usr/lib/python3/dist-packages/ufw/common.py:224: SyntaxWarning: invalid escape sequence '\d'
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: elif re.match('^\d+$', p):
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: /usr/lib/python3/dist-packages/ufw/util.py:483: SyntaxWarning: invalid escape sequence '\.'
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: quads = re.split('\.', nm)
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: /usr/lib/python3/dist-packages/ufw/util.py:745: SyntaxWarning: invalid escape sequence '\s'
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: tmp = re.split('\s', out)
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: /usr/lib/python3/dist-packages/ufw/parser.py:231: SyntaxWarning: invalid escape sequence '\d'
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: if not re.match('^\d([0-9,:]*\d+)*$', port):
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: /usr/lib/python3/dist-packages/ufw/parser.py:357: SyntaxWarning: invalid escape sequence '\d'
Nov 28 14:13:13 ubuntu-dedicated ampinstmgr[21673]: elif not re.match('^\d([0-9,:]*\d+)*$', tmp):
Nov 28 14:13:13 ubuntu-dedicated systemd[1]: ampfirewall.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 28 14:13:13 ubuntu-dedicated systemd[1]: ampfirewall.service: Failed with result 'exit-code'.
Nov 28 14:13:13 ubuntu-dedicated systemd[1]: Failed to start ampfirewall.service - AMP Instance Manager Firewall.
And if I manually run ampinstmgr updatefirewall I get this
root@ubuntu-dedicated:~# ampinstmgr updatefirewall
[Info/1] AMP Instance Manager v2.6.0.6 built 20/11/2024 20:58
[Info/1] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Info/1] Using iptables firewall.
[Error/1] IM was unable to execute the requested command.
[Error/1] TargetInvocationException
[Error/1] [0] (TargetInvocationException) : Exception has been thrown by the target of an invocation.
[Error/1] at InstanceManagerCLI.Core.ExecuteCommand(List`1 Params, Dictionary`2 Args)
[Error/1] ArgumentNullException
[Error/1] [1] (ArgumentNullException) : Value cannot be null. (Parameter 'address')
[Error/1] at ArgumentNullException.Throw(String paramName)
at Net.IPAddress.IsLoopback(IPAddress address)
at InstanceManagerCLI.Core.<>c.<SyncFirewall>b__79_4(PortUsage p)
at Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at InstanceManagerCLI.Core.SyncFirewall(Boolean DryRun, IEnumerable`1 userInstances, IFirewallManager firewall)
at InstanceManagerCLI.Core.UpdateFirewall(String SourceUser, Boolean DryRun, Boolean forceUPnPSync)
Yeah, everything’s fine, you just need to open the ports in the firewall for new instances to be accessible.
You don’t forward ports on Ubuntu, you’re just opening ports in the firewall. https://help.ubuntu.com/community/UFW