Repository navigation
Installing nextcloud server on a raspi 4 #2395
Description
Steps To Reproduce
- unpacked vm-master
- started sudo bash nextcloud_install_production.sh
- -> no new user added, no data disk, free space on root ~57GB
- after a few minutes, script exits with error
Expected Result
Script should finish without erros, I think
Actual Result
...
grep: /etc/apache2/apache2.conf: No such file or directory
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
Running kernel seems to be up-to-date.
Failed to check for processor microcode upgrades.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
ERROR: role "nextcloud_db_user" already exists
ERROR: database "nextcloud_db" already exists
PostgreSQL password: t#xxxxxxxxxxxxcr
[⣾⣽⣻⣾⣽⣻⣾⣽⣻⣾⣽⣻⣾⣽⣻⣾⣽⣻]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
The following NEW packages will be installed:
apache2
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/97.8 kB of archives.
After this operation, 546 kB of additional disk space will be used.
Selecting previously unselected package apache2.
(Reading database ... 109449 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.52-1ubuntu4.1_arm64.deb ...
Unpacking apache2 (2.4.52-1ubuntu4.1) ...
Setting up apache2 (2.4.52-1ubuntu4.1) ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
apache-htcacheclean.service is a disabled or a static unit not running, not star
ting it.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for ufw (0.36.1-4build1) ...
Rules updated for profile 'OpenSSH'
Skipped reloading firewall
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
Failed to check for processor microcode upgrades.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
ERROR: Module rewrite does not exist!
ERROR: Module headers does not exist!
ERROR: Module proxy does not exist!
ERROR: Module proxy_fcgi does not exist!
ERROR: Module setenvif does not exist!
ERROR: Module env does not exist!
ERROR: Module mime does not exist!
ERROR: Module dir does not exist!
ERROR: Module authz_core does not exist!
ERROR: Module alias does not exist!
ERROR: Module ssl does not exist!
ERROR: Module mpm_prefork does not exist!
systemctl restart apache2.service failed
sudo: php: command not found
Screenshots, Videos, or Pastebins
No response
Additional Context
Linux version 5.15.0-1015-raspi (buildd@bos02-arm64-077) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #17-Ubuntu SMP PREEMPT Mon Sep 12 13:14:51 UTC 2022
Build Version
Linux version 5.15.0-1015-raspi (buildd@bos02-arm64-077) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #17-Ubuntu SMP PREEMPT Mon Sep 12 13:14:51 UTC 2022
Environment
By using the scripts
Environment Details
Raspi 4 with 64GB Falshdisk.
Activity
enoch85 commentedon Sep 28, 2022
Sorry, but I don't have a RPi 4 to test this on. It should work to install from scratch, but it was a long time since I tested it.
vithurshanselvarajah commentedon Oct 21, 2022
Can you let me know what version of Ubuntu you are running? I'll install it on my Pi4 this weekend and test it out for you.
From what i can see. Some packages are not installing so it could be your running a older version of Ubuntu that doesnt support PHP8.1 perhaps.
enoch85 commentedon Oct 22, 2022
@vithusel That would be great! Please test this image: https://ubuntu.com/download/raspberry-pi/thank-you?version=22.04.1&architecture=server-arm64+raspi
FritschM commentedon Oct 22, 2022
I did a reinstallation of ubuntu server yesterday. Now apache2 is working again. Seemed to be a wrong setting in apache2.conf (i removed it in the past, "Never do things in desperation" |-). So I looked forward now ... Thanks so far. ;-)
vithurshanselvarajah commentedon Oct 22, 2022
@FritschM so all working now and i don't need to test anything?
enoch85 commentedon Oct 22, 2022
Would be nice if we could get a confirmation that the image I linked actually works out of the box. 👍🏼
FritschM commentedon Oct 22, 2022
vithurshanselvarajah commentedon Oct 22, 2022
Understood. Will check tomorrow and report back
enoch85 commentedon Oct 22, 2022
Well, question was if the installer scripts work "out of the box" with that image?
enoch85 commentedon Oct 22, 2022
Thanks!! ☝🏻
vithurshanselvarajah commentedon Oct 24, 2022
Sorry for the delay on this.
Had heavy winds last night and my house is currently powerless.
Will report back on this as soon as i get power back!
enoch85 commentedon Nov 2, 2022
Hi, just curious - any progress here?
enoch85 commentedon Dec 26, 2022
@vithusel Are you still out of power? :)
vithurshanselvarajah commentedon Dec 26, 2022
@enoch85 oh god. so sorry! Slipped my mind completely. Will check tomorrow and report back!
enoch85 commentedon Dec 27, 2022
@vithusel Thanks! :)
vithurshanselvarajah commentedon Dec 27, 2022
The install script is in progress.
Stupidly i seem to have misplaced my ssd so im stuck on installing to a slow sd card. Ill leave it to install overnight as its taking forever and will report in when im back at work tomorrow
enoch85 commentedon Dec 28, 2022
@vithusel So what's the outcome? :)
vithurshanselvarajah commentedon Dec 28, 2022
Confirmed to be working. No issues :)
enoch85 commentedon Dec 28, 2022
Horaay! :D
Thanks for testing!