[GH-ISSUE #5230] [Bug]: Unknown issue when updating 3x-ui to version 3.3.1. #3664

Closed
opened 2026-10-31 20:34:05 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @55575455 on GitHub (Jun 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5230

Describe the bug

An issue occurred while updating the geo files using option 25 in the pane

How to reproduce the problem

Panel state: Running
Start automatically: Yes
xray state: Running

Please enter your selection [0-27]: 25
1. Loyalsoldier (geoip.dat, geosite.dat)
2. chocolate4u (geoip_IR.dat, geosite_IR.dat)
3. runetfreedom (geoip_RU.dat, geosite_RU.dat)
4. All
0. Back to Main Menu
Choose an option: 4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
All geo files have been updated successfully!

[INF] x-ui and xray Restarted successfully

Expected behavior

No response

Actual behavior

No response

Relevant logs

Choose an option: 4
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
  0      0   0      0   0      0      0      0                              0
All geo files have been updated successfully!

Screenshots

No response

3x-ui version

3.3.1

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

ububtu 26.04 debian 13 oracle liunx 10 debian testing

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @55575455 on GitHub (Jun 12, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5230 ### Describe the bug An issue occurred while updating the geo files using option 25 in the pane ### How to reproduce the problem Panel state: Running Start automatically: Yes xray state: Running Please enter your selection [0-27]: 25 1. Loyalsoldier (geoip.dat, geosite.dat) 2. chocolate4u (geoip_IR.dat, geosite_IR.dat) 3. runetfreedom (geoip_RU.dat, geosite_RU.dat) 4. All 0. Back to Main Menu Choose an option: 4 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 All geo files have been updated successfully! [INF] x-ui and xray Restarted successfully ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell Choose an option: 4 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 All geo files have been updated successfully! ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system ububtu 26.04 debian 13 oracle liunx 10 debian testing ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:05 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 12, 2026):

The output you shared is expected behavior, not a bug. The six curl blocks showing 0 bytes transferred are produced by the -z (time-condition) flag in the update command.

Why 0 bytes appears

The update_geofiles function in x-ui.sh (line 1174) runs:

curl -fLRo /usr/local/x-ui/bin/${dat}.dat -z /usr/local/x-ui/bin/${dat}.dat \
    https://github.com/${dat_source}/releases/latest/download/${remote_file}.dat

The -z <local-file> flag tells curl: only download if the remote file is newer than the local copy. When the local .dat files are already at the latest release version, curl performs a conditional request (sending If-Modified-Since) and receives a 304 Not Modified response, so zero bytes are transferred. This is working as designed to avoid re-downloading files that have not changed.

The six zero-byte blocks correspond to the six files downloaded by option 4 ("All"):

  • geoip.dat and geosite.dat (Loyalsoldier)
  • geoip_IR.dat and geosite_IR.dat (chocolate4u)
  • geoip_RU.dat and geosite_RU.dat (runetfreedom)

The "All geo files have been updated successfully!" message and the subsequent restart are unconditional — they run as long as curl exits without an HTTP error. The restart completing with [INF] x-ui and xray Restarted successfully confirms the service is functioning normally.

In short: your geo files are already up to date. No action is required. If you want to confirm the local files are present and intact, you can check:

ls -lh /usr/local/x-ui/bin/*.dat

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4694514872 --> @github-actions[bot] commented on GitHub (Jun 12, 2026): The output you shared is expected behavior, not a bug. The six `curl` blocks showing 0 bytes transferred are produced by the `-z` (time-condition) flag in the update command. **Why 0 bytes appears** The `update_geofiles` function in `x-ui.sh` (line 1174) runs: ```bash curl -fLRo /usr/local/x-ui/bin/${dat}.dat -z /usr/local/x-ui/bin/${dat}.dat \ https://github.com/${dat_source}/releases/latest/download/${remote_file}.dat ``` The `-z <local-file>` flag tells curl: *only download if the remote file is newer than the local copy*. When the local `.dat` files are already at the latest release version, curl performs a conditional request (sending `If-Modified-Since`) and receives a 304 Not Modified response, so zero bytes are transferred. This is working as designed to avoid re-downloading files that have not changed. The six zero-byte blocks correspond to the six files downloaded by option 4 ("All"): - `geoip.dat` and `geosite.dat` (Loyalsoldier) - `geoip_IR.dat` and `geosite_IR.dat` (chocolate4u) - `geoip_RU.dat` and `geosite_RU.dat` (runetfreedom) The "All geo files have been updated successfully\!" message and the subsequent restart are unconditional — they run as long as `curl` exits without an HTTP error. The restart completing with `[INF] x-ui and xray Restarted successfully` confirms the service is functioning normally. **In short:** your geo files are already up to date. No action is required. If you want to confirm the local files are present and intact, you can check: ```bash ls -lh /usr/local/x-ui/bin/*.dat ``` *This reply was generated automatically; a maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3664
No description provided.