-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John Gomersall <[email protected]>
- Loading branch information
Showing
1 changed file
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -366,8 +366,6 @@ No Minion backend configured in lib/ProductOpener/Config2.pm | |
[Mon Nov 25 12:03:46 2024] listen_to_redis_stream.pl: EV: error in callback (ignoring): Can't call method "enqueue" on an undefined value at /srv/opff/lib/ProductOpener/Minion.pm line 88. | ||
``` | ||
|
||
|
||
|
||
### Observations | ||
|
||
Account console not working - think it is to do with cookies and setting up forwarded headers with the nginx proxy | ||
|
@@ -376,3 +374,53 @@ Fixed by adding `--proxy-headers xforwarded` to Keycloak startup. | |
|
||
Need to build languages. Fixed | ||
|
||
## Refreshing from branch | ||
|
||
``` | ||
git stash save "opff new config2" | ||
git pull | ||
git stash apply | ||
# Add following to Config2.pm and export: | ||
$process_global_redis_events = 1; | ||
# And following to Config_opff.pm and export: | ||
$process_global_redis_events = $ProductOpener::Config2::process_global_redis_events; | ||
source env/setenv.sh opff | ||
export PERL5LIB=/srv/opff/lib | ||
perl scripts/build_lang.pl | ||
exit | ||
cd /srv/opff | ||
sudo su | ||
systemctl stop apache2 | ||
systemctl start apache2 | ||
ln -s /srv/opff/conf/systemd/[email protected] /etc/systemd/system | ||
systemctl daemon-reload | ||
# Updated log path for minion-log.conf | ||
systemctl start [email protected] | ||
ln -s /srv/opff/conf/systemd/[email protected] /etc/systemd/system | ||
systemctl start [email protected] | ||
``` | ||
|
||
Noticed that with `systemctl status [email protected]` there was no mention of connecting to Redis. Starting the script directly with: | ||
|
||
``` | ||
export PERL5LIB=/srv/opff/lib | ||
source env/setenv.sh opff | ||
perl scripts/listen_to_redis_stream.pl | ||
``` | ||
|
||
Shows: | ||
|
||
``` | ||
Starting listen_to_redis_stream.pl | ||
Trying to reconnect to Redis | ||
init_redis {redis_url => "10.1.0.122:6379"} | ||
Reading from Redis {streams => ["BLOCK",0,"STREAMS","user-deleted","user-registered","\$","\$"]} | ||
Connected to Redis | ||
``` | ||
It looks like the service is working though |