[BUG] Cannot create a playbook on a local repository
Buco7854 opened this issue · 5 comments
Describe the bug
After creating a local repository it is not possible to add a file to it, it result in an error.
Logs
ERROR (1): [ERROR] 500 - E11000 duplicate key error collection: ssm.playbooks index: uniqueQuickRef_1 dup key: { uniqueQuickRef: null } - /playbooks-repository/d959dd36-2bc5-42dc-b390-85cf9b40db2e/playbook/test/ - PUT - 192.168.1.151
To Reproduce
- Create a new local repository
- Add a new file to it via the UI in the playbooks section.
Expected behavior
Should create the new playbook.
Aditional Context
I deleted the data dir for a new fresh install, still the same error.
My docker compose file :
version: "3.8"
services:
proxy:
restart: unless-stopped
build:
context: ./proxy
ports:
- 9050:8000
depends_on:
- client
- mongo
- server
- redis
mongo:
container_name: mongo-ssm
image: mongo
restart: unless-stopped
volumes:
- ./.data.prod/db:/data/db
command: --quiet
redis:
container_name: cache-ssm
image: redis
restart: unless-stopped
volumes:
- ./.data.prod/cache:/data
command: --save 60 1
server:
image: ghcr.io/squirrelcorporation/squirrelserversmanager-server:latest
restart: unless-stopped
external_links:
- mongo
- redis
depends_on:
- mongo
- redis
env_file: .env
environment:
NODE_ENV: production
volumes:
- ./.data.prod/playbooks:/playbooks
client:
image: ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest
restart: unless-stopped
depends_on:
- server
- Host OS: Debian 12 (bookworm)
- Browser: Chrome
- Browser Version: 126.0.6478.127
- SSM Version: latest
@Buco7854 Hi, thanks for you feedback, the bug has already been fixed in the upcoming version, stay tuned for the next version
@Buco7854 Hi, thanks for you feedback, the bug has already been fixed in the upcoming version, stay tuned for the next version
Oh ok, thanks, any idea when it will be released?
Just saw you released it thanks!
@Buco7854 I suggest you wait a few hours, I hae another fix to publish
Well I already added all my agent back, hope it doesn't break anything otherwise it is what it is🫡.
Still thanks.