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

Insufficient number of Xs in template 'outline_logXXX' when installing on Open BSD server #1234

Closed
AbrahamQll opened this issue Nov 25, 2022 · 3 comments · Fixed by #1464
Closed
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed server/advanced install Issues with manual/advanced server installation server

Comments

@AbrahamQll
Copy link

When I try to install outline on OpenBSD server I run the following command to install the server:

doas bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)"

and I get the following error:

mktemp: insufficient number of Xs in template `outline_logXXX'
@maddyhof maddyhof added the customer support Customer support requests label Feb 13, 2023
@maddyhof maddyhof added bug Something isn't working and removed customer support Customer support requests labels Feb 13, 2023
@fortuna
Copy link
Collaborator

fortuna commented Feb 13, 2023

It seems OpenBSD requires a minimum number of Xs, so we need to increase the number of Xs in the filename here:

FULL_LOG="$(mktemp -t outline_logXXX)"

@fortuna
Copy link
Collaborator

fortuna commented Feb 13, 2023

This page says it requires 6 Xs: https://www.mktemp.org/docs/mktemp.man/

@fortuna fortuna added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 13, 2023
@maddyhof maddyhof added os/linux server server/advanced install Issues with manual/advanced server installation and removed os/linux labels Apr 25, 2023
@maddyhof maddyhof changed the title Can not install outline on OpenBSD server! Insufficient number of Xs in template 'outline_logXXX' when installing on Open BSD server Jul 17, 2023
@QingXXiong
Copy link

I'd love to help with this change.

If I get it right, we need to change FULL_LOG="$(mktemp -t outline_logXXX)" to FULL_LOG="$(mktemp -t outline_logXXXXXX)", and the same thing is for LAST_ERROR="$(mktemp -t outline_last_errorXXX)".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed server/advanced install Issues with manual/advanced server installation server
Projects
Development

Successfully merging a pull request may close this issue.

4 participants