-
Notifications
You must be signed in to change notification settings - Fork 20
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
DocDB in AlmaLinux 9 #112
Comments
I'm running DocDB (8.8.7 + a few assorted patches) on Ubuntu 22.04, which has Perl 5.34
to all the Perl files where it was needed. Other minor changes were needed as a consequence of the much newer CGI module, too. P.S.: I have been running the same since Ubuntu (server) 16.04, and then all the subsequent LTS releases (18.04 and 20.04) up to now. Will see how it goes with the next one... |
I figured that part out too, though my solution was dumber; I put the following at the top of all the scripts, use before
While this worked, there were issues with perl hashes (perhaps due to the CGI module, as you said) that caused crashes that I could not debug. For example, when trying to upload a document, the 'submitter' and 'author' lists were blank; this could also have been a database issue, since I'm not facile with MySQL and moving databases between servers. |
This was required for the newer libCGI:
Edit: but no more - at least since DocDB 8.8.9 the relevant changes have been included in the official code. |
I started from a fresh DocDB script installation and applied the changes you suggested. However, it did not solve my problems. Apart from difficulties in fully listing all the documents associated with authors and topics, uploading a new document was not possible; the Submitter and Author fields were blank, so I could not select a valid choice. Unfortunately, there are no error messages associated with these problems in neither the main server logs, the web server logs, nor the MySQL logs. I can't trace anything. It appears that there's something else that's funky about AlmaLinux 9, aside from the different perl version, that affects DocDB scripts. |
You may try to add:
to the scripts to help debugging. |
Sigh This is turning into a massive project on the part of someone (me) who doesn't know these perl libraries. My main question stands: Does someone who knows the DocDB package plan to work on AlmaLinux 9 compatibility, given that both FNAL and CERN plan to switch to AlmaLinux 9 by the end of this year? |
Issue #113 is one of the many that will likely affect AlmaLinux 9 too. |
Yes, I had that problem too. However, the problems I had elsewhere (not all documents showing in lists, entry problems on the New Document page) seemed of higher priority. |
well, of course. You should provide at least the relevant log file errors to try to understand what's goin' on... |
There are no errors in any of the logfiles. That's part of the problem. You offered a way of generating diagnostics in a previous reply, but my position is the same: This leads me down a rabbit hole of tracing through uncommented Perl code. I'd rather that someone familiar with the package do this work. I've already written to the Fermilab Computing Division. They are the ones who made the decision to switch to AlmaLinux 9 (a decision I agree with), and they also have many DocDB installations among all their experiments. I'm sure they'll figure something out, and I'll copy-cat their solution (even if it's to move to CERN's Indico). I just want to know when that happens! |
could it be that you have the apache (or whichever web server you're using) logging options set too quiet?
indeed.
LOL. I doubt it, Indico does a completely different job... :D BTW, we do use Indico as well. For managing conferences, meetings, etc. But we use DocDB for storing our papers, reports, presentations and so on. |
For the record: yet another problem which is relevant for AL9, too: Issue #114 |
With your changes in issues 113 and 114, my copy of DocDB on AlmaLinux 9 seems "closer" than ever. Lists of documents now appear to be correct. Unfortunately, there's still one big issue: adding new documents. When I try to add a new document in the AL9 version with your changes, this is what I see: In contrast, this is the page I see for the same database in the CentOS 7 version: On the AlmaLinux 9 page, I can try to type in my account name manually the "Submitter" and "Author" fields, but the when I click the "Submit Document" button I get:
Needless to say, this is not a problem on the CentOS 7 version of the page. Do you see this same problem? |
Meanwhile, there's also this one which will likely affect AL9 too: Issue #115 |
Hmm... things seem to be working now thanks to your work. I don't want to rush anything, especially since I'd have to convert the CentOS database to an AlmaLinux 9 database (for the fifth time). I'll wait a week or so to see if you discover anything else. In the meantime: Thanks for all your hard work! I hope FNAL and the other institutions who use DocDB recognize what you're doing. |
I never answered one of your questions: No, when I had the "active" option, trying to fill in the Submitter/Author field did not show a list of options. But we're used to the "list" format, and I don't think anyone wants me to change that. |
that's weird. Could it be that you have Javascript disabled on your browser? Or maybe that you have not properly setup your web server and/or the DocDB folders dir tree? It looks like DocDB's javascripts are not working.
well, sure, that's fine. But, beside that one (which may be not a problem for you), if the required JS libraries are not loaded there may be several other problems and missing features (e.g., does the context help system work? Can you sort the document lists as you like by clicking on the table headers?). From your browser, try to right click on DocDB main page, and select "view page source". At the top you should see a few lines which begins with: Try opening those URLs (all of them, one by one). You should see the contents of such files. If you get a "404 Not found" or any other error on any of them, you have a problem with your setup which you should fix. BTW: if you need to show some screenshot (or any other image) here, there's no need to upload it on an external site and paste here the link. Just copy+paste the image here on the editor, and watch the "magic" happen... that's easier and much better. ;-) |
More troubles: can't create new (externally managed) events. It fails with error:
Solved reverting to an older version of that file:
|
We don't use externally managed events at our site, which is why I never picked up on this problem. Thanks for the fix! |
Just pinging this thread after more than a year -- I'm trying to install the latest DocDB on Almalinux9 and running into the same issues. Is there a list of the patches needed against the current version, or do we just need to peck through them one at a time? I'd expect the EOL of Centos7 and the penetration of Almalinux9 might have brought this some urgency. |
Speaking only for myself, I had to manually apply the changes as in the above discussion and the linked issues. I agree; it would be nice if the package were fully brought up to AlmaLinux9. What I suspect (WITHOUT ANY EVIDENCE WHATSOEVER) is:
|
I tried to upgrade my DocDB installation to run in AlmaLinux 9. I did not succeed. The main problem is that AlmaLinux 9 runs perl 5.32, which has some major differences vs. the perl 5.16 installation of CentOS 7.
I know that the CentOS 7 end-of-life is still about a year away, and from personal experience I know the codebase upgrade won't be easy. I'm primarily noting this issue so that when you're able to get to it, I'll receive a notification.
The text was updated successfully, but these errors were encountered: