<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lưu trữ cannot unmarshal into int fastpanel - Hướng dẫn TENTEN</title>
	<atom:link href="https://help.tenten.vn/tag/cannot-unmarshal-into-int-fastpanel/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.tenten.vn/tag/cannot-unmarshal-into-int-fastpanel/</link>
	<description>Tài liệu hỗ trợ khách hàng</description>
	<lastBuildDate>Fri, 13 Feb 2026 01:56:13 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://help.tenten.vn/wp-content/uploads/2023/09/favicontenten.png</url>
	<title>Lưu trữ cannot unmarshal into int fastpanel - Hướng dẫn TENTEN</title>
	<link>https://help.tenten.vn/tag/cannot-unmarshal-into-int-fastpanel/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hướng Dẫn Sửa Lỗi FASTPANEL Không Khởi Động Sau Khi Tự Update</title>
		<link>https://help.tenten.vn/sua-loi-fastpanel-khong-khoi-dong-sau-update/</link>
		
		<dc:creator><![CDATA[Nguyễn Hoàng Minh]]></dc:creator>
		<pubDate>Fri, 13 Feb 2026 01:55:33 +0000</pubDate>
				<category><![CDATA[Cloud VPS]]></category>
		<category><![CDATA[Kiến thức chung]]></category>
		<category><![CDATA[cannot unmarshal into int fastpanel]]></category>
		<category><![CDATA[FastPanel]]></category>
		<category><![CDATA[fastpanel2.service failed]]></category>
		<guid isPermaLink="false">https://help.tenten.vn/?p=14521</guid>

					<description><![CDATA[<p>Hướng Dẫn Sửa Lỗi FASTPANEL Không Khởi Động Sau Khi Tự Update Đây là hướng dẫn sửa lỗi cho ubuntu 20.04, nếu bạn sử dụng phiên bản khác, vui lòng sửa file ubu20.yml thành phiên bản của bạn, ví dụ như ubuntu 22.04 thì file sẽ là ubu22.yml 1. Hiện tượng lỗi Khi kiểm tra &#8230;</p>
<p>Bài viết <a href="https://help.tenten.vn/sua-loi-fastpanel-khong-khoi-dong-sau-update/">Hướng Dẫn Sửa Lỗi FASTPANEL Không Khởi Động Sau Khi Tự Update</a> đã xuất hiện đầu tiên vào ngày <a href="https://help.tenten.vn">Hướng dẫn TENTEN</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><!-- Bài viết hướng dẫn sửa lỗi FASTPANEL (WordPress HTML) --></p>
<h1>Hướng Dẫn Sửa Lỗi FASTPANEL Không Khởi Động Sau Khi Tự Update</h1>
<p>Đây là hướng dẫn sửa lỗi cho ubuntu 20.04, nếu bạn sử dụng phiên bản khác, vui lòng sửa file ubu20.yml thành phiên bản của bạn, ví dụ như ubuntu 22.04 thì file sẽ là ubu22.yml</p>
<h2>1. Hiện tượng lỗi</h2>
<p>Khi kiểm tra log:</p>
<pre><code>journalctl -u fastpanel2 -n 50 --no-pager</code></pre>
<p>Xuất hiện lỗi:</p>
<pre><code>ERROR: Unable to load './config/modules' config:
Cannot parse 'config/modules/ubu20.yml' file:
yaml: unmarshal errors:

line 723: cannot unmarshal !!str `24.6.0` into int
line 729: cannot unmarshal !!str `23.11.1` into int
...</code></pre>
<p>Service liên tục restart:</p>
<pre><code>fastpanel2.service: Scheduled restart job, restart counter is at 129316</code></pre>
<p>FASTPANEL không thể khởi động.</p>
<h2>2. Nguyên nhân</h2>
<p>FASTPANEL tự động cập nhật lên phiên bản mới.</p>
<p>Trong file:</p>
<pre><code>/usr/local/fastpanel2/config/modules/ubu20.yml</code></pre>
<p>Các version NodeJS được khai báo dạng chuỗi, ví dụ:</p>
<pre><code>24.6.0
23.11.1
22.18.0</code></pre>
<p>Trong khi phiên bản FASTPANEL mới yêu cầu kiểu dữ liệu <strong>integer</strong> (major version), ví dụ:</p>
<pre><code>24
23
22</code></pre>
<p>Do sai kiểu dữ liệu nên YAML không parse được, dẫn tới service không khởi động.</p>
<p>Ngoài ra còn thiếu cột <code>site_id</code> trong database SQLite sau update.</p>
<h2>3. Cách Fix Chi Tiết</h2>
<h3>Bước 1: Backup file cấu hình</h3>
<pre><code>cp /usr/local/fastpanel2/config/modules/ubu20.yml \
   /usr/local/fastpanel2/config/modules/ubu20.yml.bak</code></pre>
<h3>Bước 2: Chuyển version NodeJS từ x.y.z về x</h3>
<p>Sửa các dòng dạng:</p>
<pre><code>nodejs 24.6.0:</code></pre>
<p>Thành:</p>
<pre><code>nodejs 24:</code></pre>
<p>Chạy lệnh:</p>
<pre><code>sed -i -E 's/nodejs ([0-9]+)\.[0-9]+\.[0-9]+:/nodejs \1:/g' \
/usr/local/fastpanel2/config/modules/ubu20.yml</code></pre>
<h3>Bước 3: Sửa format version trong YAML</h3>
<p>Chuyển:</p>
<pre><code>version: '24.6.0'</code></pre>
<p>Thành:</p>
<pre><code>version: 24</code></pre>
<p>Chạy:</p>
<pre><code>sed -i -E "s/version: '([0-9]+)\.[0-9]+\.[0-9]+'/version: \1/g" \
/usr/local/fastpanel2/config/modules/ubu20.yml</code></pre>
<h3>Bước 4: Restart FASTPANEL</h3>
<pre><code>systemctl restart fastpanel2</code></pre>
<p>Nếu vẫn chưa lên, tiếp tục bước sửa database.</p>
<h3>Bước 5: Backup database FASTPANEL</h3>
<pre><code>cp /usr/local/fastpanel2/app/db/fastpanel2.db \
   /usr/local/fastpanel2/app/db/fastpanel2.db.backup</code></pre>
<h3>Bước 6: Thêm cột thiếu trong SQLite</h3>
<p>Mở database:</p>
<pre><code>sqlite3 /usr/local/fastpanel2/app/db/fastpanel2.db</code></pre>
<p>Thêm cột:</p>
<pre><code>ALTER TABLE site_upstream_target ADD COLUMN site_id INTEGER;</code></pre>
<p>Thoát:</p>
<pre><code>.exit</code></pre>
<h3>Bước 7: Restart lại service</h3>
<pre><code>systemctl restart fastpanel2</code></pre>
<p>Kiểm tra trạng thái:</p>
<pre><code>systemctl status fastpanel2 --no-pager</code></pre>
<p>Nếu hiển thị:</p>
<pre><code>Active: active (running)</code></pre>
<p>Là đã fix thành công.</p>
<h2>4. Kết quả sau khi sửa</h2>
<p>Service chạy bình thường:</p>
<pre><code>Active: active (running)
Main PID: xxxx (fastpanel)</code></pre>
<p>FASTPANEL truy cập lại được bình thường.</p>
<h2>5. Khuyến nghị</h2>
<ul>
<li>Tắt auto update FASTPANEL nếu có thể.</li>
<li>Hoặc kiểm soát update các module trong thư mục:
<pre><code>/usr/local/fastpanel2/config/modules/</code></pre>
</li>
<li>Nên backup định kỳ:
<ul>
<li>Thư mục <code>/usr/local/fastpanel2</code></li>
<li>Database <code>/usr/local/fastpanel2/app/db/fastpanel2.db</code></li>
</ul>
</li>
</ul>
<p>Bài viết <a href="https://help.tenten.vn/sua-loi-fastpanel-khong-khoi-dong-sau-update/">Hướng Dẫn Sửa Lỗi FASTPANEL Không Khởi Động Sau Khi Tự Update</a> đã xuất hiện đầu tiên vào ngày <a href="https://help.tenten.vn">Hướng dẫn TENTEN</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
