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

Error when starting main.py #1

Open
aybyd opened this issue Sep 12, 2020 · 6 comments
Open

Error when starting main.py #1

aybyd opened this issue Sep 12, 2020 · 6 comments

Comments

@aybyd
Copy link

aybyd commented Sep 12, 2020

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'.

@py4hackers
Copy link

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.

@godfuzz3r
Copy link
Owner

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

@ghost
Copy link

ghost commented Mar 6, 2021

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
Copy link

ghost commented Mar 6, 2021

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

@godfuzz3r
Copy link
Owner

godfuzz3r commented Mar 6, 2021

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

@ghost
Copy link

ghost commented Mar 16, 2021

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.

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

3 participants