You need to sign in to do that
Don't have an account?
Rita Leverett
User Interface API > Install the Sample App - Record Viewer won't launch
Hello all,
I followed the directions in the Trailhead module and clicked https://localhost:8443. I received the below error.
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
I have internet connection, there is no proxy, and I turned off the firewall. I saw documentation that suggested checking for missing "listen:443". I found it in the nginx.conf file. Any help would be appreciated. Thank you.
I followed the directions in the Trailhead module and clicked https://localhost:8443. I received the below error.
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
I have internet connection, there is no proxy, and I turned off the firewall. I saw documentation that suggested checking for missing "listen:443". I found it in the nginx.conf file. Any help would be appreciated. Thank you.
All Answers
I went on a massive tangent and installed the salesforce CLI component and now I am so confused about what to do with:
cd /path/to/RecordViewer
docker-compose build && docker-compose up -d
Please let me know if you got past this part! Together we will figure this out :)
How coincident.. I am stuck at the same place.
They shouldn't give these kind of Trailhead module which involve installing different software.. Sometimes our laptops configurations can give trouble.
Now i am wondering whom to approach..
docker-compose build && docker-compose up -d
The error is: client version 1.21 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version.
Please see issue #4106 https://github.com/docker/compose/issues/4106#issuecomment-356443809
web:
build: .
command: 'bash -c ''node app.js'''
working_dir: /usr/src/app
environment:
PORT: 8050
NGINX_PORT: 8443
volumes:
- './views:/app/user/views:ro'
nginx:
build: nginx
ports:
- '8080:80'
- '8443:443'
links:
- web:web
volumes_from:
- web
I'm using Docker Toolbox also because I am working an a 9 years old macbook pro.
I managed to connect to the recordviewer app by changing localghost in the url by the docker ip
to get it I did the following commands in the terminal
to get the machine name and to get the machine ip
now I am on this screen :
I also changed the callback URL on the Connected App changing localhost by this IP.
Hope it will help.
Any idea ?
Thanks.
docker-compose build && docker-compose up -d
from within docker and not from a command prompt
I followed the instructions for this lesson but when I execute this command docker-compose build && docker-compose up -d I getting this error:
$ docker-compose build && docker-compose up -d
Building web
Step 1/7 : FROM node:8.9.3
---> 2eeae8debf3d
Step 2/7 : WORKDIR /usr/src/app
---> Using cache
---> 6fd40296c161
Step 3/7 : COPY package*.json ./
---> Using cache
---> e20e87430c1d
Step 4/7 : RUN npm install
---> Using cache
---> 3b2c9fce7413
Step 5/7 : COPY . .
---> Using cache
---> fa2d9c1471f4
Step 6/7 : RUN npm run build
---> Using cache
---> 010e170ae99c
Step 7/7 : CMD ["npm", "start"]
---> Using cache
---> 0f181acdc848
Successfully built 0f181acdc848
Successfully tagged recordviewer_web:latest
Building nginx
Step 1/6 : FROM nginx
---> ae513a47849c
Step 2/6 : RUN rm -v /etc/nginx/nginx.conf
---> Using cache
---> f3a03774eb38
Step 3/6 : ADD nginx.conf /etc/nginx/
---> Using cache
---> 23287709bf1c
Step 4/6 : RUN apt-get update && apt-get install -y openssl && cd /etc/nginx && openssl genrsa -des3 -passout pass:password1 -out cert.pass.key 2048 && openssl rsa -passin pass:password1 -in cert.pass.key -out cert.key && rm cert.pass.key && openssl req -new -key cert.key -out cert.csr -subj "/C=US/ST=California/L=San Francisco/O=Example/OU=Example/CN=example.com" && openssl x509 -req -days 365 -in cert.csr -signkey cert.key -out cert.crt
---> Running in 3541510a2ed8
Err:1 http://security.debian.org/debian-security stretch/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian stretch InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package openssl
Service 'nginx' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y openssl && cd /etc/nginx && openssl genrsa -des3 -passout pass:password1 -out cert.pass.key 2048 && openssl rsa -passin pass:password1 -in cert.pass.key -out cert.key && rm cert.pass.key && openssl req -new -key cert.key -out cert.csr -subj "/C=US/ST=California/L=San Francisco/O=Example/OU=Example/CN=example.com" && openssl x509 -req -days 365 -in cert.csr -signkey cert.key -out cert.crt' returned a non-zero code: 100
please help
Account acct = new Account(Name='ABC Computing',Rating='Warm');
insert acct;
then come back and check challenge. It won't know that you created the account with code vs. the RecordViewer app. This challenge was poorly written and should be amended with better instructions. Hope this help, Rob
I'm on this step:
Use a CLI to build the Record Viewer app and start the server.
cd /path/to/RecordViewer docker-compose build && docker-compose up -d
Any idea with this error on cmd ?
Building web
Step 1/7 : FROM node:8.9.3
ERROR: Service 'web' failed to build: Get https://registry-1.docker.io/v2/library/node/manifests/8.9.3: unauthorized: incorrect username or password
I followed this link that says use 8.8.8.8 on preferred DNS but still not working, same error.
https://github.com/moby/moby/issues/22635
Please help, i'm stuck :( TIA
i solve my trouble with this :
- i clone recordViewer in a directory that i created
- i read the readme.md tha is in the recordViewer directory that is created when i clone the project
- in the readme i read that i must go on a website : www.docker.com
- on this website create an account and download docker for mac (or windows , i use mac)
-once you have download the proggram install it and run it
- on the home page you must enter the login credential you have created on www.docker.com
-now you can use the terminal of mac and go to the recordViewer directory and run docker-compose build && docker-compose up -d
-after this, more download proccess starting
-when the download an installing proccess end you can finally go to https://localhost:8443 on a browser and see the result
@Nathan
Salesforce does not check for third part apps to complete the challenge so DO NOT bother dowloading git or dock or CLI or anything...
In your Trailhead Playground, from Setup, enter App and select App Manager.
Click New Connected App and enter these settings:
Connected App Name: RecordViewer
Contact Email: Your email address
Select: Enable OAuth Settings and enter these settings:
Callback URL: https://localhost:8443/oauth-redirect
Selected OAuth Scopes: Access and manage your data (api)
Click Save.
On the New Connected App page, click Continue.
----------------
From Setup, enter CORS and select CORS.
Click New.
For Origin URL Pattern, enter https://localhost:8443
Click Save.
-------------------
and finally to finish the challenge:
Go to Accounts and click New
Account name: ABC Computing
Rating: Warm
Save.
check mate
Hello, i setup the correct environment in my Ubuntu dist.
I had to try some workarounds with the Docker installation. After that i runned this commands separately with succes:
$ sudo docker-compose build
$ docker-compose up -d
OS: 18.04.1-Ubuntu x86_64 GNU/Linux
I also battled with this module.
1. Docker is NOT compatible with Windows 10 Home. Rather use Docker Toolbox if you are on Windows 10 Home.
2. Make sure you add your RecordViewer folder to the Shared Folders using VirtualBox / Settings.
3. The compile command works fine as long as your DEFAULT box is running ("docker-machine start" at command prompt).
4. Instead of using LOCALHOST:8443, replace all references with the IP Number of the DEFAULT virtual box. You can check the IP with command "docker-machine ls".
For me, it was https://192.168.92.100:8443/
Use this URL when setting up the connected app in the APP MANAGER and in the CORS setup.
Lastly, if you are connecting to a PLAYGROUND, enter the URL of your playground when authorising, and NOT the generic login.salesforce.com as shown in the screenshot.
Hope that all helps.