Painful hotfix installation
We recently moved to Nuxeo DM 5.4.2. I tried to install the hotfixes (patch per patch). Now, I didn't do this according to the exact order as was expected (only found the Internet page with the right order when I ran into problems) and now I am unable to login onto Nuxeo with my administrator account.
- How do I uninstall/ roll back manually from the latest hotfixes ? If possible, specify this in a detailed way, because I am not a full time Nuxeo administrator.
- Why is this hotfix installation procedure so painful ? It seems that this procedure is not really state-of-the-art … On any other application/platform, getting the system up-to-date, just involves getting the last available patch and the installation takes care of any other dependencies and doing this in the right order. Also, restarting each time … well, wasn't this something Windows users were so frustrated about and then Microsoft tried to reduce this as much as possible ? What do other users think about this ?
Hello,
I suppose the issue you had with the order was on DM-5.4.2-PATH-HF05.
In Nuxeo 5.4.2, uninstalling hotfixes is not an easy task.
The easier solution would be to replace the whole Nuxeo directory with a clean one. Reusing the same configuration, same data directory, same database, will ensure the “new” Nuxeo to keep your existing data.
If you prefer trying to repair your current install, we need to know the following (use something like http://friendpaste.com/ to share the listings):
- content of ${nuxeo.data.dir}/packages/.packages file
- listing of $NUXEO_HOME/nxserver/bundles/ directory
About your other questions:
- Nuxeo 5.5 comes with a lot of improvements, including a quick install of all hotfixes, automatically taking care of the other dependencies and their respective order, in the state-of-the-art :)
- You will have to restart only once.
- Nuxeo 5.5 provides management of packages out of Nuxeo, allowing easy uninstall in such a case.
- Restart of the server is sometimes required because of some Nuxeo Framework technical constraints, but, most of the time, the restart is only required under Windows because of its file locking behavior. Using Linux or Mac, restart is not required so often.
Now for the fixing of my problem, I don't have an idea how to replace the Nuxeo directory with a clean one (I assume apt-get won't solve my problem).
I posted the .packages file and bundles directory listing on friendpaste (thanks for the new discovery !):
About fixing your current install, it seems you encountered a known issue with file deletion at restart under JBoss.<br/> Remove the following files: nuxeo-core-storage-sql-5.4.2-HF05.jar nuxeo-core-storage-sql-5.4.2-HF07.jar nuxeo-core-storage-sql-5.4.2-HF08.jar nuxeo-core-storage-sql-5.4.2-HF09.jar nuxeo-core-storage-sql-5.4.2-HF10.jar nuxeo-core-storage-sql-5.4.2-HF11.jar
Why is this hotfix installation procedure so painful ? It seems that this procedure is not really state-of-the-art … On any other application/platform, getting the system up-to-date, just involves getting the last available patch and the installation takes care of any other dependencies and doing this in the right order. Also, restarting each time … well, wasn't this something Windows users were so frustrated about and then Microsoft tried to reduce this as much as possible ? What do other users think about this ?
It will be done for Nuxeo 5.5
I tried the apt-get remove and install way (clean way), but the install failed:
FATAL: invalid value for parameter “lc_messages”: “en_US.UTF-8” psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"?
This is probably due to the fact that I use a different port (5432), a different user name, password and database (not nuxeodb). I tried to change nuxeo.conf and restarting nuxeo-dm, but that didn't solve the problem…
Completely in rage, I typed "apt-get purge nuxeo-dm" (although that was discouraged) and then "apt-get install nuxeo-dm". This actually solved my problem. I could connect to my old database and didn't lose any data. Problem fixed, but it seems that a lot needs to be improved still.
I've gone throughout the whole process of downloading and installing the hotfixes in the exact order as explained in https://connect.nuxeo.com/nuxeo/site/marketplace/hotfixes and restart the server EACH time.
I've reached hotfix 12 and then after restarting, I couldn't login anymore with my Administrator account ("Invalid user or password"). Any clue why this is not possible anymore ?
Server.log has:
2011-11-28 17:00:00,015 ERROR [org.nuxeo.ecm.platform.scheduler.core.EventJob] javax.security.auth.login.LoginException: createIdentity failed for user Administrator javax.security.auth.login.LoginException: createIdentity failed for user Administrator