Comments (12)
@tangyang9464 @JalinWang @imp2002
from casdoor.
@ladung what did you do to see this? Reproduce steps?
from casdoor.
@ladung what did you do to see this? Reproduce steps?
@hsluoyz
- I start casdoor via docker-compose by command:
docker-compose up -d
. Login to casdoor in web, show session on tab session - I remove casdoor by run
docker-compose down
- recreate casdoor by command :
docker-compose up -d
My compose file:
version: "3"
services:
casdoor:
restart: always
image: $CASDOOR_IMAGE_TAG
entrypoint: /bin/sh -c './server --createDatabase=true'
container_name: casdoor
environment:
RUNNING_IN_DOCKER: "true"
DOMAIN: ${DOMAIN}
ports:
- "8080:8080"
volumes:
- ./app.conf:/conf/app.conf
- ./init_data.json:/init_data.json
networks:
- backend
depends_on:
postgres:
condition: service_healthy
redis:
image: redis:7.2-alpine
restart: always
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 200mb
networks:
backend:
postgres:
image: ${POSTGRES_IMAGE_TAG}
volumes:
- ./data/idp/idp-postgres:/var/lib/postgresql/data
- ./bin/pg_multiple_databases:/docker-entrypoint-initdb.d
environment:
#POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_MULTIPLE_DATABASES: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- backend
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${POSTGRES_DB}", "-U", "${POSTGRES_USER}" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
restart: always
ports:
- "5433:5432"
from casdoor.
@ladung it seems like a Docker container permission issue. Not a Casdoor issue
from casdoor.
@ladung it seems like a Docker container permission issue. Not a Casdoor issue
@hsluoyz
I use casdoor version 1.610.0
I double check it when recreate. I saw sessionId was not delete in DB tables. When create user from init_data.json, casdoor require delete sessionid as follow:
https://github.com/casdoor/casdoor/blob/master/object/user.go#L922
If you restart through cmd docker-compose restart
, you still have same error!
from casdoor.
@hsluoyz
And when I delete sessionId in database table session
, it's will be work fine!
from casdoor.
@hsluoyz here is my video
https://drive.google.com/file/d/1vArYh7IwCuzCPkkAYvhUpGzw2c4D4Phs/view?usp=drive_link
from casdoor.
@hsluoyz Please see issue soon!
from casdoor.
hi @hsluoyz
Have you seen that?
from casdoor.
sorry about that, we will solve this as soon as possible
from casdoor.
hi @hsluoyz Have you seen that?
btw, if you enable init data with init_data.json , it will execute when you restart / recreate the casdoor, plz make sure you disable it when you don't need it
from casdoor.
π This issue has been resolved in version 1.611.0 π
The release is available on GitHub release
Your semantic-release bot π¦π
from casdoor.
Related Issues (20)
- Enforce acceptance of Terms and Conditions for social logins HOT 4
- Test STMP connection failed. HOT 1
- [Feature] (SAML) Add optional assertion & message signing HOT 1
- Radius Challenge/Response for MFA (RFC2865) feature request HOT 1
- [bug] version cannot be displayed in all-in-one docker image HOT 6
- User's password is still not encrypted after setting the password storage algorithm HOT 4
- MFA Switch without skip the previous configuration HOT 1
- Adjustable all fields of config in SMS-Custom-Http provider HOT 1
- TOTP-APP-MFA HOT 1
- Canβt use the Local File System provider to store uploaded files HOT 3
- casdoor's casbin model not support casbin built-in function HOT 1
- api/login/oauth/access_token need using mobile verification codes HOT 2
- [UI bug] the top Navbar item is broken HOT 1
- [bug] fix the address issue for OIDC HOT 10
- Admin any org can get tokens or cert from another org HOT 1
- Does casdoor support automatic delivery of product after users purchased a product? HOT 1
- How to ensure the user info has email without MFA? HOT 1
- [feature] support Linux machine login via Casdoor like FreeIPA HOT 1
- [feature] connect transactions with payments and user balance HOT 1
- [feature] Filter by application, organization and role HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casdoor.