What I also see, is the following:
When I run the ‘/edx/bin/supervisorctl status’ command, the forum seems to be restarting every 1 minute.
Maybe this could be something that can assist me in the right direction if anyone has faced the same problem before.
UPDATE:
I saw in my ‘/edx/app/forum/forum-supervisor.sh’ file, the following:
#!/bin/bash
source /edx/app/forum/forum_env
cd /edx/app/forum/cs_comments_service
/edx/app/forum/cs_comments_service/bin/unicorn -c config/unicorn.rb -I '.'
# If forums fails to start because elasticsearch isn't migrated, sleep so supervisord
# doesn't attempt to restart it immediately.
# 101 is the magic exit code forums uses to mean "rake search:validate_index failed"
exit_code="$?"
[ "$exit_code" -eq 101 ] && sleep 60 && exit "$exit_code"
Could this be the reason why the forum service is restarting every 60 seconds?
Could this be related to the ‘/edx/var/log/supervisor/forum-stderr.log’ file error that I mentioned in my first post which follows below?
/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
ERROR: ElasticSearch configuration validation failed. "rake search:validate_index" failed with the following message: Alias 'content' does not exist.
Finally, the ‘/edx/var/forum/forum_unicorn.pid’ and ‘/edx/var/forum/forum.sock’ files do not update (judging from their modified date time) when I execute the ‘/edx/bin/supervisorctl restart forum’ command. I do not know if they should, they update though when I run this command from my localhost installation.
Best Regards,
Kostas.