@shibao
Instance works I just cannot upload
Conversation
Notices
-
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 21:59:43 JST dushman
-
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 21:59:44 JST dushman
Can anyone who set up mk with docker tell me why it can't write files to its own uploads dir?
Error: EACCES: permission denied, copyfile '/tmp/tmp-150-OuprU5Xs40im' -> '/misskey/files/8240f750-f2c6-4704-9031-5fbc9dc3f632'
at Module.copyFileSync (node:fs:2894:3)
at InternalStorageService.saveFromPath (file:///misskey/packages/backend/built/core/InternalStorageService.js:49:12)
at DriveService.save (file:///misskey/packages/backend/built/core/DriveService.js:137:53)
at async DriveService.addFile (file:///misskey/packages/backend/built/core/DriveService.js:457:20)
at async file:///misskey/packages/backend/built/server/api/endpoints/drive/files/create.js:124:35
at async ApiCallService.call (file:///misskey/packages/backend/built/server/api/ApiCallService.js:285:16) {
errno: -13,
syscall: 'copyfile',
code: 'EACCES',
path: '/tmp/tmp-150-OuprU5Xs40im',
dest: '/misskey/files/8240f750-f2c6-4704-9031-5fbc9dc3f632'
} -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:05:39 JST dushman
@shibao
works great that's the only issue lol -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:05:40 JST dushman
@shibao
I used the script and did a local build
where is that saved by default? -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:08:31 JST dushman
-
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:24:28 JST dushman
@shibao
I assume I need to alter something in the conf and rebuild -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:24:30 JST dushman
@shibao
the upload dir is /home/misskey/misskey/files -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:24:31 JST dushman
@shibao
from the paste here I mean
that's what it's using -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:24:32 JST dushman
@shibao
I just removed the db pass lol -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:24:33 JST dushman
@shibao
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../:/workspace:cached
command: sleep infinity
networks:
- internal_network
- external_network
redis:
restart: unless-stopped
image: redis:7-alpine
networks:
- internal_network
volumes:
- redis-data:/data
healthcheck:
test: "redis-cli ping"
interval: 5s
retries: 20
db:
restart: unless-stopped
image: postgres:15-alpine
networks:
- internal_network
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD:
POSTGRES_DB: misskey
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s
retries: 20
volumes:
postgres-data:
redis-data:
networks:
internal_network:
internal: true
external_network: -
Embed this notice
dushman (dushman@misskey.bubbletea.dev)'s status on Thursday, 22-Jun-2023 22:32:54 JST dushman
@shibao
ight many thanks I might just redo this from scratch so it's done right lol
-
Embed this notice