Iocage upgrade HTTP 404 ioc_upgrade.py

nidworkx

Cadet
Joined
Dec 22, 2020
Messages
2
Hi gents,

I am having trouble upgrading my iocage jails. First I was running FreeNAS 11.3U5 and 1 jail on 11.3-RELEASE
I tried upgrading the iocage by using:

[CODE]sudo iocage upgrade plex -r 11.4-RELEASE[/CODE]

This resulted in a HTTP Error 404 on line 110 of ioc_upgrade.py
I have edited the file mentioned and added a print statement of the URL which this script tries to access:

URL: https://raw.githubusercontent.com/freebsd/freebsd/release/11.4.0/usr.sbin/freebsd-update/freebsd-update.sh

Using this in my browser resulted in the same 404 HTTP. I tried browsing the github project and saw the URL strucure is more like:

https://raw.githubusercontent.com/freebsd/freebsd/stable/12/usr.sbin/freebsd-update/freebsd-update.sh

I decided to upgrade to TrueNAS although I wasn't expecting this would fix my issue, but I was planning to upgrade anyway.
This didn't solve the problem, this resulted in the same HTTP 404, tried upgrading different testjails from X to y release

Code:
% sudo iocage upgrade plex -r 11.4-RELEASE
Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/iocage_cli/upgrade.py", line 40, in cli
    ioc.IOCage(jail=jail, skip_jails=skip_jails).upgrade(release)
  File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 2070, in upgrade
    new_release = ioc_upgrade.IOCUpgrade(
  File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_upgrade.py", line 110, in upgrade_jail
    with urllib.request.urlopen(f) as fbsd_update:
  File "/usr/local/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/local/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Freebsd is going through some changes right now. Try again later in the week.
 

Wisdom

Explorer
Joined
Oct 15, 2016
Messages
71
Can confirm that this is also interrupting 11.3/11.4. Maybe it's old news, since 12 is already out and rolling, but I haven't been quite so anxious to jump straight over. Still hasn't been resolved (and the adjustments suggested on github weren't translating well to my older versions.

Particularly annoying because I can iocage fetch 11.4-RELEASE just fine, but can't figure out how to use that as an upgrade foundation instead.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Can confirm that this is also interrupting 11.3/11.4. Maybe it's old news, since 12 is already out and rolling, but I haven't been quite so anxious to jump straight over. Still hasn't been resolved (and the adjustments suggested on github weren't translating well to my older versions.

Particularly annoying because I can iocage fetch 11.4-RELEASE just fine, but can't figure out how to use that as an upgrade foundation instead.
See this thread:

https://www.truenas.com/community/threads/tn-12-0-u1-cant-upgrade-jail-releases.89748/#post-621950
 

Wisdom

Explorer
Joined
Oct 15, 2016
Messages
71
I appreciate the link, but am spectacularly stupid. /usr/local/lib/python3.7/site-packages/iocage_lib exists neither in my jails or the root of my CLI. I assume it's something that needs to be changed globally, but am not sure where that actually is. Mind pointing me even closer to the point?

E: I take it all back. It just takes making a fool of myself on the internet to try a second time.
 
Last edited:
Top