[APKG Script-Server 1.18.0.1] change terminal scripts to WebUI

Who doesn't love third-party apps? Get together and talk about them here.

Moderator: Lillian.W@AST

User avatar
father.mande
Posts: 1808
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by father.mande »

Hi,
terenceyao wrote: Never mind, I found the solution. XD
I found I need to restart the script_server. :lol:
Hum!, good, but do you have some more detail ?
I don't understand why restarting SC is required ??? I will check, my problem is generally the same, my dev. NAS is also my daily use NAS ... so I have at same time existing environment certainly different of other users.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
terenceyao
Posts: 4
Joined: Sun Aug 07, 2022 12:12 pm

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by terenceyao »

father.mande wrote:Hi,
terenceyao wrote: Never mind, I found the solution. XD
I found I need to restart the script_server. :lol:
Hum!, good, but do you have some more detail ?
I don't understand why restarting SC is required ??? I will check, my problem is generally the same, my dev. NAS is also my daily use NAS ... so I have at same time existing environment certainly different of other users.

Philippe.
My ADM version always keep the latest version.
So the version is 4.1.0.RJD1. And my NAS is AS5304T.

I had this issue of user & password is my first time using script_server.
Not sure why script_server did't not update user & password immediately...
Until I restart the script_server, I can login with new password or new user.

Even now I still need to restart script_server to let new password/user become available.
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by father.mande »

Hi,
terenceyao wrote:
My ADM version always keep the latest version.
So the version is 4.1.0.RJD1. And my NAS is AS5304T.

I had this issue of user & password is my first time using script_server.
Not sure why script_server did't not update user & password immediately...
Until I restart the script_server, I can login with new password or new user.

Even now I still need to restart script_server to let new password/user become available.
Can you verify if problem is not attached to browser cache ... so on script-server login page, try before enter your new user to refresh (CTRL + refresh OR CTRL + F5)
for my information : which browser did you use ?

[EDIT] if you are already login ... use the logoff button on bottom left before trying to change user and password .

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
terenceyao
Posts: 4
Joined: Sun Aug 07, 2022 12:12 pm

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by terenceyao »

father.mande wrote:Hi,
terenceyao wrote:
My ADM version always keep the latest version.
So the version is 4.1.0.RJD1. And my NAS is AS5304T.

I had this issue of user & password is my first time using script_server.
Not sure why script_server did't not update user & password immediately...
Until I restart the script_server, I can login with new password or new user.

Even now I still need to restart script_server to let new password/user become available.
Can you verify if problem is not attached to browser cache ... so on script-server login page, try before enter your new user to refresh (CTRL + refresh OR CTRL + F5)
for my information : which browser did you use ?

[EDIT] if you are already login ... use the logoff button on bottom left before trying to change user and password .

Philippe.
I use Microsoft Edge.
And I tried to use InPrivate mode, it still cannot help me solve this issue.
You can see my video about this issue here:
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by father.mande »

Hi,

Hum! problem is as you write for x86_64 and ADM 4.1
I don't remember for previous ADM ... I have to check

BUT I will post an issue in developer web site and temporary, I propose to change the script ... to force a restart after password change ... (I will run a test A.S.A.P.)

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.7.3] MAJOR UPDATE change terminal scripts to WebUI

Post by father.mande »

Hi,

1 ... I have post a new issue to script-server dev. team
2 ... find attach a temporary solution (force a restart after adding new user / password or changing password)
... so after changing the password, disconnect using the bottom left power button et login with the new credentials.

Please don't run script in parallel at the same time.

HOW-TO
... get the file sc_patch.tgz and put it in /share/public
... open a ssh terminal using root/your_admin_password
cd /usr/local/AppCentral/scriptserver/CONTROL
mv start-stop.sh start-stop.sh.ori
tar xzf /share/Public/sc_patch.tgz

... it's all

tested on AS5002T / ADM 4.0 & AS5202T / ADM 4.1

Please, return result.
sc_patch.tgz
start-stop.sh modified
(6.46 KiB) Downloaded 170 times
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.7.5] change terminal scripts to WebUI

Post by father.mande »

Hi,

New update
... due to Python3 update to 3.10 breaking scriptserver

... you can update to 1.17.5 (in AppCentral soon ... under Asustor review) or recommended for fresh install
... ... APKG download is available (up to AppCentral propose it) in first post of this topic.
... OR apply the patch proposed here : https://forum.asustor.com/viewtopic.php ... 405#p44879 if you don't want to update.

Update integrate ALL COMMIT at 10/17/2022 from Github dev. server ... so new things are in the WiKi
... https://github.com/bugy/script-server/wiki
And some last change as response in "issue" section (if not yet include in the Wiki).

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Script-Server 1.18.0.1] change terminal scripts to WebUI

Post by father.mande »

Hi,

In AppCentral (soon) script-server 1.18.0.1 will be available

Version : 1.18.0-master@f0fc7cf (Git)

Commit added : https://github.com/bugy/script-server/commits/master
... some new function are :
... ... in the wiki (so also using build script interface
... ... some require to change the script.json file to use it (ex. splash screen for each script)

ADM problem :
In some case ... Bash script are launched by script-server without USER and HOME (empty)
to solve this (ONLY if you use USER or HOME in your script)
... force it in Bash script (for ex.)
... change just the launch of the script in "script_path" json file
... 1 add env. : ex. USER=xxx HOME=/share/homes/xxx Path_to_script_wil_be_executed
... 2 use su : ex. su - xxxx -c Path_to_script_wil_be_executed

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Developer's Corner”