# 找不到伺服器啟動 Jar 檔案

控制台終端輸出訊息：

{% code lineNumbers="true" %}

```
CheapServer]: 正在檢查伺服器儲存空間，可能需要一點時間，請稍後... 
[CheapServer]: 正在更新運行配置檔案... 
[CheapServer]: 正在確認檔案權限，可能需要一點時間請稍後... 
container@pterodactyl~ 伺服器已標示為 starting... 
[CheapServer]: 正在取得 Docker 容器檔案，可能需要幾分鐘才會完成... 
[CheapServer]: 已取得 Docker 容器檔案。 
container@pterodactyl~ java -version openjdk version "21.0.3" 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) 
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing) 
container@pterodactyl~ java -Xms128M -Xmx8192M -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar 
Error: Unable to access jarfile server.jar 
container@pterodactyl~ 伺服器已標示為 offline... 
[CheapServer]: ---------- CheapServer 檢測到伺服器崩潰! ---------- 
[CheapServer]: 退出狀態碼: 1 
[CheapServer]: 超出記憶體: false 
[CheapServer]: 正在檢查伺服器儲存空間，可能需要一點時間，請稍後... 
[CheapServer]: 正在更新運行配置檔案... 
[CheapServer]: 正在確認檔案權限，可能需要一點時間請稍後... 
container@pterodactyl~ 伺服器已標示為 starting... 
[CheapServer]: 正在取得 Docker 容器檔案，可能需要幾分鐘才會完成... 
[CheapServer]: 已取得 Docker 容器檔案。
```

{% endcode %}

## 分析錯誤

你可以看到錯誤訊息是在第 11 行的 <mark style="color:red;">Error: Unable to access jarfile server.jar</mark>，\
翻譯過來就是伺服器找不到啟動 Jar 檔案。

## 錯誤修復

如果你是自行上傳伺服器核心，請至啟動設定更改伺服器啟動 Jar 檔案。

<figure><img src="/files/bdHlVAzYF6fAiz3CFWFI" alt=""><figcaption></figcaption></figure>

如果是伺服器核心遺失，請至其他設定重新安裝伺服器。\
這樣伺服器就會自動下載核心並安裝。

<figure><img src="/files/AZQcYoGYmDq9JzlAHIOa" alt=""><figcaption></figcaption></figure>

如果重新安裝核心還是無法解決，請確認啟動參數是否設定正確。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cheapserver.tw/debug/unable-jarfile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
