Azure / Azure/azure-quickstart-templates

Could not reliably determine the server's fully qualified domain name

Open
#7,134 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

I click on "Deploy to Azure" link on the home page, fill the details and get this issue consistently:

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'spinnakerInit'. Error message: \\\"Enable failed: failed to execute command: command terminated with exit status=124\\n[stdout]\\nected package unzip.\\n(Reading database ... 33797 files and directories currently installed.)\\nPreparing to unpack .../unzip_6.0-9ubuntu1.5_amd64.deb ...\\nUnpacking unzip (6.0-9ubuntu1.5) ...\\nSelecting previously unselected package spinnaker-rosco.\\nPreparing to unpack .../spinnaker-rosco_0.16.0-20200117051825_all.deb ...\\nUnpacking spinnaker-rosco (0.16.0-20200117051825) ...\\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\\nProcessing triggers for mime-support (3.54ubuntu1.1) ...\\nProcessing triggers for ureadahead (0.100.0-16) ...\\nSetting up unzip (6.0-9ubuntu1.5) ...\\nSetting up spinnaker-rosco (0.16.0-20200117051825) ...\\nArchive: packer_1.4.4_linux_amd64.zip\\n inflating: /usr/bin/packer \\nDownloading https://get.helm.sh/helm-v2.16.1-linux-amd64.tar.gz\\nPreparing to install helm and tiller into /usr/local/bin\\nhelm installed into /usr/local/bin/helm\\ntiller installed into /usr/local/bin/tiller\\nRun 'helm init' to configure helm.\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following NEW packages will be installed:\\n spinnaker-echo\\n0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.\\nNeed to get 93.5 MB of archives.\\nAfter this operation, 105 MB of additional disk space will be used.\\nGet:1 https://dl.bintray.com/spinnaker-releases/debians/ trusty/spinnaker spinnaker-echo all 2.10.0-20200117051825 [93.5 MB]\\nFetched 93.5 MB in 17s (5240 kB/s)\\nSelecting previously unselected package spinnaker-echo.\\n(Reading database ... 34061 files and directories currently installed.)\\nPreparing to unpack .../spinnaker-echo_2.10.0-20200117051825_all.deb ...\\nUnpacking spinnaker-echo (2.10.0-20200117051825) ...\\nProcessing triggers for ureadahead (0.100.0-16) ...\\nSetting up spinnaker-echo (2.10.0-20200117051825) ...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following NEW packages will be installed:\\n spinnaker-gate\\n0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.\\nNeed to get 86.5 MB of archives.\\nAfter this operation, 97.0 MB of additional disk space will be used.\\nGet:1 https://dl.bintray.com/spinnaker-releases/debians/ trusty/spinnaker spinnaker-gate all 1.14.0-20200117051825 [86.5 MB]\\nFetched 86.5 MB in 15s (5581 kB/s)\\nSelecting previously unselected package spinnaker-gate.\\n(Reading database ... 34389 files and directories currently installed.)\\nPreparing to unpack .../spinnaker-gate_1.14.0-20200117051825_all.deb ...\\nUnpacking spinnaker-gate (1.14.0-20200117051825) ...\\nProcessing triggers for ureadahead (0.100.0-16) ...\\nSetting up spinnaker-gate (1.14.0-20200117051825) ...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following extra packages will be installed:\\n redis-tools\\nSuggested packages:\\n ruby-redis\\nThe following NEW packages will be installed:\\n redis-server redis-tools\\n0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.\\nNeed to get 856 kB of archives.\\nAfter this operation, 4737 kB of additional disk space will be used.\\nGet:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu/ trusty/main redis-tools amd64 5:5.0.4-1chl1~trusty1 [777 kB]\\nGet:2 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu/ trusty/main redis-server amd64 5:5.0.4-1chl1~trusty1 [79.3 kB]\\nFetched 856 kB in 1s (456 kB/s)\\nSelecting previously unselected package redis-tools.\\n(Reading database ... 34682 files and directories currently installed.)\\nPreparing to unpack .../redis-tools_5%3a5.0.4-1chl1~trusty1_amd64.deb ...\\nUnpacking redis-tools (5:5.0.4-1chl1~trusty1) ...\\nSelecting previously unselected package redis-server.\\nPreparing to unpack .../redis-server_5%3a5.0.4-1chl1~trusty1_amd64.deb ...\\nUnpacking redis-server (5:5.0.4-1chl1~trusty1) ...\\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\\nProcessing triggers for ureadahead (0.100.0-16) ...\\nSetting up redis-tools (5:5.0.4-1chl1~trusty1) ...\\nSetting up redis-server (5:5.0.4-1chl1~trusty1) ...\\nStarting redis-server: redis-server.\\nProcessing triggers for ureadahead (0.100.0-16) ...\\nspinnaker start/running\\n * Restarting web server apache2\\n ...done.\\n\\n[stderr]\\n....... 96% 59.9M 0s\\n 40750K .......... .......... .......... .......... .......... 96% 42.5M 0s\\n 40800K .......... .......... .......... .......... .......... 96% 59.5M 0s\\n 40850K .......... .......... .......... .......... .......... 97% 56.7M 0s\\n 40900K .......... .......... .......... .......... .......... 97% 89.4M 0s\\n 40950K .......... .......... .......... .......... .......... 97% 324M 0s\\n 41000K .......... .......... .......... .......... .......... 97% 101M 0s\\n 41050K .......... .......... .......... .......... .......... 97% 65.0M 0s\\n 41100K .......... .......... .......... .......... .......... 97% 67.3M 0s\\n 41150K .......... .......... .......... .......... .......... 97% 60.1M 0s\\n 41200K .......... .......... .......... .......... .......... 97% 98.9M 0s\\n 41250K .......... .......... .......... .......... .......... 98% 312M 0s\\n 41300K .......... .......... .......... .......... .......... 98% 77.8M 0s\\n 41350K .......... .......... .......... .......... .......... 98% 60.7M 0s\\n 41400K .......... .......... .......... .......... .......... 98% 70.4M 0s\\n 41450K .......... .......... .......... .......... .......... 98% 158M 0s\\n 41500K .......... .......... .......... .......... .......... 98% 356M 0s\\n 41550K .......... .......... .......... .......... .......... 98% 302M 0s\\n 41600K .......... .......... .......... .......... .......... 98% 125M 0s\\n 41650K .......... .......... .......... .......... .......... 98% 72.8M 0s\\n 41700K .......... .......... .......... .......... .......... 99% 64.3M 0s\\n 41750K .......... .......... .......... .......... .......... 99% 59.7M 0s\\n 41800K .......... .......... .......... .......... .......... 99% 73.5M 0s\\n 41850K .......... .......... .......... .......... .......... 99% 73.5M 0s\\n 41900K .......... .......... .......... .......... .......... 99% 73.1M 0s\\n 41950K .......... .......... .......... .......... .......... 99% 257M 0s\\n 42000K .......... .......... .......... .......... .......... 99% 351M 0s\\n 42050K .......... .......... .......... .......... .......... 99% 297M 0s\\n 42100K .......... .......... .......... 100% 61.7M=0.6s\\n\\n2020-01-24 23:55:54 (64.7 MB/s) - 'packer_1.4.4_linux_amd64.zip' saved [43142079/43142079]\\n\\n--2020-01-24 23:55:55-- https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get\\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.188.133\\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.188.133|:443... connected.\\nHTTP request sent, awaiting response... 200 OK\\nLength: 7164 (7.0K) [text/plain]\\nSaving to: 'get'\\n\\n 0K ...... 100% 49.1M=0s\\n\\n2020-01-24 23:55:56 (49.1 MB/s) - 'get' saved [7164/7164]\\n\\nstop: Unknown instance: \\ndpkg-preconfigure: unable to re-open stdin: No such file or directory\\nstop: Unknown instance: \\ndpkg-preconfigure: unable to re-open stdin: No such file or directory\\nstop: Unknown instance: \\ndpkg-preconfigure: unable to re-open stdin: No such file or directory\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\nsent invalidate(passwd) request, exiting\\nsent invalidate(group) request, exiting\\n/home/oignat/.hal/default/install.sh: line 416: systemctl: command not found\\nstop: Unknown instance: \\nAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.0.4. Set the 'ServerName' directive globally to suppress this message\\nFailed to connect to Spinnaker within '180' seconds.\\n\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n }\r\n ]\r\n }\r\n}"}]}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Azure VM extension error for spinnakerInit and inspect /home/oignat/.hal/default/install.sh around line 416, where systemctl and Apache startup are reported. Reproduce the Deploy to Azure flow and determine which deployment operation causes the 180-second timeout; done means the template deploys successfully without the reported provisioning failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, azure, ubuntu
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.