Package Details: 1panel 2.0.14-1

Git Clone URL: https://aur.archlinux.org/1panel.git (read-only, click to copy)
Package Base: 1panel
Description: 1Panel, a modern open source linux panel.
Upstream URL: https://1panel.pro
Keywords: 1panel
Licenses: GPL-3.0-or-later
Conflicts: 1panel-bin, 1panel-dev-bin, 1panel-git
Submitter: None
Maintainer: None
Last Packager: voxan24
Votes: 1
Popularity: 0.000010
First Submitted: 2024-03-14 11:06 (UTC)
Last Updated: 2025-12-06 22:13 (UTC)

Pinned Comments

voxan24 commented on 2025-10-28 20:21 (UTC)

Hey, i don't speak a word of CN, please write in english i'm sorry about that :c

Latest Comments

ccrystal commented on 2026-01-06 13:01 (UTC)

Additional note about CGO_ENABLED=0:

Upstream explicitly disabled CGO starting from 2.0. See the following commit: https://github.com/1Panel-dev/1Panel/pull/10891/commits/6e98d2a9c75bdaf0d827c14077421e921531224b

Commit message: "build(Makefile): disable CGO for static build"

This change adds CGO_ENABLED=0 to multiple build targets to ensure static linking across platforms, improving binary portability and runtime stability.

In my local build tests, if CGO_ENABLED is not explicitly set to 0, the compiled binaries consistently fail at runtime with linker-related errors.

Therefore, setting CGO_ENABLED=0 is not optional anymore, but a required build condition for 1Panel >= 2.0.

ccrystal commented on 2026-01-06 12:51 (UTC) (edited on 2026-01-06 13:10 (UTC) by ccrystal)

Hi maintainer,

Since upstream 2.x, the backend source structure and build process have changed. In addition to the directory layout update, the Go build now requires CGO_ENABLED=0 to be explicitly set, otherwise the build may fail or produce unexpected results.

The old backend directory is no longer present; it has been split into core and agent.

Current build logic for 2.0.x is as follows:

cd "${srcdir}/1Panel-${pkgver}/core"
CGO_ENABLED=0 GOOS=linux GOARCH=$(go env GOARCH) \
go build -trimpath -ldflags '-s -w' \
-o "${srcdir}/1Panel-${pkgver}/build/1panel-core" \
core/cmd/server/main.go

cd "${srcdir}/1Panel-${pkgver}/agent"
CGO_ENABLED=0 GOOS=linux GOARCH=$(go env GOARCH) \
go build -trimpath -ldflags '-s -w' \
-o "${srcdir}/1Panel-${pkgver}/build/1panel-agent" \
agent/cmd/server/main.go

The core/agent service files and the 1pctl utility are maintained in the official installer repository: https://github.com/1Panel-dev/installer/

Additionally, when upgrading to a newer 1Panel 2.0.x release, the internal version stored in the 1Panel database needs to be updated manually by running:

1panel-core update version v2.0.x

This step is not mentioned in the official upgrade documentation, but the command is present in the source code (core/cmd/server/cmd.go). For some reason, this update command is hidden and not exposed in normal user-facing documentation.

Without running this command, version-related inconsistencies may occur after upgrading.

Thanks for maintaining the package.

voxan24 commented on 2025-12-06 22:14 (UTC)

Update to 2.0.14 + Change of the source structure

lonelyhentxi commented on 2025-11-05 09:20 (UTC)

Hey, I noticed that the current version 2.0.12 of 1Panel has changed its directory structure. Specifically, there is no longer a backend folder; it seems to have been replaced by a core folder or similar. Because of this, the current PKGBUILD fails to build due to incorrect directory paths.

Could you please update the PKGBUILD to reflect this change in the source structure? This will help ensure successful builds for everyone using the AUR package.

Thank you very much for your maintenance work and attention to this matter!

voxan24 commented on 2025-10-28 20:21 (UTC)

Hey, i don't speak a word of CN, please write in english i'm sorry about that :c

SunRain commented on 2025-10-13 03:23 (UTC) (edited on 2025-10-31 12:03 (UTC) by SunRain)

paru编译出现如下错误 /my/user/to/home/.cache/paru/clone/1panel/PKGBUILD: 第 38 行:cd: /my/user/to/home/.cache/paru/clone/1panel/src/1Panel-2.0.11/backend: 没有那个文件或目录 ==> 错误: 在 build() 中发生一个错误。

=====================================

When I use paru for compilation, the following error message appears:

(!) Some chunks are larger than 500 kB after minification. Consider:

✓ built in 2m 58s

/path/to/my/home/.cache/paru/clone/1panel/PKGBUILD: Line 38: cd: /path/to/my/home/.cache/paru/clone/1panel/src/1Panel-2.0.12/backend: No such file or directory

==> Error: An error occurred during the build() process. Giving up...

Error: Failed to build '1panel-2.0.12-1':

Error: The package that failed to build: 1panel-2.0.12-1

ccrystal commented on 2025-02-12 04:47 (UTC) (edited on 2025-02-12 04:48 (UTC) by ccrystal)

1Panel Frontend will take huge RAM to compile
Before download the PKGBUILD,make sure you have at least 8 Gigabit RAM
1Panel需要占用大量的内存来编译它的前端
在下载PKGBUILD之前先看看自己是否至少有8G内存

<deleted-account> commented on 2024-03-16 10:33 (UTC)

1panel-bin (the official binary version), 1panel-dev-bin (the official binary beta version), and 1panel-git (the official git repository) The previous three packages have been discontinued, and the 1panel package is now used, which is compiled and installed using the latest source packages released by GitHub.

1panel-bin(官方二进制版)、1panel-dev-bin(官方二进制测试版)、1panel-git(官方git仓库)前方三个包已被弃置并停止更新,目前使用的是1panel包,使用GitHub Release的最新源码包编译安装。