Skip to content
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

Tailing fedoragsearch logs: path needs correction #425

Open
dwk2 opened this issue May 7, 2021 · 4 comments
Open

Tailing fedoragsearch logs: path needs correction #425

dwk2 opened this issue May 7, 2021 · 4 comments

Comments

@dwk2
Copy link
Member

dwk2 commented May 7, 2021

Issue description

The helpful message to user contains an incorrect path. Below is the correct path.

For an issue, describe steps to reproduce the issue

ISLE 7, version 1.4.2. Docker status: containers are UP.

Steps:

  1. docker exec -it isle-fedora-ld bash
  2. cd /utility_scripts/
  3. ./updateSolrIndex.sh
  4. Command line displays the following helpful message (see "actual result", below)
What's the expected result?
  • Checked and this operation is still running. You may disconnect and the process will continue to run.
    Find logs at /usr/local/tomcat/logs/fgs-update-foxml.out and /usr/local/tomcat/logs/fgs-update-foxml.err.
    You can watch log file 'tail -f /usr/local/tomcat/logs/fgs-update-foxml.*' as the process runs.
What's the actual result?
  • Checked and this operation is still running. You may disconnect and the process will continue to run.
    Find logs at /usr/local/tomcat/logs/fgs-update-foxml.out and /usr/local/tomcat/logs/fgs-update-foxml.err.
    You can watch log file 'tail -f /usr/local/tomcat/logs/fedoragsearch.daily.log' as the process runs.

Additional details / screenshots

20210507-0077

@g7morris
Copy link
Member

Hi @dwk2

Thanks for the issue post and having reviewed perhaps the issue is that end-users should not expect output from the /usr/local/tomcat/logs/fedoragsearch.daily.logs? Technically the current message is correct as those are three different logs.

Please note that there is output to /usr/local/tomcat/logs/fgs-update-foxml.out and /usr/local/tomcat/logs/fgs-update-foxml.err as the utility script describes output here https://github.com/Islandora-Collaboration-Group/isle-fedora/blob/main/rootfs/utility_scripts/updateSolrIndex.sh#L11 These are ephemeral for the duration of the index. This output contains key information to the re-index process and can be used for debugging.

For more historical context, as of version 1.2, changes to this file in the Fedora Docker image https://github.com/Islandora-Collaboration-Group/isle-fedora/blob/main/rootfs/etc/confd/templates/gsearch/log4j.xml.tpl indicate that there is no output to a physical file unless the ISLE user overrides this setting via a config change to the Docker image or rebuilds the image.

Also as an aside, ISLE endusers can also change output levels in all *.envs here https://github.com/Islandora-Collaboration-Group/ISLE/blob/main/production.env#L221 but they'd still need to use a tool like TICK or to run docker-compose logs -f fedora to view the changed output while the utility process was still running.

The fedoragsearch.daily.log doesn't necessarily always contain this information though there is a degree of overlap as it does contain information about all objects being indexed, transforms etc which can be quite lengthy and granular in nature and context. In non-ISLE systems, I refer to them as server killers as they can grow to amazing sizes if left unchecked. Granted the information within them can be valuable for certain audiences but a decision was made early on to not use it for the default utility scripts (which are made up files for the output) given it could confuse endusers if a problem arose or complicate storage capacity. We needed light-weight no frills output that endusers could find easily.

Hoping I didn't miss the point of this issue, my apologies if I went off into the woods here. Perhaps my response / added context is what is actually missing for ISLE users per se?

Thanks,
Gavin

@dwk2
Copy link
Member Author

dwk2 commented May 11, 2021

Great information! TY! I think the issue here that I ran into is from the perspective of an ISLE user and when I saw (helpful!) text that said You can watch log file 'tail -f /usr/local/tomcat/logs/fgs-update-foxml.*' as the process runs. I figured that running that tail command should show me the output I wanted... Thus, my suggestion to simply change the path to one that provides output. Does that help clarify? Thanks for your attention to this (and so many other things, too). - David

@g7morris
Copy link
Member

hi @dwk2 I'm not sure what we are clarifying at this point. The command indicates that there is a process running and that there is output. It may not be the output that you were expecting per se, so perhaps the documentation should be changed to say something like tailing /usr/local/tomcat/logs/fgs-update-foxml will show you output that the process is running or has completed with a possible example. If you are looking for more output these steps may be required e.g. using tick or docker-compose logs -f I'm not planning on updating documentation for the next round per se so perhaps this is something you and @marksandford could review please?

@dwk2
Copy link
Member Author

dwk2 commented May 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants