microsoft / oxa-tools

Open edX on Azure Tools
MIT License
36 stars 103 forks source link

krb5.keytab #362

Closed lukeduffyV closed 6 years ago

lukeduffyV commented 6 years ago

Hi

I have tried to deploy a variety of commits, and always end up with this error being emailed to me.

src kt = /etc/krb5.keytab File /etc/krb5.keytab does not exist /opt/omi/bin/support/ktstrip: 38: exit: Illegal number: -

followed by another error

/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/serialization.js:78 const { required, nullable } = mapper; ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Module.pModule._compile (/usr/local/lib/node_modules/azure-cli/node_modules/streamline/lib/compiler/register.js:72:15) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/webResource.js:11:20) at Module._compile (module.js:410:26)

Any ideas on how to progress past this ?

Thanks

egonid commented 6 years ago

Hi lukeduffyV

The First issue "src kt = /etc/krb5.keytab...", You can check https://github.com/Microsoft/oxa-tools/issues/333#issuecomment-394783077

And second issue, You can check https://github.com/Microsoft/oxa-tools/issues/357

These two issues are fixed at current version of oxa/master.fic.

So, In conclusion, You have to use current version of oxa/master.fic which is last modified at 2 days ago.

We had successfully deploy a site with those version of oxa/master.fic.

Thank you.

LukeDuffy98 commented 6 years ago

Hi Egonid

We currently have a VMSS that is unable to reimage. As far as I can see we are using the current oca/master.fic build.

After a reimage we get the src kt = /etc/krb5.keytab File /etc/krb5.keytab does not exist /opt/omi/bin/support/ktstrip: 38: exit: Illegal number: -1

error. This email is received 4 times.

We end up with a successful email: Installation of the EDX Application on VMSS instance 'EDX000005' was completed successfully.

However we only see the server error page with the pendleton sinking.

Looking in /edx/var/log/supervisor/lms-stderr.log:

2018-06-26 00:55:43,167 INFO 126484 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125 Traceback (most recent call last): File "/edx/app/edxapp/venvs/edxapp/bin/gunicorn", line 11, in sys.exit(run()) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 36, in run WSGIApplication("%(prog)s [OPTIONS] APP_MODULE").run() File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 135, in run Arbiter(self).run() File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 59, in init self.setup(app) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 111, in setup self.app.wsgi() File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 106, in wsgi self.callable = self.load() File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 27, in load return util.import_app(self.app_uri) File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/util.py", line 353, in import_app import(module) File "/edx/app/edxapp/edx-platform/lms/wsgi.py", line 32, in modulestore() File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/django.py", line 240, in modulestore contentstore(), File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/contentstore/django.py", line 28, in contentstore CONTENTSTORE[name] = class(options) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/contentstore/mongo.py", line 42, in init port=port, tz_aware=tz_aware, user=user, password=password, proxy=proxy, kwargs File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/mongo_utils.py", line 42, in connect_to_mongodb **kwargs File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 425, in init raise ConnectionFailure(str(e)) pymongo.errors.ConnectionFailure: [Errno 111] Connection refused, [Errno -2] Name or service not known, [Errno 111] Connection refused

Is it related to the krb5 error ??

Thanks

egonid commented 6 years ago

Hi LukeDuffy98

I think that your issue is not related with krb5 error. you can refer to this link https://github.com/Microsoft/omi.

Anyway, in oxa-tools, the omi issue was fixed. I suggest that try to update omi to version above v1.4.1-1 for krb5 issue. (refer to : https://github.com/Microsoft/omi/issues/425)

and for pymongo issue. you can check below link,

http://findnerd.com/list/view/reasonerrno111-Connection-refused-OR-exceptionconnect-failed-on-mongoDB-restart-in-ubuntu-16-04/23508/

But I can not guarantee that may this suggestions can help you.

Thanks.

LukeDuffy98 commented 6 years ago

Ok

Thanks for the ideas. I'm going to do fresh instal and try and reload the dbs from back up.

Fingers crossed

How do we close the issue ??

eltoncarr commented 6 years ago

I will close this issue as resolved. Thanks @egonid for sharing.