microsoft / oxa-tools

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

Failed creating container(s) for edxapp:migrate (uploads,reports,tracking) in 'xxxxxsecuresa' #357

Closed egonid closed 6 years ago

egonid commented 6 years ago

Hello

On today, We tryied to deploy a lms site with oxa/master.fic but we got an error like below. Until yesterday, deployment was successful, but today, we got an error.

Failed creating container(s) for edxapp:migrate (uploads,reports,tracking) in 'xxxxxsecuresa'

We attached the log file.

bootstrap.csx.log

How can we resolve this?

you can find the below logs.

ScriptStackTrace : at Authenticate-AzureRmUser, /oxa/oxa-tools/scripts/Common.ps1: line 357 at , /oxa/oxa-tools/scripts/Create-StorageContainer.ps1: line 90 PipelineIterationInfo : {} At /oxa/oxa-tools/scripts/Common.ps1:112 char:9

Script execution failed: Login failed

Thanks in advance.

larryuribe commented 6 years ago

Dear Team, I have the same issue from yesterday. I tried a lot of times with differents datacenters and configurations, but is the same problem.

"^

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) [2018-06-22 13:00:30Z] :: Login failed Log-Message : [2018-06-22 13:00:31Z] :: ########################################################################### ERROR ENCOUNTERED ########################################################################### Error [System.Management.Automation.RuntimeException]: Login failed PSMessageDetails : Exception : System.Management.Automation.RuntimeException: Login failed TargetObject : Login failed CategoryInfo : OperationStopped: (Login failed:String) [], RuntimeException FullyQualifiedErrorId : Login failed ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at Authenticate-AzureRmUser, /oxa/oxa-tools/scripts/Common.ps1: line 357 at , /oxa/oxa-tools/scripts/Create-StorageContainer.ps1: line 90 PipelineIterationInfo : {} At /oxa/oxa-tools/scripts/Common.ps1:112 char:9

Script execution failed: Login failed At /oxa/oxa-tools/scripts/Create-StorageContainer.ps1:76 char:5

06/22/18 13:00:31 :: [ERROR] Failed creating container(s) for edxapp:migrate (uploads,reports,tracking) in 'nsacoxa10securesa'"

Attached the logfile. bootstrap.csx.log

eltoncarr commented 6 years ago

We have a fix for it and will be pushing that shortly. See details in PR #358.

eltoncarr commented 6 years ago

@larryuribe , if you are using our repo, once the change is merged to master, your existing deployment issue should self-resolve and succeed. Generally, we have error handling in place such that if there is an error, the setup will fail and keep retrying until you stop it or if the conditions change.

larryuribe commented 6 years ago

@eltoncarr @egonid Thank you very much!! I change directly the Create-StorageContainer.pst1 with the changes suggested. and NOW i dont have the OXA Bootstrap Failed!

Actually, I have the first email from OXA Bootstrap !! 👍 Installation of the EDX Application (VMSS) has been scheduled.

You are the best guys! 👍 I need just wait for the next 4 emails remaining.

I will say you later how I will finish the deploy with the fix

Regards Larry Uribe Netsolution Learning Santiago de Chile

larryuribe commented 6 years ago

@eltoncarr but now I have an error in the 4th email:

OXA Bootstrap - nsacoxa15 - EdX Database (Mysql) Setup Failed Execution of edX MySQL playbook failed (Stamp JB)

Log attached :(

bootstrap.csx.log bootstrap.log

egonid commented 6 years ago

Hi larryuribe

I had look into your log files, I found bellow logs. You have to check the gpg key related issue.

I recommend that you can use current oxa/master.fic version.

I had successfully deployed a site using that version.

TASK [common : Add git apt repository] ***** fatal: [10.0.0.16]: FAILED! => {"changed": false, "cmd": "apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 E1DD270288B4E6030699E45FA1715D88E1DF1F24", "failed": true, "msg": "gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\ngpg: keyserver communications error: keyserver helper general error\ngpg: keyserver communications error: unknown pubkey algorithm\ngpg: keyserver receive failed: unknown pubkey algorithm", "rc": 2, "stderr": "gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\ngpg: keyserver communications error: keyserver helper general error\ngpg: keyserver communications error: unknown pubkey algorithm\ngpg: keyserver receive failed: unknown pubkey algorithm\n", "stdout": "Executing: /tmp/tmp.6sIuYqNYM2/gpg.1.sh --recv-keys\n--keyserver\nhkp://keyserver.ubuntu.com:80\nE1DD270288B4E6030699E45FA1715D88E1DF1F24\ngpgkeys: key E1DD270288B4E6030699E45FA1715D88E1DF1F24 can't be retrieved\n", "stdout_lines": ["Executing: /tmp/tmp.6sIuYqNYM2/gpg.1.sh --recv-keys", "--keyserver", "hkp://keyserver.ubuntu.com:80", "E1DD270288B4E6030699E45FA1715D88E1DF1F24", "gpgkeys: key E1DD270288B4E6030699E45FA1715D88E1DF1F24 can't be retrieved"]} to retry, use: --limit @/oxa/configuration/playbooks/edx_mysql.retry

PLAY RECAP ***** 10.0.0.16 : ok=13 changed=7 unreachable=0 failed=1

eltoncarr commented 6 years ago

That's an unrelated issue. Most probably a key server issue for a downstream dependency... Generally, retries take care of this. Meanwhile, I will close out this issue: "Failed creating container" since it has been resolved.