Problem to install new sysadmin 12.0.9.7

Hi,

I tried to update from sysadmin 12.0.9.5 to 12.0.9.7. The upgrade wasn’t sucessfull.

The I uninstalled the sysadmin module and tried it via CLI:

#> amportal a ma install sysadmin

Fetching FreePBX settings with gen_amp_conf.php..

2.7.0 200.shmz65.1.13
Successfully copied LoadLicenseIfExists.php.
mv: cannot stat `/var/lib/asterisk/agi-bin/license-*.zl': No such file or directory

Any idea?

Best regards
Timmi

The message you posted doesn’t mean that it failed. In fact it’s just stating that you don’t have a license file in the old directory which it’s trying to migrate to the new directory. Note that this would have had to be a very old install for you to have a license file in /var/lib/asterisk/agi-bin/.

Hi

but the installation never succeed.
Do you have any idea where to look for the root cause?

regards
Timmi

Hi all,

any ideas?

#> amportal a ma info sysadmin

Fetching FreePBX settings with gen_amp_conf.php..

/var/lib/asterisk/bin/freepbx_engine: line 175: /var/lib/asterisk/bin/freepbx_engine_hook_sysadmin: No such file or directory
[FATAL] sysadmin not found

The file is available but empty!

Best regards
Timmi

hi,

i juste have the same problem !
sysadmin previously installed and working fine… but today i upgrade to last version 12.0.9.7… and install never finish…
then i have try to remove/install from yum unseccussfull …
with amportal, i get same error than TimmiORG.

please help us to reinstall sysadmin correctly.

thank you !

using the upgrade script i get…

Installing: areminder, arimanager, bria, broadcast, callerid, calllimit, certman, conferencespro, contactmanager, cos, cxpanel, digium_phones, digiumaddoninstaller, endpoint, endpointman, extensionroutes, faxpro, freepbx_ha, motif, pagingpro, parkpro, pinsetspro, qxact_reports, recording_report, restapi, restapps, sipstation, sms, sng_mcu, sysadmin, tts, ttsengines, vmnotify, voicemail_report, vqplus, webcallback, webrtc, xmpp
Installing areminder…
Found module locally, verifying…Verified. Using Local

Untaring…Done
Module areminder successfully downloaded
Detected Missing Dependency of: sysadmin 2.11.0.50
Downloading Missing Dependency of: sysadmin 2.11.0.50
Found module locally, verifying…Verified. Using Local

Untaring…Done
Module sysadmin successfully downloaded
Installing Missing Dependency of: sysadmin 2.11.0.50
2.7.0 200.shmz65.1.13
Successfully copied LoadLicenseIfExists.php.
mv: cannot stat `/var/lib/asterisk/agi-bin/license-*.zl’: No such file or directory
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)

@rickou
What does this mean?
You got it installed?
If yes how did you do it?

Best regards
Timmi

no, before upgrade all work fine, but now, module won’t install anymore. this is only some failed tests i have done…

I haven’t been able to reproduce this issue here but is this a hand install or are you using a distro and if so which distro?

@GameGamer43

I’m using the following: SHMZ release 6.5 (Final)
The rest is 6.12.65.22.

Based on AsteriskNOW.

Best regards
Timmi

@TimmiORG, I just tested this on couple different installs and I’ve been unable to replicate this issue on 6.12.65.22.

@GameGamer43, is there anything I can forward to you like logs or something like that?
A joint remote session could be also possible if you like.

Best regards
Timmi

hi,

here i have the official distro from schmooze at origin a 5.211.65 that i have upgraded to 6.12.65
all have worked fine since last upgrade of sysadmin.
i have test to upgrade sysadmin from last version (sysadmin-2.7.0-200.shmz65.1.14) without success…

yum seem to hang at
Updating : sysadmin-2.7.0-200.shmz65.1.14.noarch

when ctrl+c i get :
Error in POSTIN scriptlet in rpm package sysadmin-2.7.0-200.shmz65.1.14.noarch
mv: cannot stat `/var/lib/asterisk/agi-bin/license-*.zl’: No such file or directory
error: %post(sysadmin-2.7.0-200.shmz65.1.14.noarch) scriptlet failed, signal 2
Verifying : sysadmin-2.7.0-200.shmz65.1.14.noarch

using the upgrade script from schmooze give me:
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)

don’t know what’s mean but i’m logged to root !
don’t know how to debug this to find the problem.

if you can help me too…

Hi,

I also tried to uninstall the old version of the sysadmin RPM. This was successful but the installation of the new package stucks as described above.

Best regards
Timmi

confirm that problem,
updating sysadmin from 12.0.9.3 to 12.0.9.7, and its failed,

then using upgrade scripts from 6.12.65-20 to 21 then to 22 release

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
^Cfound language dir fr for directory, not installed on system, skipping
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = password
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = freepbxuser
Added to globals: AMPDBPASS = 0123456789
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
Added to globals: DIAL_OPTIONS = Ttr
Added to globals: TRUNK_OPTIONS = Tt
Added to globals: TRUNK_RING_TIMER = 300
Added to globals: MIXMON_FORMAT = WAV
Added to globals: REC_POLICY = caller
Added to globals: RINGTIMER_DEFAULT = 60
Added to globals: TRANSFER_CONTEXT = from-internal-xfer
Please update your modules and reload Asterisk by browsing to your server.
Successfully reloaded
no repos specified, using: [commercial,standard] from last GUI settings

Up to date.
Installing: areminder, arimanager, bria, broadcast, callerid, calllimit, certman, cidlookup, conferencespro, contactmanager, cos, cxpanel, digium_phones, endpoint, faxpro, freepbx_ha, hotelwakeup, paging, pagingpro, parkpro, pinsetspro, presencestate, qxact_reports, recording_report, restapi, restapps, setcid, sipstation, sms, sng_mcu, sysadmin, vmnotify, vqplus, webcallback, webrtc, xmpp
Installing areminder...
Found module locally, verifying...Verified. Using Local

Untaring..Done
Module areminder successfully downloaded
Detected Missing Dependency of: sysadmin 2.11.0.50
Downloading Missing Dependency of: sysadmin 2.11.0.50
Found module locally, verifying...Verified. Using Local

Untaring..Done
Module sysadmin successfully downloaded
Installing Missing Dependency of: sysadmin 2.11.0.50
2.7.0 200.shmz65.1.14
Successfully copied LoadLicenseIfExists.php.
mv: cannot stat `/var/lib/asterisk/agi-bin/license-*.zl': No such file or directory
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)

and one thing is non standart - httpd listening 8084 port, edited at /etc/httpd/conf/httpd.conf

Hi guys,

any ideas how to solve the issue?

Best regards
Timmi

So another information:

root      1708  8.5  1.8 307368 35152 pts/1    S+   19:22   0:03                  |               \_ /usr/bin/php -q /var/lib/asterisk/bin/module_admin install sysadmin
root      3113  1.0  0.0 105260   988 pts/1    R+   19:22   0:00                  |                   \_ /bin/netstat -plnt

The installation of sysadmin is calling netstat in a loop. Looks like it is waiting for something.

strace on the PID is showing the follwoing:

pipe2([6, 7], O_CLOEXEC)                = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fe4dd21ea90) = 6953
close(7)                                = 0
fcntl(6, F_SETFD, 0)                    = 0
read(6, "Active Internet connections (onl"..., 8192) = 2113
read(6, "", 8192)                       = 0
close(6)                                = 0
wait4(6953, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6953
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe2([6, 7], O_CLOEXEC)                = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fe4dd21ea90) = 6954
close(7)                                = 0
fcntl(6, F_SETFD, 0)                    = 0
read(6, "Active Internet connections (onl"..., 8192) = 2113
read(6, "", 8192)                       = 0
close(6)                                = 0
wait4(6954, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6954
--- SIGCHLD (Child exited) @ 0 (0) ---

That means the upgrade to 6.12.65.23 is not successful on my server.
Also the following message were displayed during the update. I could exit this via CTRL+C only.
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)

Please help!!

Best regards
Timmi

UPDATE:

This I found in the log while executing upgrade-6.12.65-23.sh

Detected Missing Dependency of: sysadmin 2.11.0.50
Downloading Missing Dependency of: sysadmin 2.11.0.50
Found module locally, verifying...Verified. Using Local

Untaring..Done
Module sysadmin successfully downloaded
Installing Missing Dependency of: sysadmin 2.11.0.50
2.7.0 200.shmz65.1.15
Successfully copied LoadLicenseIfExists.php.
mv: cannot stat `/var/lib/asterisk/agi-bin/license-*.zl': No such file or directory
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)

I’m still looking into this, it’ll just taken a little longer given that we haven’t been able to replicate the issue here.

I may have the issue tracked down and just published System Administration 12.0.9.8. Can you please update to the latest version and let me know if you have any issues?

@GameGamer43

at the moment sysadmin in FreePBX and OS isn’t installed on my machine.

yum sysadmin (2.7.0-201.shmz65.1.16)
is not finishing and in FreePBX I get an error that he could not find the installation script.

Best regards
Timmi

root      8790  0.0  0.1 108436  2008 pts/1    Ss   21:44   0:00                  \_ /bin/bash
root     20881  0.4  3.4 366788 67080 pts/1    S+   21:58   0:01                  |   \_ /usr/bin/python /usr/bin/yum install sysadmin
root     31367  0.0  0.0 106064  1376 pts/1    S+   22:01   0:00                  |       \_ /bin/sh /var/tmp/rpm-tmp.EdxcPY 1
root     32486  9.2  1.8 307368 35156 pts/1    S+   22:01   0:03                  |           \_ /usr/bin/php -q /var/lib/asterisk/bin/module_admin install sysadmin
root      5651  0.0  0.0 107392  1104 pts/1    R+   22:02   0:00                  |               \_ /bin/netstat -plnt