Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "ERROR reading servers from file: decoding servers: invalid character '\x00' in string literal" #2485

Closed
Arson31 opened this issue Sep 18, 2024 · 3 comments

Comments

@Arson31
Copy link

Arson31 commented Sep 18, 2024

Is this urgent?

Yes

Host OS

Debian GNU/Linux 11 (bullseye)

CPU arch

aarch64

VPN service provider

TorGuard

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2024-08-25T07:04:32.409Z (commit 01fa993)

What's the problem 🤔

Log displays "ERROR reading servers from file: decoding servers: invalid character '\x00' in string literal" then INFO Shutdown successful. The container restarts endlessly resulting the entire rest of the stack unusable.

Share your logs (at least 10 lines)

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2024-08-25T07:04:32.409Z (commit 01fa993)

🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-09-17T23:12:58-05:00 INFO [routing] default route found: interface eth0, gateway 172.31.0.1, assigned IP 172.31.0.2 and family v4
2024-09-17T23:12:58-05:00 INFO [routing] local ethernet link found: eth0
2024-09-17T23:12:58-05:00 INFO [routing] local ipnet found: 172.31.0.0/16
2024-09-17T23:12:58-05:00 INFO [firewall] enabling...
2024-09-17T23:12:58-05:00 INFO [firewall] enabled successfully
2024-09-17T23:13:01-05:00 ERROR reading servers from file: decoding servers: invalid character '\x00' in string literal
2024-09-17T23:13:01-05:00 INFO Shutdown successful

Share your configuration

---
services:
  gluetun:
    image: qmcgaw/gluetun:latest
    container_name: gluetun
    environment:
      - PUID=998
      - PGID=100
      - TZ=America/Chicago
      - VPN_SERVICE_PROVIDER=torguard
      - OPENVPN_USER=######### #Change to YOUR Username
      - OPENVPN_PASSWORD=########## #Change to YOUR Password
      - OPENVPN_CIPHERS=aes-128-gcm
      - DOT_PROVIDERS=quad9,cloudflare,quadrant
      - UPDATER_PERIOD=24h
      - BLOCK_SURVEILLANCE=on
      - BLOCK_ADS=on

    volumes:
      - (folder path)/Config/Gluetun:/gluetun
    ports:
      - 8000:8000 #For Gluetun HTTP Control Server
    cap_add:
      - NET_ADMIN
    restart: unless-stopped

edit: removed content from docker-compose.yml unless asked otherwise.

Copy link
Contributor

@qdm12 is more or less the only maintainer of this project and works on it in his free time.
Please:

@Arson31
Copy link
Author

Arson31 commented Sep 18, 2024

Upon further investigation, this has been fixed by simply deleting the servers.json file in the configuration folder and have gluetun recreate the servers.json file. The container works as it should.

@Arson31 Arson31 closed this as completed Sep 18, 2024
Copy link
Contributor

Closed issues are NOT monitored, so commenting here is likely to be not seen.
If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project
which became too popular to monitor issues closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant