Jasmin installation using Pypi

180 views
Skip to first unread message

Amanuel Elhanan

unread,
Jun 21, 2023, 5:00:15 AM6/21/23
to Jasmin SMS Gateway
Hello
I am on Fedora 38 and tried to install jasmin using pip and here is what I did

added user
- sudo useradd jasmin

Created the following directories
  1. /etc/jasmin /etc/jasmin/resource
  2. /etc/jasmin/store #> Must be owned by jasmin user
  3. /var/log/jasmin #> Must be owned by jasmin user
Install jasmin through pip
  • sudo pip install jasmin
downloaded systemd service files from (https://github.com/jookies/jasmin/tree/master/misc/config/systemd) and started jasmind.service
  • sudo systemctl enable jasmind 
  • sudo systemctl start jasmind
Installed redis and rabbitmq manually from fedora repo and started the service

Finally to test if everything is working I tried this to connect to jCli console:
telnet 127.0.0.1 8990 but am seeing a connection refused error.

I have tried disabling firewalld and SELinux but no luck, any help on this thanks.




alamin sheikh

unread,
Jun 22, 2023, 7:40:49 PM6/22/23
to Jasmin SMS Gateway
Jasmind service is running?  
Can you please paste sudo systemctl status jasmind output here.

Amanuel Elhanan

unread,
Jun 22, 2023, 7:45:35 PM6/22/23
to Jasmin SMS Gateway
Yes, it's running. one thing I am confused with is there is no jasmin config file inside /etc/jasmin directory (which I created following the guide).
jasmind.service - Jasmin SMS Gateway
    Loaded: loaded (/etc/systemd/system/jasmind.service; enabled; preset: disabled)
   Drop-In: /usr/lib/systemd/system/service.d
            └─10-timeout-abort.conf
    Active: active (running) since Thu 2023-06-22 20:03:53 EAT; 6h ago
  Main PID: 1210 (jasmind.py)
     Tasks: 1 (limit: 47323)
    Memory: 68.5M
       CPU: 5.276s
    CGroup: /system.slice/jasmind.service
            └─1210 /usr/bin/python3 /usr/local/bin/jasmind.py --username jcliadmin --password jclipwd

Wax 23 02:42:45 fedora jasmind[1210]:     return opener.open(url, data, timeout)
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 503, in open
Wax 23 02:42:45 fedora jasmind[1210]:     req = Request(fullurl, data)
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 322, in __init__
Wax 23 02:42:45 fedora jasmind[1210]:     self.full_url = url
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 348, in full_url
Wax 23 02:42:45 fedora jasmind[1210]:     self._parse()
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 377, in _parse
Wax 23 02:42:45 fedora jasmind[1210]:     raise ValueError("unknown url type: %r" % self.full_url)
Wax 23 02:42:45 fedora jasmind[1210]: builtins.ValueError: unknown url type: '//etc/jasmin//resource//amqp0-9-1.xml'


bayo opadeyi

unread,
Jun 23, 2023, 1:59:20 AM6/23/23
to Jasmin SMS Gateway
Do you have logs for jcli?
/var/log/jasmin/jcli.log.

Also I think you can copy the config files from the repo and drop in /etc/jasmin/, then tweak the configuration and check the logs.
Make sure to restart the jasmind service

Amanuel Elhanan

unread,
Jun 23, 2023, 5:57:38 AM6/23/23
to Jasmin SMS Gateway
There is no jcli.log instead these three are present...
amqp-client.log  interceptor.log  redis-client.log


Ok, I will copy the config file manually and will try to restart.

alamin sheikh

unread,
Jun 24, 2023, 3:45:38 PM6/24/23
to Jasmin SMS Gateway


Wax 23 02:42:45 fedora jasmind[1210]:     return opener.open(url, data, timeout)
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 503, in open
Wax 23 02:42:45 fedora jasmind[1210]:     req = Request(fullurl, data)
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 322, in __init__
Wax 23 02:42:45 fedora jasmind[1210]:     self.full_url = url
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 348, in full_url
Wax 23 02:42:45 fedora jasmind[1210]:     self._parse()
Wax 23 02:42:45 fedora jasmind[1210]:   File "/usr/lib64/python3.11/urllib/request.py", line 377, in _parse
Wax 23 02:42:45 fedora jasmind[1210]:     raise ValueError("unknown url type: %r" % self.full_url)
Wax 23 02:42:45 fedora jasmind[1210]: builtins.ValueError: unknown url type: '//etc/jasmin//resource//amqp0-9-1.xml'

From above logs seems it’s not getting jasmin.cfg file.

Amanuel Elhanan

unread,
Jun 26, 2023, 11:08:04 AM6/26/23
to Jasmin SMS Gateway
I have already downloaded jasmin.cfg manually and restarted the service but still the same error

Screenshot_20230626_180651.png

alamin sheikh

unread,
Jun 27, 2023, 4:44:00 AM6/27/23
to Jasmin SMS Gateway
Can you please change the ownership of the cfg file to jasmin user and group and then try again.

Avremy Cohen

unread,
Mar 27, 2024, 6:28:39 AM3/27/24
to Jasmin SMS Gateway
I have the same issue on Debian , did you ever find the solution?
I have created jasmin.cfg file , changed ownership of all relevant files and still get the same error
Reply all
Reply to author
Forward
0 new messages