Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Unable to publish changes - DShop IPFS #1014

Closed
phyninja opened this issue Nov 19, 2021 · 22 comments
Closed

Unable to publish changes - DShop IPFS #1014

phyninja opened this issue Nov 19, 2021 · 22 comments

Comments

@phyninja
Copy link
Contributor

phyninja commented Nov 19, 2021

I would like to know if you can help me with this problem .. I can't publish the changes to make the shop publicly visible, it always show me this message.
Screenshot from 2021-11-19 02-54-59

Originally posted by @GhassenMedyouni in #1005 (comment)

@GhassenMedyouni
Copy link

@phyninja I create my marketplace Dshop, I can't make it public, this is my Network config
Screenshot from 2021-11-24 00-37-41
Screenshot from 2021-11-24 00-37-41

the public URL still inaccessible
Screenshot from 2021-11-24 00-54-55

@kellyalb
Copy link

Hi,

could you try creating a free Piñata account and connect it via key/secret?

@phyninja
Copy link
Contributor Author

phyninja commented Nov 24, 2021

@GhassenMedyouni, I stand by @kellyalb's response.

@GhassenMedyouni
Copy link

@kellyalb I create a Pinata account , but still the same issue
pic1
after i click publish nothing has been chnaging
pic2

@kellyalb
Copy link

kellyalb commented Nov 25, 2021

Hmmm… in your first screenshot, is the box for “Piñata pinning” checked down below?

what happens if you try to deploy from the Super Admin > Shops > [your shop] > Deploy section?

also, I’ve had to stick with Infuria for gateway/api to keep things working

@GhassenMedyouni
Copy link

@kellyalb the deployment was worked, but i can't activate it.
pic1
pic2

@kellyalb
Copy link

That seems like progress. Activate doesn’t work for me either. I’m guessing now it may be up to how you are configuring your DNS. Do you feel confident in that part?

@GhassenMedyouni
Copy link

@kellyalb i think the problem is that there is no a DNS provider but how to add it. ??
1

@phyninja
Copy link
Contributor Author

Hello,
To gain insight into why the 'Activate' button doesn't work, I looked into the source code for DShop. Like myself, you may also find the following error message displayed on your web browser's console when you click on the button:
Error setting hostname: 400: Bad Request

The error arises because the app expects a value in the DNS Provider field here:
image

@kellyalb would you please continue providing support?

@kellyalb
Copy link

I wasn’t able to get the DNS Provider functionality working in Dshop. I had to get Dshop working by manually configuring my DNS settings for my domain starting at its registrar. I’d need to double check the exact configuration that worked for me, but I believe it was a combination of A records and wild card sub domains.

@GhassenMedyouni do you have your Root Domain pointing to the IP address of the server where Dshop is installed? Then do you also point to the same IP address for all subdomains, by using a * for a wildcard, for that Root domain?

@GhassenMedyouni
Copy link

@kellyalb i create a new record with the public URL and point to the same address IP.
11111
i want to have the access to the shop like a simple user
12222222

@GhassenMedyouni
Copy link

@kellyalb Hi again, I am stuck in the same step, the DNS provider always displays none, so I cannot activate the shop even though I have created new records for the subdomain with the same IP address. Thank you for your help until now.

@phyninja
Copy link
Contributor Author

phyninja commented Dec 9, 2021

What is the result of using the route below?

  1. Go to Settings > General from the DShop Admin console
  2. Click on the Add a custom domain button and enter details
    Add a custom domain
  3. Update DNS records on the Domain registrar's side as directed

@GhassenMedyouni
Copy link

GhassenMedyouni commented Dec 10, 2021

@phyninja I added a custom domain also i created a new record with the custom domain and i pointed to the same IP address.
pic1_dns
after a few minutes
pic-dns2

@phyninja
Copy link
Contributor Author

phyninja commented Dec 14, 2021

@GhassenMedyouni

On Origin's Discord Server, there are some messages posted by users who also had trouble configuring DNS settings for DShop. I looked through those, but can't say that I found something that might help.

They say, however, that "DNS propagation may take up to 48 hours (to propagate)". Given that it has been over 48 hours since you posted, could you please check back in?

@phyninja
Copy link
Contributor Author

phyninja commented Dec 21, 2021

@GhassenMedyouni, you said previously that "the DNS provider always displays none, so (you) cannot activate the shop even though (you) have created new records for the subdomain with the same IP address."

Since Kelly mentioned the workaround of configuring DNS settings from the Domain registrar's side, we should continue pursuing that route to fix this issue. What is the name of the Domain registrar you're using?

@GhassenMedyouni
Copy link

GhassenMedyouni commented Dec 27, 2021

@phyninja, The domain name that I'm using is turnip.ovh hosted in route 53 Amazon.

@phyninja
Copy link
Contributor Author

phyninja commented Dec 28, 2021

turnip.ovh

We need to take a moment to check the spelling. Can you confirm that it's turnip, not tunip?

@GhassenMedyouni
Copy link

turnip.ovh

We need to take a moment to check the spelling. Can you confirm that it's turnip, not tunip?

@phyninja sorry it's tunip

@phyninja
Copy link
Contributor Author

Over a screen sharing session, @GhassenMedyouni and I worked together to:

I then

  • created a new shop
  • added a custom domain from Settings > General
  • made (recommended) changes on the domain-registrar end, and
  • attempted to publish the store.

The URL shown in the Host filed of the CNAME record directs a user to the DShop Admin console. The URL that the public can access the shop is to be determined.

@phyninja
Copy link
Contributor Author

@GhassenMedyouni,

I found the place in our codebase that displays the error "Something went wrong. Try again later" (Ref: #1014 (comment)), but not the answer to the question of how the public can access your shop.

Could you help me by taking the following steps, and posting the result?

  1. Start the DShop Instance
  2. Go to the DShop Admin console > Settings > General
  3. Copy the URL under 'Domain Name'
  4. Open a new Private window in your web browser OR open a window in a different web browser
  5. Navigate to the URL.

@phyninja
Copy link
Contributor Author

We found that adding the following two DNS records allowed for @GhassenMedyouni's shop to 'go live' on a public URL:

Record Type Record name Host/Value
A Backend Public URL IP address of the EC2 instance
A *.tunip.ovh IP address of the EC2 instance

Credits:
#1014 (comment)
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-asterisk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants