bmcgonag / Vector

Wireguard Server-side Web-based User Interface
45 stars 9 forks source link

May 2020 fails on Debain 9 (AWS LightSail) #19

Open hdavy2002 opened 4 years ago

hdavy2002 commented 4 years ago

admin@ip-172-26-13-62:~$ ./vector_install.sh Would you like to have the installation also create an NGinX Rerverse Proxy with LetsEncrypt Certificates? (Y/N) y

Please enter your domain name for this server:


**** Kill the node server


**** Install and set some settings E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Install OpenResolv E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Load the Modules for WireGuard --> modprobe wireguard ./vector_install.sh: line 51: modprobe: command not found --> modprobe iptable_nat ./vector_install.sh: line 54: modprobe: command not found --> modprobe ip6table_nat ./vector_install.sh: line 57: modprobe: command not found

Enable IP Packet Forwarding ./vector_install.sh: line 65: sysctl: command not found ./vector_install.sh: line 66: sysctl: command not found


**** Ok, we will install wireguard

sudo: add-apt-repository: command not found Ign:1 http://cdn-aws.deb.debian.org/debian stretch InRelease Hit:2 http://security.debian.org/debian-security stretch/updates InRelease Hit:3 http://cdn-aws.deb.debian.org/debian stretch-updates InRelease Hit:4 http://cdn-aws.deb.debian.org/debian stretch Release Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package wireguard


**** Ok, we will install NGinX

Hit:1 http://security.debian.org/debian-security stretch/updates InRelease Ign:2 http://cdn-aws.deb.debian.org/debian stretch InRelease Hit:3 http://cdn-aws.deb.debian.org/debian stretch-updates InRelease Hit:4 http://cdn-aws.deb.debian.org/debian stretch Release Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done nginx is already the newest version (1.10.3-1+deb9u3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en Active: active (running) since Fri 2020-05-29 16:11:16 UTC; 35s ago Docs: man:nginx(8) Process: 1623 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code Process: 1621 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process Main PID: 1626 (nginx) Tasks: 2 (limit: 4915) CGroup: /system.slice/nginx.service ├─1626 nginx: master process /usr/sbin/nginx -g daemon on; master_pro └─1627 nginx: worker process

May 29 16:11:16 ip-172-26-13-62 systemd[1]: Starting A high performance web serv May 29 16:11:16 ip-172-26-13-62 systemd[1]: nginx.service: Failed to read PID fr May 29 16:11:16 ip-172-26-13-62 systemd[1]: Started A high performance web serve lines 1-15/15 (END)...skipping... ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2020-05-29 16:11:16 UTC; 35s ago Docs: man:nginx(8) Process: 1623 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 1621 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 1626 (nginx) Tasks: 2 (limit: 4915) CGroup: /system.slice/nginx.service ├─1626 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; └─1627 nginx: worker process

May 29 16:11:16 ip-172-26-13-62 systemd[1]: Starting A high performance web server and a reverse proxy server... May 29 16:11:16 ip-172-26-13-62 systemd[1]: nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument May 29 16:11:16 ip-172-26-13-62 systemd[1]: Started A high performance web server and a reverse proxy server.

MDHMatt commented 4 years ago

does your account have root permissions? looks like not.

hdavy2002 commented 4 years ago

Will try today. I have a dedicated server now. Will use root account.