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

set-raintale-database.sh: hang due to grep without input #42

Open
ato opened this issue Nov 16, 2021 · 5 comments
Open

set-raintale-database.sh: hang due to grep without input #42

ato opened this issue Nov 16, 2021 · 5 comments
Assignees

Comments

@ato
Copy link

ato commented Nov 16, 2021

set-raintale-database.sh hangs after printing:

verifying that database is empty
discovered 0 tables in the database
database is empty, continuing
writing database information to /opt/raintale/raintale-gui/../hypercane_with_wooey/hypercane_with_wooey/settings/user_settings.py

It appears to be stuck with this grep command reading from stdin:

ME_line=`grep MEMENTOEMBED_ENDPOINT`

@shawnmjones
Copy link
Member

Thanks for this. That path is wrong. It seem like a copy/paste from the Hypercane work was not completely scrubbed to make sure the paths were correct.

@shawnmjones
Copy link
Member

And when I commented on this days ago I noticed one issue in the output and neglected to comment on the issue with the grep.

@ato
Copy link
Author

ato commented Dec 3, 2021

I tested the new version and this problem was resolved.

@ato ato closed this as completed Dec 3, 2021
@ato ato reopened this Dec 6, 2021
@ato
Copy link
Author

ato commented Dec 6, 2021

Actually it just silently failed and didn't configure anything. 😅

Note the grep is looking for MEMENTOEMBED_ENDPOINT in user_settings.py, but that line actually seems to be in raintale.conf:

settings_file=${WOOEY_DIR}/raintale_with_wooey/settings/user_settings.py
raintale_conf=/etc/raintale.conf

echo "writing database information to ${settings_file}"

ME_line=`grep MEMENTOEMBED_ENDPOINT ${settings_file}`

@shawnmjones
Copy link
Member

I am removing this from the project as part of the IIPC 2021 Grant project closeout. It still needs to be reviewed by a third party.

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