ApplETS / ApplETS/planifETS-backend
[Bug]: Chatbot throws an error
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- Avg merge
- 2h 30m
- Merged PRs (30d)
- 1
Description
### What happened?
In [dev environnement](https://planifets.dev.cedille.club/planner), we're not able to use the chatbot. Probably has to do with the recent changes in the new [k8 repo](https://github.com/ClubCedille/k8s-shared/tree/main/apps/clubs/applets). Need to add write permission to the folder that needs to be created (`mkdir '/transformers-cache/Xenova'`).
Logs :
```
event: status
id: 1
data: SEARCHING_EMBEDDINGS
event: error
id: 2
data: Error: EACCES: permission denied, mkdir '/transformers-cache/Xenova'
data: at async Object.mkdir (node:internal/fs/promises:858:10)
data: at async FileCache.put (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:6850:7)
data: at async storeCachedResource (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:7503:5)
data: at async loadResourceFile (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:7642:5)
data: at async getModelFile (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:7713:10)
data: at async getCoreModelFile (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:23291:10)
data: at async getSession (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:23399:26)
data: at async /app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:23411:69
data: at async Promise.all (index 0)
data: at async constructSessions (/app/node_modules/@huggingface/transformers/dist/transformers.node.cjs:23408:5)
```
### What is the expected behavior?
Chatbot should respond with recommended courses.
### Steps to reproduce
1. Send message in chatbot
2. stream endpoint doesnt work because of issue with write permission in cluster
### Screenshots and additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the chatbot stream endpoint in this repository and reproduce the EACCES failure using the log's /transformers-cache/Xenova path. Then inspect apps/clubs/applets in the linked ClubCedille/k8s-shared repository, where the deployment configuration is located. Done means the development chatbot responds with recommended courses without a permission error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface, kubernetes, typescript
- Domain
- api, backend, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100