Once upon a time I did set up a script (something like “yum –assumeno update” but to just filter out package names) on my Fedora machines to automatically send me an report about the updates that need to be applied nightly and since Fedora is an development distribution the emails should be daily (or at least weekly), but for some reason last couple weeks have been rather quiet…
So digging in the internet a little and what do I found out – Fedora 31 EOL was 24 of November 2020… Another thing that happened on the midst of chaos that the year has been so far… So I have to upgrade several PC’s to the next release… I know Fedora 32 is not the latest version to upgrade to, but I like the stability of being 1 release behind the latest version as it has most likely been fixed from the bugs that sometimes creep into the latest releases. Also I don’t run the latest and greatest hardware so I don’t have the need for the latest kernel drivers so I usually don’t need the bleeding edge software...
It has been a while since I had to dist upgrade my fedora machines (I usually do it one or twice a year as the EOL time nears, but seems that in the midst of all the chaos that is year 2020 I forgot to do another upgrade cycle until it already was past EOL for some time. Oh well – time to plan one night for downloading a lot of updates… I usually don’t have any issues with upgrades as the process for doing it is pretty much the same as it was 10 years ago. Yes it has gotten simpler and easier in years as the yum/dnf framework has evolved and I think the last mishap of dist upgrade going wrong was with Fedora 19 and that upgrade was long time ago. I just love the simplicity of the process in the midst of things. Windows people would say to that that the system is slow and cluttered and you should re-install windows regularly to keep the clutter and legacy software away, but this is Linux – you don't get all sorts of extra dll’s and who knows what… Yes in time some software is obsoleted and replaced with new, but still… One of the laptops I use regularly has been upgrades since Fedora 7 and now its running 32 and most likely will go to run even newer versions…
Enough of rambling – the procedure I used to upgrade from F31 to F32 or to do a dist upgrade on my machines is this:
“dnf clean all”
“dnf –releasever=32 update”
“dnf –releasever=32 –downloadonly –skip-broken upgrade“
This can be done remotely over ssh or from graphical environment and it just cleans out the F31 repository data and downloads the F32 meta-data and packages (I have slow internet so it took a while). I usually don’t have million repositories enabled so I don’t have a lot of package conflicts that need resolving. But now I recommend to switch to the terminal to do the actual upgrade so “Ctrl+Alt+F2” (yes I have done the upgrade over ssh and from the graphical environment, but I have had mishaps where you have 3000 packages upgraded and just when it is time to start uninstalling the previous version packages some script gives an error and the upgrade crashes and you are a left with 7000 installed packages just because some dependency is missing in the graphical environment).
“dnf –releasever=32 --skip-broken upgrade”
And usually that’s all that is needed to do dist upgrade. Well not this time – this time I was left with packages that have an F32 version available but for some reason would not upgrade and the message was cryptic:
WARNING Modular dependency problems:
Problem 1: conflicting requests
- nothing provides module(platform:f31) needed by module gimp:2.10:3120191106095052:f636be4b-0.x86_64
Problem 2: conflicting requests
- nothing provides module(platform:f31) needed by module libgit2:0.27:3120190407181414:f636be4b-0.x86_64
So it seems that Gimp and libgit2 need something that was in F31 and is no more in F32… Great… Google was also not particularly helpful as there were bug reports about this message but no real answer. After digging some more I found out that dnf has some new features where packages can have some sort of modules that they require in “/etc/dnf/modules.d/” and well after upgrade the version they were searching was not there any more… Again after some searching that the removal of package was not enough to remove and the only way would be to manually edit each offending module to add “state=disabled” to the file.
Well… As I don’t have anything that is this module specific I found an easier way:
“dnf module reset '*'”
No more annoying modules :D
And when I now run “dnf upgrade” I end up with
Upgraded:
apache-commons-codec-1.13-2.fc32.noarch apache-commons-io-1:2.6-8.fc32.noarch apache-commons-lang3-3.11-1.fc32.noarch apache-commons-logging-1.2-20.fc32.noarch apache-commons-net-3.6-8.fc32.noarch hawtjni-runtime-1.17-2.fc32.noarch jansi-1.18-3.fc32.noarch jansi-native-1.8-2.fc32.x86_64 jsch-0.1.54-11.fc32.noarch jzlib-1.1.3-12.fc32.noarch slf4j-1.7.30-2.fc32.noarch xalan-j2-2.7.2-2.fc32.noarch xerces-j2-2.12.0-4.fc32.noarch xml-commons-apis-1.4.01-29.fc32.noarch xml-commons-resolver-1.2-29.fc32.noarch
So… I don’t know why those modules are good for but I don’t need them and resetting them let me to finally upgrade the system…
Until next time I guess...
My Secret IT Lab
Wednesday, December 16, 2020
Thursday, October 8, 2020
SIL reloaded...
When I started this project it was meant to be just tips and tricks from random projects I encounter in my travels through the IT world, but like always, life makes it own corrections… Sometimes they are for better, other times they are are for worse.
The 2019 started like usual with with all sorts of interesting projects and new ideas and new tech to play with. It was fun while it lasted… But all was not well by the summer time. I had a pet project that I was doing with couple of people and at one point I got played. The project died and I had invested so much time to it that the rest of projects had slipped away and taken over by other people. This happens from time to time with joggling multiple projects… No biggie I thought then – boy was I mistaken… By the beginning of summer it was clear that the pet project was dead for me and I was dismissed from it even tho I had put in 100% of my time and energy. So I thought I would spend a nice summer with my family any by autumn another project would come along as it had happened from years before. Little did I know how much time it had took and how much people had I alienated because of it… Yes there were few small projects that took few days or even up to a week but nothing special – nothing to look forward to… Even small insignificant projects wanted NDA so nothing to write about – so I put this project into a dormant state – there was just nothing interesting I could write about that I thought would be interesting….
And then the 2020 happened – things could not go worse I thought. Well I was mistaken again. Who would have thought that a small insignificant corona virus that has raised it’s head for decade or to would have so big impact on the world. It was not the first time a flu like virus has raised it’s ugly head in the midst of the regular flu season… Who would have thought that it would turn the world upside down and throw it to chaos and disarray. Yes – it is better than living in the dark ages where the plague roamed freely and there was no real cure for it, but still – moving away from your comfort zone is always hard, but still… Being used to a certain standard of living and getting it taken away so easily and with all the restrictions on travel, shopping… I know people in large metropolis's are used to it to wear a mask day to day bases, but to the rest of the world it is not normal. It just rubs against the grain… Yes there are good things that have came from it like most IT conscious companies have had to create remote working capabilities to their employees so people can work remotely and without the hassle of getting to an office exactly the same time as the rest of 90% of people. But still the infrastructure project have withered away and everyone wants a web shop or a e-commerce site to dropshipping from china. And if that was not enough that airmail from china was 20 days before – it has gone up to 90...120 days if it even arrives. The USA and china trade war is also creating some friction between China an the rest of the world and to sum it up – we live in the interesting times.
What will it mean to this site? Well… in short – I don’t have something interesting lined up for some time now so the best I can do is try to tinker with my home lab and hope it is enough. Maybe something interesting or useful comes up form time to time but no fancy new hardware or licensed software for the time being – lets see what the future brings and take it a day at a time. The project is not dead but just shifted to lower priority.
PS! My writing skills have also deteriorated over the past two years (have not written for public consumption for few years) so I’ll try to improve myself again :)
The 2019 started like usual with with all sorts of interesting projects and new ideas and new tech to play with. It was fun while it lasted… But all was not well by the summer time. I had a pet project that I was doing with couple of people and at one point I got played. The project died and I had invested so much time to it that the rest of projects had slipped away and taken over by other people. This happens from time to time with joggling multiple projects… No biggie I thought then – boy was I mistaken… By the beginning of summer it was clear that the pet project was dead for me and I was dismissed from it even tho I had put in 100% of my time and energy. So I thought I would spend a nice summer with my family any by autumn another project would come along as it had happened from years before. Little did I know how much time it had took and how much people had I alienated because of it… Yes there were few small projects that took few days or even up to a week but nothing special – nothing to look forward to… Even small insignificant projects wanted NDA so nothing to write about – so I put this project into a dormant state – there was just nothing interesting I could write about that I thought would be interesting….
And then the 2020 happened – things could not go worse I thought. Well I was mistaken again. Who would have thought that a small insignificant corona virus that has raised it’s head for decade or to would have so big impact on the world. It was not the first time a flu like virus has raised it’s ugly head in the midst of the regular flu season… Who would have thought that it would turn the world upside down and throw it to chaos and disarray. Yes – it is better than living in the dark ages where the plague roamed freely and there was no real cure for it, but still – moving away from your comfort zone is always hard, but still… Being used to a certain standard of living and getting it taken away so easily and with all the restrictions on travel, shopping… I know people in large metropolis's are used to it to wear a mask day to day bases, but to the rest of the world it is not normal. It just rubs against the grain… Yes there are good things that have came from it like most IT conscious companies have had to create remote working capabilities to their employees so people can work remotely and without the hassle of getting to an office exactly the same time as the rest of 90% of people. But still the infrastructure project have withered away and everyone wants a web shop or a e-commerce site to dropshipping from china. And if that was not enough that airmail from china was 20 days before – it has gone up to 90...120 days if it even arrives. The USA and china trade war is also creating some friction between China an the rest of the world and to sum it up – we live in the interesting times.
What will it mean to this site? Well… in short – I don’t have something interesting lined up for some time now so the best I can do is try to tinker with my home lab and hope it is enough. Maybe something interesting or useful comes up form time to time but no fancy new hardware or licensed software for the time being – lets see what the future brings and take it a day at a time. The project is not dead but just shifted to lower priority.
PS! My writing skills have also deteriorated over the past two years (have not written for public consumption for few years) so I’ll try to improve myself again :)
Tuesday, February 5, 2019
WSUS broken from start...
Today (well 5 days ago actually) I hit a problem... with Windows Server 2019 and WSUS. Maybe it is just a luck thing, or may be it is just an issue with Linux expert trying to fiddle in the windows world, but my goal was to set up an WSUS server and the first thing after adding a WSUS role to it - well the initial configuration failed to complete.
The WSUS content directory is not accessible.
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.UpdateServices.Internal.HealthMonitoring.HmtWebServices.CheckContentDirWebAccess(EventLoggingType type, HealthEventLogger logger)
To start from the beginning - working on one project I was asked to setup WSUS (Windows Server Update Services) because the Windows updates were wreaking havoc and people were pretty pissed off on the management about it.
Right...
Linux guy starting to administer Windows...
That's like asking for trouble...
As I was the only one who had even heard of it, I said "How hard can it be"...
Big mistake...
I'm not in any way certified to administer windows - I poke it with a long stick from as far as I can, but I take this "experiment" as a learning experience, so I try it at least. On a positive note - the server manager with its role based "installation" feature is kind of nice try to make things as simple as possible (if it works). Like windows loves to do, the next.. next.. next... and we are installing. Great I thought - if it really is that simple, then in about some time later we should have a working update server and all the update fuss can be done like once a month or as needed or... (I have never used it so I really don't know how its supposed to work - all I know that when WSUS is added to the domain and all PC's report to it no updates will be installed if they are not "approved" in there".
And then the problems started... The error above... The first thing I saw was that the initial configuration (script?) failed to complete. Well this is great... Fresh clean install of Windows Server 2019 - only role installed was WSUS and it failed. I had a bad feeling it could not go that smoothly from the start, but I hoped for the best. What can I do now - I guess google will have a quick solution for it?
Well - yes and no - after searching for hours I finally found a thing that was wrong in my installation. It seems that some kind of connection limit is set to 0 so IIS won't accept any connections (even from the initial configuration script?).
So to remedy the problem:
1) open IIS manager
2) navigate to wsus administration
3) on the right under browse website go advanced settings
4) under limits if max connections is 0 change to 2
That at least fixed the problem for me, so that the initial configuration script would setup the WSUS service and allowed me to select the software collections to sync.
As I'm writing it postmortem from notes scribbled on a peace of paper I don't have the original link where I found the solution, but it seems like it is a common problem that has not been fixed for a long time and it may reoccur with updates.
To be continued...
The WSUS content directory is not accessible.
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.UpdateServices.Internal.HealthMonitoring.HmtWebServices.CheckContentDirWebAccess(EventLoggingType type, HealthEventLogger logger)
To start from the beginning - working on one project I was asked to setup WSUS (Windows Server Update Services) because the Windows updates were wreaking havoc and people were pretty pissed off on the management about it.
Right...
Linux guy starting to administer Windows...
That's like asking for trouble...
As I was the only one who had even heard of it, I said "How hard can it be"...
Big mistake...
I'm not in any way certified to administer windows - I poke it with a long stick from as far as I can, but I take this "experiment" as a learning experience, so I try it at least. On a positive note - the server manager with its role based "installation" feature is kind of nice try to make things as simple as possible (if it works). Like windows loves to do, the next.. next.. next... and we are installing. Great I thought - if it really is that simple, then in about some time later we should have a working update server and all the update fuss can be done like once a month or as needed or... (I have never used it so I really don't know how its supposed to work - all I know that when WSUS is added to the domain and all PC's report to it no updates will be installed if they are not "approved" in there".
And then the problems started... The error above... The first thing I saw was that the initial configuration (script?) failed to complete. Well this is great... Fresh clean install of Windows Server 2019 - only role installed was WSUS and it failed. I had a bad feeling it could not go that smoothly from the start, but I hoped for the best. What can I do now - I guess google will have a quick solution for it?
Well - yes and no - after searching for hours I finally found a thing that was wrong in my installation. It seems that some kind of connection limit is set to 0 so IIS won't accept any connections (even from the initial configuration script?).
So to remedy the problem:
1) open IIS manager
2) navigate to wsus administration
3) on the right under browse website go advanced settings
4) under limits if max connections is 0 change to 2
That at least fixed the problem for me, so that the initial configuration script would setup the WSUS service and allowed me to select the software collections to sync.
As I'm writing it postmortem from notes scribbled on a peace of paper I don't have the original link where I found the solution, but it seems like it is a common problem that has not been fixed for a long time and it may reoccur with updates.
To be continued...
Subscribe to:
Posts (Atom)