• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Startup Options

Instinkt

New member
To automatically run a lot of Instances trough Docker etc, Startup Commands would be awesome.

Example:
./teaserver.sh -port 12312 - queryp 123124

Greetings
 

yamano

TeaSpeak Team
Staff member
TeaTeam
You dont need that at all xD
Create a cron job to auto start teaspeak everytime you restart the server..
Use yatqa to create the virtual servers and configure them to autostart automatically..
 

Instinkt

New member
Way too expensive for smth i can do myself with small changes in Server Software.

Maybe Commands like Tea*Speak itself:

./ts3server default_voice_port={{SERVER_PORT}} query_port={{SERVER_PORT}} filetransfer_ip=0.0.0.0 filetransfer_port={{FILE_TRANSFER}} license_accepted=1
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Way too expensive for smth i can do myself with small changes in Server Software.

Maybe Commands like Tea*Speak itself:

./ts3server default_voice_port={{SERVER_PORT}} query_port={{SERVER_PORT}} filetransfer_ip=0.0.0.0 filetransfer_port={{FILE_TRANSFER}} license_accepted=1
There are a bunch of options you could provide.
Basically you could pass all options within the config.yml as startup parameters via "-p<option>=<value>".
For all parameters run "./teastart_minimal.sh -h"
 

REDOSS

TeaSpeak Team
Staff member
TeaTeam
There are a bunch of options you could provide.
Basically you could pass all options within the config.yml as startup parameters via "-p<option>=<value>".
For all parameters run "./teastart_minimal.sh -h"
After starting the server with the specified parameters, these parameters are saved in config.yml or do I need to start the server with parameters every time?
 

Instinkt

New member
Fresh Installation:

./teastart_minimal.sh -p default_port=1111
Time 19:07:53 date Oct 15 2019
[INFO] Setting up exception handler
[INFO] Loading configuration
Loading configuration
[INFO] Setting up log
[2020-01-28 14:28:09] [INFO] GEN | Starting TeaSpeak-Server v1.3.25 [Build: 1571162873]
[2020-01-28 14:28:09] [INFO] GEN | Starting music providers
[2020-01-28 14:28:09] [ERROR] [Music] [FFMPEG] Could not find ffmpeg (Error: "sh: 1: ffmpeg: not found")
[2020-01-28 14:28:09] [ERROR] [Music] [FFMPEG] How to download/install ffmpeg: "sudo apt-get install ffmpeg"
[2020-01-28 14:28:09] [ERROR] [Music] Could not create music provider for providers/000ProviderFFMpeg.so
[2020-01-28 14:28:09] [ERROR] [Music] Could not load music provider providers/001ProviderYT.so. Error: 000ProviderFFMpeg.so: cannot open shared object file: No such file or directory
[2020-01-28 14:28:10] [INFO] GEN | Upgrading database from version -1 to 10. This could take a moment!
[2020-01-28 14:28:10] [INFO] GEN | Database upgrade took 3ms
[2020-01-28 14:28:10] [INFO] GEN | Got 0 saved channels
[2020-01-28 14:28:10] [INFO] GEN | Generating default tree
[2020-01-28 14:28:10] [INFO] FILE | Starting server on 0.0.0.0:30303
[2020-01-28 14:28:10] [INFO] GEN | ------------------ [Server Query] ------------------
[2020-01-28 14:28:10] [INFO] GEN | New Admin Server Query login credentials generated
[2020-01-28 14:28:10] [INFO] GEN | Username: serveradmin
[2020-01-28 14:28:10] [INFO] GEN | Password: ce6FaDLxSmZl
[2020-01-28 14:28:10] [INFO] GEN | ------------------ [Server Query] ------------------
[2020-01-28 14:28:10] [INFO] QUERY | Starting server on 0.0.0.0:10101
[2020-01-28 14:28:10] [INFO] GEN | Generating server puzzles...
[2020-01-28 14:28:10] [INFO] GEN | Puzzles generated! Time required: 33ms
[2020-01-28 14:28:10] [INFO] GLOBL | Loading startup cache (This may take a while)
[2020-01-28 14:28:10] [INFO] GLOBL | Required 2ms to preload the startup cache. Cache needs 0mb
[2020-01-28 14:28:10] [INFO] GLOBL | Loaded 0 servers within 0ms. Server/sec: 0.000000
[2020-01-28 14:28:10] [INFO] GLOBL | Creating new TeaSpeak server...
[2020-01-28 14:28:10] [INFO] 1 | Got 0 saved channels
[2020-01-28 14:28:10] [INFO] 1 | Creating new channel tree (Copy from server 0)
[2020-01-28 14:28:10] [INFO] 1 | Got 4 saved channels
[2020-01-28 14:28:10] [INFO] 1 | ---------------------- Token ----------------------
[2020-01-28 14:28:10] [INFO] 1 | The server's serveradmin token:
[2020-01-28 14:28:10] [INFO] 1 | rsPNJA8rf0wABYcC71wY
[2020-01-28 14:28:10] [INFO] 1 |
[2020-01-28 14:28:10] [INFO] 1 | Note: This token could be used just once!
[2020-01-28 14:28:10] [INFO] 1 | ---------------------- Token ----------------------
[2020-01-28 14:28:10] [INFO] 1 | Started server on 0.0.0.0:9987 | :::9987.
[2020-01-28 14:28:10] [INFO] 1 | Starting web server on 0.0.0.0:9987

Next Try:

./teastart_minimal.sh --property:voice.default_port=1111
Time 19:07:53 date Oct 15 2019
[INFO] Setting up exception handler
[INFO] Loading configuration
Loading configuration
[INFO] Setting up log
[2020-01-28 14:32:00] [INFO] GEN | Starting TeaSpeak-Server v1.3.25 [Build: 1571162873]
[2020-01-28 14:32:00] [INFO] GEN | Starting music providers
[2020-01-28 14:32:00] [ERROR] [Music] [FFMPEG] Could not find ffmpeg (Error: "sh: 1: ffmpeg: not found")
[2020-01-28 14:32:00] [ERROR] [Music] [FFMPEG] How to download/install ffmpeg: "sudo apt-get install ffmpeg"
[2020-01-28 14:32:00] [ERROR] [Music] Could not create music provider for providers/000ProviderFFMpeg.so
[2020-01-28 14:32:00] [ERROR] [Music] Could not load music provider providers/001ProviderYT.so. Error: 000ProviderFFMpeg.so: cannot open shared object file: No such file or directory
[2020-01-28 14:32:01] [INFO] GEN | Got 4 saved channels
[2020-01-28 14:32:01] [INFO] FILE | Starting server on 0.0.0.0:30303
[2020-01-28 14:32:01] [INFO] QUERY | Starting server on 0.0.0.0:10101
[2020-01-28 14:32:01] [INFO] GEN | Generating server puzzles...
[2020-01-28 14:32:01] [INFO] GEN | Puzzles generated! Time required: 35ms
[2020-01-28 14:32:01] [INFO] GLOBL | Loading startup cache (This may take a while)
[2020-01-28 14:32:01] [INFO] GLOBL | Required 3ms to preload the startup cache. Cache needs 0mb
[2020-01-28 14:32:01] [INFO] 1 | Got 4 saved channels
[2020-01-28 14:32:01] [INFO] 1 | Starting server
[2020-01-28 14:32:01] [INFO] 1 | Started server on 0.0.0.0:9987 | :::9987.
[2020-01-28 14:32:01] [INFO] 1 | Starting web server on 0.0.0.0:9987

-l Parameter told me, the Default port is:
[INFO] voice.default_port
[INFO] Description:
[INFO] Change the default voice server port
[INFO] This also defines the start where the instance search for free server ports on a new server creation
[INFO] Notes:
[INFO] This setting only apply once, when you create a new instance.
[INFO] Once applied the default server port would not be changed!
[INFO] The start point for the server creation still apply.
[INFO] The value must be a positive numeric value between 1 and 65535

or do I get something wrong here?
 

Instinkt

New member
When i want to host massive Servers, i have to change them trough the Command line for fully automated installation and running.
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
"./teastart_minimal.sh --property:voice.default_port=1111" is the right command.
But since you've started the server already with the "wrong" command the default server has been created :)