mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-19 05:07:57 +02:00
Improve production stability by fixing backup directory permissions
Adjust Dockerfile to create and grant permissions for backup directories, install PostgreSQL client for backups, and update BackupService to use the correct production backup path to resolve EACCES errors. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/K3Lzcje
This commit is contained in:
1 parent
1c126fb77a
commit
b079d35e3a
4 files changed
+262
-8
No files matched your search
+228
@@ -0,0 +1,228 @@
|
||||
|
||||
|
||||
Host
|
||||
|
||||
Administration
|
||||
|
||||
User-related
|
||||
|
||||
|
||||
Environment-related
|
||||
|
||||
Registries
|
||||
|
||||
Logs
|
||||
|
||||
Notifications
|
||||
|
||||
Settings
|
||||
|
||||
New version available 2.27.9
|
||||
DismissSee what's new
|
||||
Community Edition
|
||||
2.27.6 LTS
|
||||
Containers>logiflow-logiflow-1>Logs
|
||||
Container logs
|
||||
|
||||
|
||||
admin
|
||||
Log viewer settings
|
||||
Auto-refresh logs
|
||||
Wrap lines
|
||||
Display timestamps
|
||||
Fetch
|
||||
All logs
|
||||
Search
|
||||
Filter...
|
||||
Lines
|
||||
100
|
||||
Actions
|
||||
|
||||
|
||||
|
||||
|
||||
path: '/app/backups'
|
||||
|
||||
}
|
||||
|
||||
Node.js v20.19.4
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db'
|
||||
|
||||
}
|
||||
|
||||
🐳 PRODUCTION: Using standard PostgreSQL
|
||||
|
||||
✅ PostgreSQL connection test successful
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db:5432'
|
||||
|
||||
}
|
||||
|
||||
✅ Using DatabaseStorage (production PostgreSQL)
|
||||
|
||||
␍node:fs:1372
|
||||
|
||||
const result = binding.mkdir(
|
||||
|
||||
^
|
||||
|
||||
Error: EACCES: permission denied, mkdir '/app/backups'
|
||||
|
||||
at Object.mkdirSync (node:fs:1372:26)
|
||||
|
||||
at BackupService.ensureBackupDirectory (file:///app/dist/index.js:3147:10)
|
||||
|
||||
at new BackupService (file:///app/dist/index.js:3142:10)
|
||||
|
||||
at file:///app/dist/index.js:3283:21
|
||||
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
|
||||
|
||||
errno: -13,
|
||||
|
||||
code: 'EACCES',
|
||||
|
||||
syscall: 'mkdir',
|
||||
|
||||
path: '/app/backups'
|
||||
|
||||
}
|
||||
|
||||
Node.js v20.19.4
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db'
|
||||
|
||||
}
|
||||
|
||||
🐳 PRODUCTION: Using standard PostgreSQL
|
||||
|
||||
✅ PostgreSQL connection test successful
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db:5432'
|
||||
|
||||
}
|
||||
|
||||
✅ Using DatabaseStorage (production PostgreSQL)
|
||||
|
||||
␍node:fs:1372
|
||||
|
||||
const result = binding.mkdir(
|
||||
|
||||
^
|
||||
|
||||
Error: EACCES: permission denied, mkdir '/app/backups'
|
||||
|
||||
at Object.mkdirSync (node:fs:1372:26)
|
||||
|
||||
at BackupService.ensureBackupDirectory (file:///app/dist/index.js:3147:10)
|
||||
|
||||
at new BackupService (file:///app/dist/index.js:3142:10)
|
||||
|
||||
at file:///app/dist/index.js:3283:21
|
||||
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
|
||||
|
||||
errno: -13,
|
||||
|
||||
code: 'EACCES',
|
||||
|
||||
syscall: 'mkdir',
|
||||
|
||||
path: '/app/backups'
|
||||
|
||||
}
|
||||
|
||||
Node.js v20.19.4
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db'
|
||||
|
||||
}
|
||||
|
||||
🐳 PRODUCTION: Using standard PostgreSQL
|
||||
|
||||
✅ PostgreSQL connection test successful
|
||||
|
||||
🔗 Database initialization: {
|
||||
|
||||
NODE_ENV: 'production',
|
||||
|
||||
isProduction: true,
|
||||
|
||||
hasDbUrl: true,
|
||||
|
||||
dbHost: 'logiflow-db:5432'
|
||||
|
||||
}
|
||||
|
||||
✅ Using DatabaseStorage (production PostgreSQL)
|
||||
|
||||
␍node:fs:1372
|
||||
|
||||
const result = binding.mkdir(
|
||||
|
||||
^
|
||||
|
||||
Error: EACCES: permission denied, mkdir '/app/backups'
|
||||
|
||||
at Object.mkdirSync (node:fs:1372:26)
|
||||
|
||||
at BackupService.ensureBackupDirectory (file:///app/dist/index.js:3147:10)
|
||||
|
||||
at new BackupService (file:///app/dist/index.js:3142:10)
|
||||
|
||||
at file:///app/dist/index.js:3283:21
|
||||
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
|
||||
|
||||
errno: -13,
|
||||
|
||||
code: 'EACCES',
|
||||
|
||||
syscall: 'mkdir',
|
||||
|
||||
path: '/app/backups'
|
||||
|
||||
}
|
||||
|
||||
Node.js v20.19.4
|
||||
Reference in new issue
Block a user