I am running squidex in a local machine using docker. The upsert request to elastic search is not working.
Current behavior
You can check the Error logs here.
And the elasticsearch params here
Expected behavior
Any action like content-updated, published should trigger a upsert request to elasticsearch and insert/update the information in elastic search.
Minimal reproduction of the problem
- Download the docker-compose and .env file from squidex-docker
- Replace the docker-compose.yml file with
version: '2.1'
services:
squidex_mongo:
image: mongo:latest
volumes:
- mongo:/data/db
networks:
- internal
restart: unless-stopped
squidex_squidex:
image: "squidex/squidex:dev"
ports:
- "5000:80"
hostname: ${SQUIDEX_DOMAIN}
environment:
- URLS__BASEURL=${SQUIDEX_PROTOCOL}://${SQUIDEX_DOMAIN}/
- URLS__ENFORCEHTTPS=${SQUIDEX_FORCE_HTTPS}
- EVENTSTORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
- STORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
- IDENTITY__ADMINEMAIL=${SQUIDEX_ADMINEMAIL}
- IDENTITY__ADMINPASSWORD=${SQUIDEX_ADMINPASSWORD}
- IDENTITY__GOOGLECLIENT=${SQUIDEX_GOOGLECLIENT}
- IDENTITY__GOOGLESECRET=${SQUIDEX_GOOGLESECRET}
- IDENTITY__GITHUBCLIENT=${SQUIDEX_GITHUBCLIENT}
- IDENTITY__GITHUBSECRET=${SQUIDEX_GITHUBSECRET}
- IDENTITY__MICROSOFTCLIENT=${SQUIDEX_MICROSOFTCLIENT}
- IDENTITY__MICROSOFTSECRET=${SQUIDEX_MICROSOFTSECRET}
- IDENTITY__SHOWPII=true
- IDENTITY__PRIVACYURL=http://research.squidex.com/privacy.html
- REBUILD_APPS=true
- LETSENCRYPT_HOST=${SQUIDEX_DOMAIN}
- LETSENCRYPT_EMAIL=${SQUIDEX_ADMINEMAIL}
- UI__ONLYADMINSCANCREATEAPPS=True
depends_on:
- squidex_mongo
volumes:
- squidex_assets:/app/Assets
networks:
- internal
restart: unless-stopped
networks:
internal:
driver: bridge
volumes:
mongo:
driver: local
squidex_assets:
driver: local
- update the .env file to
SQUIDEX_PROTOCOL=http
SQUIDEX_FORCE_HTTPS=False
SQUIDEX_DOMAIN=localhost:5000
SQUIDEX_ADMINEMAIL=user@example.com
SQUIDEX_ADMINPASSWORD=user@123!
SQUIDEX_GITHUBCLIENT=
SQUIDEX_GITHUBSECRET=
SQUIDEX_GOOGLECLIENT=
SQUIDEX_GOOGLESECRET=
SQUIDEX_MICROSOFTCLIENT=
SQUIDEX_MICROSOFTSECRET=
- run
docker-compose up
and access the app fromhttp://localhost:5000
- create a rule for elastic search and fill the required information:
Host: http://localhost:9200/
Index Name: app_name
- Now create new content and check the log for elasticsearch log.
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: [VERSION]
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge