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

Runtime error: invalid memory address or nil pointer dereference #3184

Open
coreyh503 opened this issue Jan 14, 2025 · 7 comments
Open

Runtime error: invalid memory address or nil pointer dereference #3184

coreyh503 opened this issue Jan 14, 2025 · 7 comments

Comments

@coreyh503
Copy link

When starting docker-compose I check the logs to see if Netbird is running correctly and get this runtime error.

docker-compose logs -f
Attaching to netbird-management
netbird-management | panic: runtime error: invalid memory address or nil pointer dereference
netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x12d42f9]

Steps to reproduce the behavior:
docker-compose up -d
docker-compose logs -f

Also, when running netstat there is nothing listening on port 443.

I'm running Netbird using a Ubuntu server in the cloud.

NetBird version 0.24.3 and Docker-compose 1.29.2.

This is my correct management.json file that I have changed over and over.

{
"server": {
"proto": "https",
"port": 443,
"grpc_port": 33073,
"domain": "netbird.domain.com",
"log_level": "debug"
},
"store": {
"type": "sqlite",
"sqlite": {
"db_path": "/var/lib/netbird/netbird.db"
},
"encryption_key": "change-me-to-a-unique-strong-key",
"data_dir": "/var/lib/netbird"
},
"auth": {
"type": "none"
}
}

I will be glad to provide any additional information needed.

@lixmal
Copy link
Contributor

lixmal commented Jan 15, 2025

Hi @coreyh503,

can you try running a more recent version? v0.24.3 is over a year old.

@coreyh503
Copy link
Author

Thank you. I'll try that. I though I was using the most recent version. I would keep retrieving it using the "latest" value but I guess it didn't work. I'm somewhat new to all this. I'll see if that produces a better result.

@mlsmaycon
Copy link
Collaborator

@coreyh503 you might need to follow some steps before upgrading since you might still be using a file store.

@mlsmaycon
Copy link
Collaborator

After backup, see docs:https://docs.netbird.io/selfhosted/selfhosted-guide#backup

You first need to update to the 0.28.0 version and then you can upgrade to the latest version.

@coreyh503
Copy link
Author

What is the latest version of the management service so I know what to look for?

@coreyh503
Copy link
Author

I installed the latest version and still the same error. This has been a nightmare. I've been screwing around with this stuff for 3 weeks. I'm going to look for another VPN product.

@lixmal
Copy link
Contributor

lixmal commented Jan 17, 2025

Can you share the whole log with the panic?

All right. Good luck

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

No branches or pull requests

3 participants