Skip to content

fix: pct create fails with malformed arguments (#423)#427

Merged
MickLesk merged 1 commit intomainfrom
fix_db_initialization
Jan 7, 2026
Merged

fix: pct create fails with malformed arguments (#423)#427
MickLesk merged 1 commit intomainfrom
fix_db_initialization

Conversation

@MickLesk
Copy link
Copy Markdown
Member

@MickLesk MickLesk commented Jan 7, 2026

✍️ Description

  • Fix NS/MTU/MAC/VLAN/SD variables missing proper prefixes in base_settings() Variables were passed as raw values instead of formatted pct options (e.g., '192.168.1.1' instead of '-nameserver=192.168.1.1')
  • Strip spaces from nameserver values to prevent 'too many arguments' error Multiple DNS servers must be comma-separated without spaces
  • Auto-create database directory before Prisma initialization Fixes 'Cannot open database because directory does not exist' error for manual Git installations

🔗 Related PR / Issue

Fixes: #422
Fixes: #423

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

Screenshot for frontend Change


🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.

- Fix NS/MTU/MAC/VLAN/SD variables missing proper prefixes in base_settings()
  Variables were passed as raw values instead of formatted pct options
  (e.g., '192.168.1.1' instead of '-nameserver=192.168.1.1')

- Strip spaces from nameserver values to prevent 'too many arguments' error
  Multiple DNS servers must be comma-separated without spaces

- Auto-create database directory before Prisma initialization
  Fixes 'Cannot open database because directory does not exist' error
  for manual Git installations
@MickLesk MickLesk requested a review from a team as a code owner January 7, 2026 19:50
@MickLesk MickLesk merged commit 2ba213d into main Jan 7, 2026
3 checks passed
@MickLesk MickLesk deleted the fix_db_initialization branch April 1, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PVE Scripts Local cannot install Containers Failure to initialize repositories due to missing database directory

1 participant