By: Mark Grand user 30 Oct 2019 at 11:04 a.m. CDT

23 Responses
Mark Grand gravatar
Here is what happened: ``` C02VNC5EHTD5MBP:single-host root# chmod x run_all.sh chmod: Invalid file mode: x C02VNC5EHTD5MBP:single-host root# chmod +x run_all.sh C02VNC5EHTD5MBP:single-host root# ./run_all.sh [I] Determining OS Type and Attempting to Gather External IP Address Host is detected as Mac Is this the correct external IP Address: 172.22.49.15 [Y/n]? y [I] Preparing cluster-wide config and secret WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Recreating consul ... ERROR: for consul UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) ERROR: for consul UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). ```

By Mohammad Abudayyeh staff 30 Oct 2019 at 11:22 a.m. CDT

Mohammad Abudayyeh gravatar
Is there anything wrong with your network and / or your docker installation ? - run `./run_all.sh down` Try this ``` export DOCKER_CLIENT_TIMEOUT=120 export COMPOSE_HTTP_TIMEOUT=120 ```

By Mark Grand user 30 Oct 2019 at 11:40 a.m. CDT

Mark Grand gravatar
I am not aware of any problems with the network or docker installation. I tried what you suggested. This is what happened. ``` C02VNC5EHTD5MBP:single-host root# ./run_all.sh down WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Removing consul ... done Removing 06173952545a_consul ... done Removing network single-host_default C02VNC5EHTD5MBP:single-host root# ./run_all.sh [I] Determining OS Type and Attempting to Gather External IP Address Host is detected as Mac Is this the correct external IP Address: 172.22.49.15 [Y/n]? y [I] Preparing cluster-wide config and secret WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Creating network "single-host_default" with the default driver Creating consul ... error ERROR: for consul Cannot start service consul: b'Mounts denied: EOF' ERROR: for consul Cannot start service consul: b'Mounts denied: EOF' ERROR: Encountered errors while bringing up the project. ``` If I need to give permission for a mount in Docker Desktop, I am not sure what path that is. The current directory path is ``` /Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host ``` The docker file sharing includes `/Users/mxg88rm/tmp/gluu`

By Mohammad Abudayyeh staff 30 Oct 2019 at 11:54 a.m. CDT

Mohammad Abudayyeh gravatar
add both /private and /tmp Can you share a screen shot of the filesharing tab

By Mark Grand user 30 Oct 2019 at 11:59 a.m. CDT

Mark Grand gravatar
/tmp and /private were already in there. Here is a screen shot. [cid:image001.png@01D58F21.D5E97FC0]

By Mohammad Abudayyeh staff 30 Oct 2019 at noon CDT

Mohammad Abudayyeh gravatar
Here is an example attach as an image.

By Mohammad Abudayyeh staff 30 Oct 2019 at 12:12 p.m. CDT

Mohammad Abudayyeh gravatar
https://support.gluu.org/installation/7639/consul-times-out-during-test-drive-installation/#at53501 The image is not attached

By Mark Grand user 30 Oct 2019 at 12:25 p.m. CDT

Mark Grand gravatar
I posted it to my google drive so that I could share it as a link: ![](https://drive.google.com/file/d/1bhZGv1Xrslw8zIIGHSBxNnE-C8bf-lD6/view?usp=sharing)

By Mark Grand user 30 Oct 2019 at 12:28 p.m. CDT

Mark Grand gravatar
That didn't seem to have worked. Try clicking on this link <https://drive.google.com/file/d/1bhZGv1Xrslw8zIIGHSBxNnE-C8bf-lD6/view?usp=sharing>

By Mohammad Abudayyeh staff 30 Oct 2019 at 2:01 p.m. CDT

Mohammad Abudayyeh gravatar
Ok im beginning to think your docker installation is running in some issues, have you tried to uninstall and install docker again or perhaps provision a linux VM install docker on there and run our gluu setup. thanks

By Mark Grand user 31 Oct 2019 at 6:04 a.m. CDT

Mark Grand gravatar
I reinstalled docker. When I tried to add /Users/mxg88rm/tmp/gluu to docker file sharing, it complained that the path overlaps /Users, which is already in the file sharing. What directory should I be installing gluu into? What directory should I be adding to the file sharing?

By Mohammad Abudayyeh staff 31 Oct 2019 at 6:19 a.m. CDT

Mohammad Abudayyeh gravatar
You shouldn't need more than what is in the image I sent you. Remove ` /Users/mxg88rm/tmp/gluu` because `/Users` is the parent directory.

By Mark Grand user 31 Oct 2019 at 6:23 a.m. CDT

Mark Grand gravatar
It didn't add /Users/mxg88rm/tmp/gluu for the reason that it complained about it being under /Users. When I tried running the install, this is what happened: ``` C02VNC5EHTD5MBP:single-host root# pwd /Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host C02VNC5EHTD5MBP:single-host root# ./run_all.sh [I] Determining OS Type and Attempting to Gather External IP Address Host is detected as Mac Is this the correct external IP Address: 172.22.49.15 [Y/n]? y [I] Preparing cluster-wide config and secret WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Creating network "single-host_default" with the default driver Pulling consul (consul:)... latest: Pulling from library/consul e7c96db7181b: Pull complete 3404d2df15cb: Pull complete 1b2797650ac6: Pull complete 42eaf145982e: Pull complete cef844389e8c: Pull complete bc7449359c58: Pull complete Digest: sha256:94cdbd83f24ec406da2b5d300a112c14cf1091bed8d6abd49609e6fe3c23f181 Status: Downloaded newer image for consul:latest Creating consul ... error ERROR: for consul Cannot start service consul: error while creating mount source path '/Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host/volumes/consul': mkdir /Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host/volumes/consul: permission denied ERROR: for consul Cannot start service consul: error while creating mount source path '/Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host/volumes/consul': mkdir /Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host/volumes/consul: permission denied ERROR: Encountered errors while bringing up the project. C02VNC5EHTD5MBP:single-host root# ```

By Mohammad Abudayyeh staff 31 Oct 2019 at 6:35 a.m. CDT

Mohammad Abudayyeh gravatar
docker doesn't have enough permissions. Can you check with the folder permissions are on `/Users`

By Mark Grand user 31 Oct 2019 at 6:53 a.m. CDT

Mark Grand gravatar
Here is the permissions for /Users ``` drwxr-xr-x 6 root admin 192 Sep 16 11:37 /Users ``` What is the permission requirement? Since you instructions say that I should start the install as root, why doesn't the install script set the necessary permissions?

By Mohammad Abudayyeh staff 31 Oct 2019 at 7:02 a.m. CDT

Mohammad Abudayyeh gravatar
No the script shouldn't change permissions thats considered a security bug , running in root is always suffice. However, your permissions are fine. Lets try to remove all the directories inside filesharing then hit apply and restart. After that restart your mac, add back the directories in the image I previous sent and hit apply and restart. Then try again.

By Mark Grand user 31 Oct 2019 at 7:05 a.m. CDT

Mark Grand gravatar
What image? I have not received any images from you.

By Mohammad Abudayyeh staff 31 Oct 2019 at 7:10 a.m. CDT

Mohammad Abudayyeh gravatar
The image was attached above . You can follow this link which should point you to it. https://support.gluu.org/installation/7639/consul-times-out-during-test-drive-installation/#at53502

By Mark Grand user 31 Oct 2019 at 7:16 a.m. CDT

Mark Grand gravatar
The link that you just sent point back at a link that I tried to send you for the previous images of my docker file share. If you want me to see an image, please email it directly to me as image sharing on this forum does not seem to be working for me. There is a post that includes an image, but I can't see the image, just a broken image icon. My email is mark_grand@homedepot.com

By Mark Grand user 31 Oct 2019 at 7:25 a.m. CDT

Mark Grand gravatar
I got past the issue by ``` chmod -R 777 volumes ``` Clearly docker is not running as root. Since `volumes` is a newly created directory, having the shell script create it before starting the docker process and setting the new directories permissions is not a security problem. Also, remember this is supposed to be a test drive script so that I can install gluu on my mac just to kick the tires. The directions specifically say to use different instructions for production.

By Mark Grand user 31 Oct 2019 at 7:30 a.m. CDT

Mark Grand gravatar
I am following the instructions at <https://gluu.org/docs/ce/latest/installation-guide/test-drive/>. They say nothing about me needing a FQDN for my mac. I don't have one. All the same, it is now asking for one: ``` sh-3.2# chmod -R 777 volumes/ sh-3.2# ./run_all.sh [I] Determining OS Type and Attempting to Gather External IP Address Host is detected as Mac Is this the correct external IP Address: 172.22.49.15 [Y/n]? [I] Preparing cluster-wide config and secret WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Starting consul ... done WARNING: The DOMAIN variable is not set. Defaulting to a blank string. WARNING: The HOST_IP variable is not set. Defaulting to a blank string. Pulling vault (vault:1.0.1)... 1.0.1: Pulling from library/vault cd784148e348: Pull complete 212f40d6b450: Pull complete c3009ff51254: Pull complete d8862af4a2e3: Pull complete 03dae74736fd: Pull complete Digest: sha256:1fe0c0b482c458ee3f8953299eb77c1c7d8c1f71db13c45109c5acdb40bc76a5 Status: Downloaded newer image for vault:1.0.1 consul is up-to-date Creating vault ... done [I] Checking seal status in Vault [W] Vault is not initialized; trying to initialize Vault with 1 recovery key and root token [I] Vault recovery key and root token saved to /Users/mxg88rm/tmp/gluu/community-edition-containers-4.0.0/examples/single-host/vault_key_token.txt [I] Unsealing Vault manually Key Value --- ----- Seal Type shamir Initialized true Sealed false Total Shares 1 Threshold 1 Version 1.0.1 Cluster Name vault-cluster-fcb4917f Cluster ID d625cbbb-457a-2a85-2c81-4a4be9dd2e09 HA Enabled true HA Cluster n/a HA Mode standby Active Node Address <none> [W] Gluu policy is not created; trying to create one Success! Uploaded policy: gluu [W] AppRole is not enabled; trying to enable AppRole Success! Enabled approle auth method at: approle/ Success! Data written to: auth/approle/role/gluu Success! Data written to: auth/approle/role/gluu [I] Checking existing config in Consul [W] Unable to get config in Consul; retrying ... [W] Unable to get config in Consul; retrying ... [W] Unable to get config in Consul; retrying ... [W] Configuration not found in Consul [I] Creating new configuration, please input the following parameters Enter Hostname (demoexample.gluu.org): C02VNC5EHTD5MBP [E] Hostname provided is invalid. Please enter a FQDN with the format demoexample.gluu.org sh-3.2# ```

By Mohammad Abudayyeh staff 31 Oct 2019 at 7:53 a.m. CDT

Mohammad Abudayyeh gravatar
FQDN is a format . It does not mean you need a registered DOMAIN. So just place anything in the formate of a FQDN like `demoexample.gluu.org` . It can be `mark.demogluu.org`. Once its done , add to your `/etc/hosts` the ip of your mac or whatever you placed in the script mapped to this FQDN. something like this `192.168.1.1 mark.demogluu.org` got to your browser incognito mode and browse `mark.demogluu.org`

By Mohammad Abudayyeh staff 01 Nov 2019 at 11:37 a.m. CDT

Mohammad Abudayyeh gravatar
Any news Mark ? did it work for you

By Mark Grand user 01 Nov 2019 at 11:38 a.m. CDT

Mark Grand gravatar
I got a Linux server provisioned and was able to get Gluu installed.