Code Monkey home page Code Monkey logo

Comments (12)

D3SOX avatar D3SOX commented on August 27, 2024

Oh, possible duplicate of #6, I was about to create this issue at the same time

from ansible-easy-vpn.

notthebee avatar notthebee commented on August 27, 2024

I've just switched from base64 to hex for random string generation, that should fix it. Remove the ansible-easy-vpn folder from your VPS and rerun the bootstrap script

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

Where is the commit for that? I tried it again and I got the same error

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

Oh, I see #9 isn't merged yet. I can try it with that change

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

Hm, looks like the same error to me

time="2022-07-23T15:13:11Z" level=info msg="Authelia v4.36.2 is starting"
time="2022-07-23T15:13:11Z" level=info msg="Log severity set to debug"
time="2022-07-23T15:13:11Z" level=info msg="Storage schema is being checked for updates"
time="2022-07-23T15:13:11Z" level=error msg="Failure running the storage provider startup check: the encryption key is not valid against the schema check value" stack="github.com/authelia/authelia/v4/internal/commands/root.go:149 doStartupChecks\ngithub.com/authelia/authelia/v4/internal/commands/root.go:77  cmdRootRun\ngithub.com/spf13/[email protected]/command.go:876                  (*Command).execute\ngithub.com/spf13/[email protected]/command.go:990                  (*Command).ExecuteC\ngithub.com/spf13/[email protected]/command.go:918                  (*Command).Execute\ngithub.com/authelia/authelia/v4/cmd/authelia/main.go:10       main\nruntime/proc.go:250                                           main\nruntime/asm_amd64.s:1571                                      goexit"
time="2022-07-23T15:13:11Z" level=fatal msg="The following providers had fatal failures during startup: storage" stack="github.com/authelia/authelia/v4/internal/commands/root.go:177 doStartupChecks\ngithub.com/authelia/authelia/v4/internal/commands/root.go:77  cmdRootRun\ngithub.com/spf13/[email protected]/command.go:876                  (*Command).execute\ngithub.com/spf13/[email protected]/command.go:990                  (*Command).ExecuteC\ngithub.com/spf13/[email protected]/command.go:918                  (*Command).Execute\ngithub.com/authelia/authelia/v4/cmd/authelia/main.go:10       main\nruntime/proc.go:250                                           main\nruntime/asm_amd64.s:1571                                      goexit"

from ansible-easy-vpn.

notthebee avatar notthebee commented on August 27, 2024

You'd probably need to do the following:

docker stop authelia && docker rm authelia
rm -rf /opt/docker/authelia
rm -rf $HOME/ansible-easy-vpn
wget https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap.sh -O bootstrap.sh && bash bootstrap.sh

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

I wasn't aware of /opt/docker/
I removed it, and now it works, thanks!

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

The only problem that's left for me now is that I no longer have the current SSH key, is there a way to copy it after the fact? It didn't show the Almost done! message at the end for me this time

from ansible-easy-vpn.

notthebee avatar notthebee commented on August 27, 2024

Yep, just do the following on your host machine (not on the server):

scp -P 22 root@<server_ip> /tmp/id_ssh_ed25519 ~/.ssh/id_vpn_<username>

Then, test your key:

ssh -p 22 root@<server_ip> -i ~/.ssh/id_vpn_<username>

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

Already tried that, /tmp/id_ssh_ed25519 doesn't exist

from ansible-easy-vpn.

notthebee avatar notthebee commented on August 27, 2024

Weird. In that case, I would rm -rf /home/<username>/.ssh and re-run the playbook:

cd $HOME/ansible-easy-vpn
ansible-playbook run.yml

This should re-generate the key and display the "Almost done" message at the end

from ansible-easy-vpn.

D3SOX avatar D3SOX commented on August 27, 2024

That did the trick, thanks

from ansible-easy-vpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.