Openwrt repos miss libsmpp library - openwrt

RUTOS SDK (teltonika) requires the download of libsmpp34 from openwrt repositories, but none of them contain it.
Should I get it elsewhere ?
Traces below:
wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://sources.cdn.openwrt.org/libsmpp34-1.14.1.tar.xz --2022-07-04 14:38:15-- https://sources.cdn.openwrt.org/libsmpp34-1.14.1.tar.xz Resolving sources.cdn.openwrt.org (sources.cdn.openwrt.org)... 151.101.122.132, 151.101.2.132, 151.101.66.132, ... Connecting to sources.cdn.openwrt.org (sources.cdn.openwrt.org)|151.101.122.132|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-07-04 14:38:16 ERROR 404: Not Found.

Open /package/libs/libsmpp34/Makefile and change the line from:
PKG_SOURCE_URL=git://git.osmocom.org/libsmpp34.git
to
PKG_SOURCE_URL=https://git.osmocom.org/libsmpp34

Related

How to use SVN post-commit hook trigger jenkins build?

The main purpose is that I want to commit some files to SVN repository and trigger the jenkins to build some test automatically.The method I want to use is post-commit hook.
I use TortoiseSVN , and I create a repository to test.
I change the post-commit.tmpl to post-commit.bat which is in D:\Repository\hooks folder.
below is what in the post-commit.bat : (Windows 10)
SET REPOS=%1
SET REV=%2
FOR /f "tokens=*" %%a IN (
'svnlook uuid %REPOS%'
) DO (
SET UUID=%%a
)
FOR /f "tokens=*" %%b IN (
'svnlook changed --revision %REV% %REPOS%'
) DO (
SET POST=%%b
)
D:/Wget/wget ^
--header="Content-Type:text/plain;charset=UTF-8" ^
--post-data="%POST%" ^
--output-document="-" ^
--timeout=2 ^
http://localhost:8080/jenkins/subversion/%UUID%/notifyCommit?rev=%REV%
the error messages is:
post-commit hook failed (exit code 8)with output:
--2019-09-23 13:50:53--
http://localhost:8080/"realUUID"/notifyCommit?rev=7
Resolving localhost(localhost)... ::1, 127.0.0.1
Connecting to localhost(localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-09-23 13:50:53 ERROR 404: Not Found
what I have done is:
1.change jenkins settings to "Allow anonymous read access"
2.cancel CSRF protection
I have no idea what is the main step that SVN communicate with Jenkins.
Please help , and thanks for your answer!
The error that you receive is HTTP 404 NOT FOUND and you need to examine your hook script for errors:
HTTP request sent, awaiting response... 404 Not Found
2019-09-23 13:50:53 ERROR 404: Not Found
Therefore, the URL that wget contacts is invalid: http://localhost:8080/jenkins/subversion/%UUID%/notifyCommit?rev=%REV%. You need to double-check the URL for typos and that the %UUID% is correct. Note that I do not see any SET for %UUID% in your hook - maybe it is the problem?

Rest call for mod_rest in ejabberd not working

Hello guys in my project I have the JID of sender and receiver and the body of the message. I need to send the message without using any chat client, hence I am using mod_rest so that I can access mod_admin_extra. I configured it with Ejabberd server 14.05 and tried to run the following rest call
[root#centos ~]# wget localhost:5280/rest/ --server-response --post-data 'registered_users localhost'
--2016-06-20 17:03:33-- http://localhost:5280/rest/
Connecting to <<proxy ip>>... connected.
Proxy request sent, awaiting response...
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 1015
Connection: close
Date: Mon, 20 Jun 2016 11:33:33 GMT
Length: 1015 [text/html]
Saving to: “index.html.3”
Where index.html.3 had the following message,
Problem 'error function_clause' occurred executing the command.
Stacktrace: [{ejabberd_commands,'-check_access_commands/5-fun-0-',
[{rest,[{registered_users,[all]},{connected_users,[all]}]}],
[{file,"src/ejabberd_commands.erl"},{line,372}]},
{lists,'-filter/2-lc$^0/1-0-',2,[{file,"lists.erl"},{line,1284}]},
{ejabberd_commands,check_access_commands,5,
[{file,"src/ejabberd_commands.erl"},{line,371}]},
{ejabberd_commands,execute_command,4,
[{file,"src/ejabberd_commands.erl"},{line,308}]},
{ejabberd_ctl,call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,293}]},
{ejabberd_ctl,try_call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,269}]},
{ejabberd_ctl,process2,3,
[{file,"src/ejabberd_ctl.erl"},{line,218}]},
{mod_rest,maybe_post_request,3,
[{file,"src/mod_rest.erl"},{line,135}]}]
Mod_admin_extra is added in ejabberd configuration file.Is this an issue of command not been identified.If yes the please explain how to add mod_Admin_extra commands in ejabberdctl I am new to erlang so its quite difficult for me to debug hence any help would be beneficial for me and if you guys know any better approach to send message other than using mod_rest please do let me know
Thanks alot
I got the issue. The ejabberd_commands.hrl and mod_admin_extra modules of ejabberd 14.05 do not support the commands I needed. Hence I added newer version of both modules and it started working
You can even try with command send__message

pjsua:Err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))

the pjsua project is configured in linux(centos),the follows are my codes.Please help me,I have checked more about this problem ,but nothing useful about pjsua testing in linux.
[root#hy bin]# ls pjsua-x86_64-unknown-linux-gnu PJSYSTEST.TXT
pjsystest-x86_64-unknown-linux-gnu reg.cfg samples [root#hy bin]#
./pjsua-x86_64-unknown-linux-gnu --config-file reg.cfg
after this,the error is coming:
02:43:37.421 sip_resolve.c ...Failed to resolve 'xxxxxxx(sip
address)'. Err=70018 (gethostbyname() has returned error
(PJ_ERESOLVE))
02:43:37.421 tsx0x2342998 ...Failed to send Request msg
REGISTER/cseq=9911 (tdta0x2340930)! err=70018 (gethostbyname() has
returned error (PJ_ERESOLVE))
02:43:37.421 pjsua_acc.c .....SIP registration failed, status=502
(gethostbyname() has returned error (PJ_ERESOLVE))
looking forward your help.
Obviously this is a name resolution problem. The REGISTER URI can not be resolved by your system. Make sure you are pointing to a valid, reachable DNS server or the hostname is configured in your /etc/hosts.

Crucible after restore fails in Jira

I install and user Crucible+FishEye on http://mydomen:8060
work several month - all works, integration with jira was worked.
I create http://crucible.mydomain (in other physic server) - with nginx proxy on localhost:8060, install Crucible+FishEye and restore from backup.
And now i get erro in jira tasks Source and Rewiev tab:
This list of reviews may be incomplete, as errors occurred retrieving data from the following repositories:
Request to http://mydomen:8060/ failed: Error in remote call to 'mydomen' (http://crucible1.mydomen) [AbstractRestCommand{path='rest-service/search-v1/reviews', params={maxReturn=50, term=XM-911}, methodType=GET}] : Received status code 404 (Not Found)
Request to http://crucible.mydomain/ failed: Error in remote call to 'Crucible+FishEye' (http://mydomen:8060) [AbstractRestCommand{path='rest-service/search-v1/reviews', params={maxReturn=50, term=XM-911}, methodType=GET}] : The host did not accept the connection within timeout of 10000 ms
Why it try connected on http://mydomen:8060 ??
In my Crucible > Administration > Global settings > Server > HTTP Bind=crucible.mydomain
I found solution: I need recreate Application links in http://jira.mydomen/plugins/servlet/applinks/listApplicationLinks

Passenger gem getting updated for Rails app

I have a staging server from my client which has passenger(3.0.5 and 3.0.2) installed on it for an rails app(v=2.3.13), but when I start the server using passenger on the console it's getting updated to 3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002. In my Gemfile I have mentioned
gem 'passenger', '=3.0.5'
Why is it getting updated?
Thanks in advance.
Here's the log....
when I run the command, **`**RAILS_ENV=staging passenger start**.`**
__________________________________________________________
Nginx core 0.8.54 isn't installed
Phusion Passenger Standalone will automatically install it into:
/var/lib/passenger-standalone/3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002/nginx-0.8.54
This will only be done once. Please sit back and relax while installation is
in progress.
Checking for required software...
GNU C++ compiler... found at `/usr/bin/g++`
GNU make... found at `/usr/bin/make`
A download tool like 'wget' or 'curl'... found at /usr/bin/wget
Ruby development headers... found
OpenSSL support for Ruby... found
RubyGems... found
Rake... found at `/usr/local/bin/rake`
rack... found
Curl development headers with SSL support... found
OpenSSL development headers... found
Zlib development headers... found
file-tail... found
daemon_controller >= 0.2.5... found
Downloading Passenger binaries for your platform, if available...
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx binaries for your platform, if available...
#
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx...
# wget -O /tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz http://nginx.org/download/nginx-0.8.54.tar.gz
--2013-10-09 08:52:00-- http://nginx.org/download/nginx-0.8.54.tar.gz
Resolving nginx.org... 206.251.255.63
Connecting to nginx.org|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 650001 (635K) [application/octet-stream]
Saving to: '/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz'
100%
[======================================================================================================>] 650,001 788K/s in 0.8s
2013-10-09 08:52:01 (788 KB/s) - `/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz' saved [650001/650001]
Installing Phusion Passenger Standalone...

Resources