Hi !
I'm struggling to upgrade an old 2.2 version to the new 3.6 on a Ubuntu 24.04
LTS release , and this is a breathtaking work ....
First I've tried to install my old good rtpproxy it skipped to read the config
file, did exact as a youtube video that was released 9 month ago.
Even compiled a "new one" , so I've given up and try on rtpengine instead ...
See if I can get this to work....
BUT now after installed the opensips-cli and after that put the
opensips-cli.cfg file into /etc/opensips/. the opensips-cli doesn't bother of
the fifo-file: statement ...
Run the cmd:
opensips-cli -x mi rtpengine_reload
ERROR: Could not access FIFO file /tmp/opensips_fifo: [Errno 13] Permission
denied: '/tmp/opensips_fifo'
ERROR: starting with Linux kernel 4.19, processes
can no longer read from FIFO files ", that are saved in
directories with sticky bits (such as /tmp) and are
not owned by the same user the process runs with. To fix
this, either store the file in a non-sticky bit directory
(such as /var/run/opensips), or disable fifo file
protection using 'sysctl fs.protected_fifos=0' (NOT
RECOMMENDED)
Removed the [default] from the opensips-cli.cfg
opensips-cli -d -x mi rtpengine_reload
DEBUG: using config file /etc/opensips/opensips-cli.cfg
<<< So it looks that opensips-cli actually reads the opensips-cli.cfg
file.
Traceback (most recent call last):
File "/usr/bin/opensips-cli", line 9, in <module>
run_console()
File "/usr/bin/opensips-cli", line 6, in run_console
main.main()
File "/usr/lib/python3/dist-packages/opensipscli/main.py", line 82, in main
shell = cli.OpenSIPSCLI(args)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/opensipscli/cli.py", line 75, in __init__
cfg.parse(cfg_file)
File "/usr/lib/python3/dist-packages/opensipscli/config.py", line 41, in parse
self.config.read(in_file)
File "/usr/lib/python3.12/configparser.py", line 684, in read
self._read(fp, filename)
File "/usr/lib/python3.12/configparser.py", line 1064, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
<<< Yep, I've removed the : [default] from line 1
file: '/etc/opensips/opensips-cli.cfg', line: 1
'log_level: WARNING\n'
***** The config .... ******
[default]
log_level: WARNING
prompt_name: opensips-cli
prompt_intro: Welcome to OpenSIPS
prompt_emptyline_repeat_cmd: False
history_file: ~/.opensips-cli.history
history_file_size: 1000
output_type: pretty-print
communication_type: fifo
fifo_file: /tmp/opensips_fifo
Any ideas on what I did wrong ....
Thanks in advance ...
Kind Regards
// Stefan
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users