Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bastille VNET creation is broken due an unterminated string #470

Closed
JRGTH opened this issue Dec 20, 2021 · 2 comments · Fixed by #471
Closed

[BUG] Bastille VNET creation is broken due an unterminated string #470

JRGTH opened this issue Dec 20, 2021 · 2 comments · Fixed by #471
Labels
bug Something isn't working

Comments

@JRGTH
Copy link
Collaborator

JRGTH commented Dec 20, 2021

# bastille -v
0.9.20210714

Error when creating a VNET jail:

root@nas-mserver: ~# bastille create -V -T jellyfin 12.3-RELEASE 192.168.1.240 em0
Valid: (192.168.1.240).
Valid: (em0).

Creating a thickjail. This may take a while...
[jellyfin]:
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: destroy: syntax error
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: unterminated string

[jellyfin]: Not started. See 'bastille start jellyfin'.
[jellyfin]: Not started. See 'bastille start jellyfin'.
[jellyfin]:
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: destroy: syntax error
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: unterminated string

root@nas-mserver: ~# bastille destroy -f jellyfin
Deleting Jail: jellyfin.

root@nas-mserver: ~# bastille create -V jellyfin 12.3-RELEASE 192.168.1.240 em0
Valid: (192.168.1.240).
Valid: (em0).

[jellyfin]:
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: destroy: syntax error
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: unterminated string

[jellyfin]: Not started. See 'bastille start jellyfin'.
[jellyfin]: Not started. See 'bastille start jellyfin'.
[jellyfin]:
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: destroy: syntax error
jail: /mnt/storage/bastille/jails/jellyfin/jail.conf line 18: unterminated string

Cause:
A missing escaping \ on create.sh on line #247, should be like:

exec.prestart += "ifconfig e0a_${uniq_epair} description \"vnet host interface for Bastille jail ${NAME}\"";

I could add the PR but already have several pending improvements PR's and merging current changes will generate some conflicts.

@JRGTH JRGTH added the bug Something isn't working label Dec 20, 2021
@cedwards
Copy link
Contributor

Thank you for reporting this. Good to see you Jose.

@JRGTH
Copy link
Collaborator Author

JRGTH commented Dec 22, 2021

Thank you for reporting this. Good to see you Jose.

Hi cedwards, happy to read you too and which you and the BastilleBSD team the greatest holidays!
Been busy with outside work but will return ASAP for fixes and improvements.

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants