Shopware 6 Unable to find a matching sales channel for the request - dns

I have been stuck on this for long enough now, basically I am wanting to try and use Shopware 6 as a PWA.
To install shopware I make use of Valet and Git.
But I am never able to use install Shopware6 in the right way because I am always getting the same error:
This is how I am installing Shopware6:
clone git repo -->https://github.com/shopware/production;
cd /production;
-composer install (to install dependencies)
./bin/console system:setup - At this step I am asked to input some datas:
Application environment [dev]: //dev;
URL to your /public folder [http://localhost]: // http://production.test;
Blue Green Deployment (yes/no) [yes]: //yes
Database user [app]: //root
Database password: //root
Database host [localhost]: //
Database port [3306]: //
Database name [shopware]: //
Database SSL CA Path []: //
Database SSL Cert Path []: //
Database SSL Key Path []: //
Skip verification of the database server's SSL certificate? (yes/no) [no]: //no
Once Shopware 6 is installed I would visit production/public to create a valet link (virtual host).
valet link production.test
I visit my virtual host on http://production.test
At this moment I always get the above mentioned error: Unable to find a matching sales channel for the request: http://production.test/". Please make sure the domain mapping is correct.

This is a bit odd. Good news is that your installation seems to be working, but for some reason it sounds like your SalesChannel -> domain is not set. Try logging into http://production.test/admin & going to the Storefront sales channel. There you can configure the domain.
You can see it here as an example:

Related

Add additional Storefront URL with CLI

I install Shopware 6 on CLI. My shop is reachable over HTTP and HTTPS.
The cli-installer will create a storefront with my given URL like https://demo.shop.
My problem now is that I need the shop to be reachable without TLS too. How can I add another Storefront URL?
I tried to use the command bin/console sales-channel:create:storefront --id=e28bf43c262f4343938a7b8a841ed136 --url=http://demo.shop but this will fail with
6:06:05 CRITICAL [console] Error thrown while running command "sales-channel:create:storefront --id=e28bf43c262f4343938a7b8a841ed136 --url='http://demo.shop'". Message: "Expected command for "sales_channel" to be "Shopware\Core\Framework\DataAbstractionLayer\Write\Command\InsertCommand". (Got: Shopware\Core\Framework\DataAbstractionLayer\Write\Command\UpdateCommand)" ["exception" => Shopware\Core\Framework\DataAbstractionLayer\Write\Command\WriteTypeIntendException^ { …},"command" => "sales-channel:create:storefront --id=e28bf43c262f4343938a7b8a841ed136 --url='http://demo.shop'","message" => "Expected command for "sales_channel" to be "Shopware\Core\Framework\DataAbstractionLayer\Write\Command\InsertCommand". (Got: Shopware\Core\Framework\DataAbstractionLayer\Write\Command\UpdateCommand)"]
How can I solve this?
As the name of the command suggests it is only meant to create new sales channels, not for updating an existing one.
Why not create the additional domain using the administration web-interface?
If you can't access the web-interface for some reason you could change the domain with the command bin/console sales-channel:update:domain instead. This will change the domain for all sales channels unless you provide a specific one to replace. See the help option of the command regarding that.
To actually create additional sales channel domains you may also use the API endpoint, see here or here.

Layer NOT shown in Geonode

A layer is displayed in Geonode when admin is logged in GeoServer. When the admin logs off in GeoServer the layer is not displayed in Geonode.
It seems like oauth configuration of geoserver-geonode is not done properly (the default settings are not changed) which I am not able to solve.
The geoserver log shows errors/exceptions as follows:
ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Could not find layer geonode:nepalNationalParks
.
.
WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]
WARN [geoserver.security] - Failed login, user admin from 192.168.10.66
My System Configuration is GeoNode 3.1.0 , GeoServer 2.16.2 installed on Ubuntu 18.04. The larger log file is here.
Thank You.
I think you need to add new geofench rule from GeoFence Data Rules menu (GeoFence Data Rules>>Add new rule>>) as below,
Priority: 0
Role: *
Username: *
Service: *
Request: *
Workspace: *
Layer: *
Access: ALLOW
Or you can apply the required role for specific serice, workspace, or layer by just changing the parameter.
#Tekson Thank You for your suggestion.
I tried to play with GeoFence Rules as well. However, I think the problem was due to mis-configuration in OAuth setting. The issue was solved when I re-installed Geonode with proper IP Address and URLs (and did not altered the GeoFenceing Rules).
I followed Geonode installation guide(ubuntu 18.04). In my previous installation, mis-configuration might had happened around section
Update the settings in order to update GeoNode and GeoServer services running on a public IP or hostname particularly in Step 3 (Update OAuth2 configuration in order to hit the new hostname).

Errors deploying Node.js app

So I am new to IBM Bluemix and all of their products and I am trying to do this project http://www.ibm.com/developerworks/library/ba-muse-toycar-app/index.html . I have done all of the modifying of the car and everything I am just having issues with the codes.
I have a few specific questions on part 2 step 2.b when you are entering in the information for the Cloudant database what information do I put in for the cradle connection and how do I acquire that information.
Second when I go to deploy the app Part 2 Step 2.4 how do I navigate to the application directory? I have looked at the help and googled to no avail. So if we fix these things I am hoping that I will be able to deploy the application. However currently when I go to deploy it I get this error.
cf push braincar
Updating app braincar in org ccornwe1#students.kennesaw.edu / space dev as myemailaddress#gmail.com...
OK
Uploading braincar...
FAILED
Error uploading application.
open /Users/codycornwell/.rnd: permission denied
>>
I am green to all this so any help and explanation to understand it is greatly appreciated! Thanks!
In the tutorial's part 2, step 2.b, you need to specify your Cloudant credentials. There are several ways to get Cloudant credentials, but I'll focus on doing it within the context of Bluemix and the cf command line tool.
You will first need to create a Cloudant service instance, then create a set of service keys (credentials) and then view them.
Create a Cloudant service instance named myCloudantSvc using the Shared plan:
$> cf create-service cloudantNoSQLDB Shared myCloudantSvc
Create a set of service keys (credentials) named cred1:
$> cf create-service-key myCloudantSvc cred1
View the credentials for the service key you just created
$> cf service-key myCloudantSvc creed
With the last step above, you should see output which provides you with the username, password and host values that you'll need to place into your app.js code. It should look something like the following:
{
"host": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-bluemix.cloudant.com",
"password": "longSecretPassword",
"port": 443,
"url": "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-bluemix:longSecretPassword#xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-bluemix.cloudant.com",
"username": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-bluemix"
}
For your second question, it looks like you're performing the cf push from your $HOME directory (as mentioned in the comment by #vmovva). By default, the cf push command will send all files in the current directory to Bluemix/CloudFoundry.
Try running the command from the directory where your source code is located to reduce the files pushed to Bluemix. If your source code is intermingled in your $HOME directory, move your source into a different directory and then push from that directory.

Step-by-step Install Iframely

I wan to using this oembed https://github.com/itteco/iframely but I dont know how to setup .
I already try follow this documentation to setup https://github.com/itteco/iframely/blob/master/docs/SETUP.md .
What should i do after run command "node server" ?
Can some one tell step-by-step to use this oembed ?
I'm currently doing the same and am also stuck (but at a later stage!) but hopefully this will help someone even if you have already moved on - I realise this is a very old question!
If you have succeeded in running npm install for iframely then after you run node server you should get a message similar to below:
Using cache engine: node-cache
No local whitelist file detected...
Loading whitelist from http://iframely.com/qa/whitelist.json
Iframely plugins loaded:
- custom domains: 246
- generic & meta: 0
Starting Iframely...
Base URL for embeds that require hosted renders: http://yourdomain.com
Iframely listening on port 8061
- support#iframely.com - if you need help
- twitter.com/iframely - news & updates
- github.com/itteco/iframely - star & contribute
Whitelist activated. Domains, including blacklisted: 2005
Then you simply use a browser or a JSON tool to make the request from your server at the port above (8601 in my case):
GET http://localhost:8601/iframely?url=<your URL-encoded URL here>
You should receive a response in JSON format. The problem I am having is that I'm getting what looks to be an incomplete response with only meta-data but I will need to work that out myself / ask another question on SO for that...Anyway, here's what my JSON response looks like...a bit bare but hopefully you get the idea at least:
{
meta:
{
canonical: "https://www.youtube.com/watch?t=32&v=4sFuULOY5ik"
}
links: [0]
}

openAm 12.0.0 failed to add user with external opendj

I had build and install openam 12 from source code, from svn checkout
link:
svn checkout https://svn.forgerock.org/openam/tags/12.0.0/openam/
after that I had used external OpenDJ-2.6.0 with openam , installation is successful.
But when I add new user and click OK I got error
Error :”Plug-in org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo encountered a ldap exception. ldap errorcode=65”
Also check in OpenDJ-2.6.0 logs access logs:
[25/Feb/2015:16:27:00 +0530] ADD RES conn=6 op=131 msgID=132 result=65 message=”Entry uid=indranis,dc=xyz,dc=net violates the Directory Server schema configuration because it contains an unknown objectclass iPlanetPreferences” etime=2
Same exception I got when I try to add group ,
but able to solve referring following link:
https://java.net/projects/opensso/lists/users/archive/2007-08/message/21
remove manually from Data Store – opends and remove groupOfURLs or groupOfUniqueNames from the LDAP Groups Object Class
Is there is issue with openDJ2.6 version , or any changes do I need to configure?
I got issue resolve, by installing openAM with embeded datastore and and then after installation ,configured it with an external opendj store and removed embedded one.

Resources