osmo-nitb-scripts icon indicating copy to clipboard operation
osmo-nitb-scripts copied to clipboard

Error when starting main.py

Open aybyd opened this issue 4 years ago • 6 comments

I tried to install this on my Ubuntu 18.04 machine and LimeSDR Mini. But I always got this kind of error

`root@user:~/osmo-nitb-scripts# sudo ./main.py [*] Checking for SDR device.. [+] Found device: * [LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=xxxxx]

Unit osmocom-nitb.service could not be found. kernel.sched_rt_runtime_us = -1 [+] starting osmo-nitb.service ... [+] starting osmo-trx-lms.service ... [+] starting osmo-bts-trx.service ... Somethigs wrong with osmo-nitb.service, see journalctl -b -S 17:11:17 -u osmo-nitb.service Unit osmocom-nitb.service could not be found. `

Sep 12 17:19:45 base osmo-nitb[3110]: Error occurred during reading below line: Sep 12 17:19:45 base osmo-nitb[3110]: subscriber-create-on-demand random 100 199 Sep 12 17:19:45 base osmo-nitb[3110]: <0005> bsc_init.c:494 Failed to parse the config file: '/etc/osmocom/osmo-nitb.cfg' Sep 12 17:19:45 base systemd[1]: osmo-nitb.service: Main process exited, code=exited, status=1/FAILURE Sep 12 17:19:45 base systemd[1]: osmo-nitb.service: Failed with result 'exit-code'.

aybyd avatar Sep 12 '20 09:09 aybyd

This is for osmocom debian10 repository, the error says "osmocom-nitb.service could not be found", to installing osmocom-nitb from repository we need libosmocore12 that dose not exist in repository, same problem i have.

py4hackers avatar Sep 13 '20 10:09 py4hackers

Hello, you can try another repo from here https://osmocom.org/projects/cellular-infrastructure/wiki/Latest_Builds Or just build osmo-nitb and configure it as a systemd service

godfuzz3r avatar Oct 23 '20 10:10 godfuzz3r

tell me what this error can be connected with? Ubuntu 18.04

osmo@osmo:~/osmo-nitb-scripts$ sudo ./main.py [*] Checking for SDR device.. [+] Found device: * [LimeSDR-USB, media=USB 2.0, module=FX3, addr=1d50:6108, serial=00090726074F1A1B]

Unit osmocom-nitb.service could not be found. kernel.sched_rt_runtime_us = -1 [+] starting osmo-nitb.service ... [+] starting osmo-trx-lms.service ... [+] starting osmo-bts-trx.service ... [+] Done Traceback (most recent call last): File "./main.py", line 196, in monitor.update_monitor(db.get_subscribers()) File "/home/osmo/osmo-nitb-scripts/scripts/HLR.py", line 25, in get_subscribers for user in self.db_cursor.execute("SELECT * FROM Subscriber"): sqlite3.OperationalError: no such table: Subscriber

ghost avatar Mar 06 '21 00:03 ghost

I tried to install this on my Ubuntu 18.04 machine and LimeSDR Mini. But I always got this kind of error

`root@user:~/osmo-nitb-scripts# sudo ./main.py [*] Checking for SDR device.. [+] Found device: * [LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=xxxxx]

Unit osmocom-nitb.service could not be found. kernel.sched_rt_runtime_us = -1 [+] starting osmo-nitb.service ... [+] starting osmo-trx-lms.service ... [+] starting osmo-bts-trx.service ... Somethigs wrong with osmo-nitb.service, see journalctl -b -S 17:11:17 -u osmo-nitb.service Unit osmocom-nitb.service could not be found. `

Sep 12 17:19:45 base osmo-nitb[3110]: Error occurred during reading below line: Sep 12 17:19:45 base osmo-nitb[3110]: subscriber-create-on-demand random 100 199 Sep 12 17:19:45 base osmo-nitb[3110]: <0005> bsc_init.c:494 Failed to parse the config file: '/etc/osmocom/osmo-nitb.cfg' Sep 12 17:19:45 base systemd[1]: osmo-nitb.service: Main process exited, code=exited, status=1/FAILURE Sep 12 17:19:45 base systemd[1]: osmo-nitb.service: Failed with result 'exit-code'.

in the line: subscriber-create-on-demand random 100 199 remove random 100 199

ghost avatar Mar 06 '21 00:03 ghost

Unit osmocom-nitb.service could not be found

There is no systemctl nitb service in you system, so osmo-nitb did not start and didn't create a hlr.db.

I would not advise to use this script because it uses legacy osmocom infrastructure. It is better to install new osmocom stack with splitted hlr, msc and bsc with new features and wrap all this stuff to bash script, that will start it

godfuzz3r avatar Mar 06 '21 07:03 godfuzz3r

Unit osmocom-nitb.service could not be found

There is no systemctl nitb service in you system, so osmo-nitb did not start and didn't create a hlr.db.

Ubuntu 18.04 clean my program starts with this line Unit osmocom-nitb.service could not be found. kernel.sched_rt_runtime_us = -1 [+] starting osmo-nitb.service ... [+] starting osmo-trx-lms.service ... [+] starting osmo-bts-trx.service ... [+] Done Then the window changes and the data appears, so it was a month ago, now with a new installation and when changing a window, I see an error. And really osmo-nitb doesn't start. Apparently the packages were broken. I tried installing modules manually, I get a working program, there are calls, a request for my number, NO SMS SENDING. I also installed the last version of the modules and approximately the same when your project was still being assembled, the result is the same, everything works except SMS. Question: Maybe I don't connect all modules? LimeSuite ibosmocore osmo-abis osmo-netif osmo-bts libsmpp34 openbsc osmo-trx osmo-ggsn osmo-ggsn osmo-pcu osmo-hlr osmo-sgsn osmo-sip-connector Everything is assembled without errors, your configs.

ghost avatar Mar 16 '21 21:03 ghost