mirror of
https://github.com/pikvm/pikvm.git
synced 2026-03-02 18:16:56 -05:00
Broken firstboot script #261
Labels
No labels
component:documentation
help wanted
resolution:delayed
resolution:duplicate
resolution:fixed
resolution:invalid
resolution:rejected
resolution:wontfix
success story
type:bug
type:bug
type:feature
type:question
type:question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pikvm-pikvm#261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wnark on GitHub (May 29, 2021).
Originally assigned to: @mdevaev on GitHub.
Describe the bug
The created image nginx cannot start normally,Can not be accessed through the browser
To Reproduce
Steps to reproduce the behavior, like:
1.Use https://github.com/pikvm/pikvm/blob/master/pages/building_os.md to compile and get the image
2.Mirror configuration file
3.Write the image after make into the micro sd card, put it into the Raspberry Pi 3b, and connect to the power supply
Expected behavior
You can start nginx and use it normally
Screenshots

Pi-KVM info:
[root@ipmi ~]# pacman -Q | grep kvmd
kvmd 2.80-1
kvmd-fan 0.1-1
kvmd-oled 0.3-1
kvmd-platform-v0-hdmi-rpi3 2.80-1
kvmd-webterm 0.39-1
[root@ipmi ~]# pacman -Q | grep ustreamer
ustreamer 3.27-1
[root@ipmi ~]# uname -a
Linux ipmi 5.10.23-2-ARCH #1 SMP Fri Mar 19 00:22:18 MSK 2021 armv7l GNU/Linux
Additional context
ssh is normal, the current direct phenomenon is that nginx cannot be started
My image is a brand new image. There was no problem when I made it with the same steps a few weeks ago, so it may not be related to my steps.
I am using the Ubuntu20.04 server in the United States, and the network did not prompt download failure when compiling.
Because VPS does not provide archlinux, I used Ubuntu to compile, and everything was normal for the previous few times.
@mdevaev commented on GitHub (May 29, 2021):
Don't start
nginx. You needkvmd-nginx. It must be runned by default.@wnark commented on GitHub (May 29, 2021):
@mdevaev commented on GitHub (May 29, 2021):
Run this:
After booting run
journalctl -u pikvm-firstbootand the output here.@wnark commented on GitHub (May 29, 2021):
@wnark commented on GitHub (May 29, 2021):
Sorry, I clicked the wrong button
@wnark commented on GitHub (May 29, 2021):
[root@ipmi ~]# rw
[root@ipmi ~]# cat /boot/pikvm.txt
FIRSTBOOT=1
[root@ipmi ~]# echo 'FIRSTBOOT=1' > /boot/pikvm.txt
[root@ipmi ~]# reboot
[root@ipmi ~]#
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(raspberry) at 14:29:11.
Type `help' to learn how to use Xshell prompt.
[C:~]$
Host 'ipmi' resolved to fe80::ba27:ebff:fed9:931b.
Connecting to fe80::ba27:ebff:fed9:931b:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
_____ _ _ ____ ____ __
| __ () | |/ /\ \ / / / |
| |__) | __ | ' / \ \ / /| \ / |
| / | () | < \ / / | |/| |
| | | | | . \ \ / | | | |
|| || ||_\ / || |_|
[root@ipmi ~]# journalctl -u pikvm-firstboot
-- Journal begins at Wed 2021-05-19 22:11:54 CST, ends at Sat 2021-05-29 14:30:19 CST. --
-- No entries --
[root@ipmi ~]#
@mdevaev commented on GitHub (May 29, 2021):
Try
rw; systemctl enable pikvm-bootconfig; reboot. And journalctl again.@mdevaev commented on GitHub (May 29, 2021):
Edited ^^^
@wnark commented on GitHub (May 29, 2021):
Still doesn't look good
@mdevaev commented on GitHub (May 29, 2021):
Okay, fixed I guess. Update
osbuild environment (git pull --rebase), runmake osagain and reflash the image.