[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

agadoc
Posts: 13
youtube meble na wymiar Warszawa
Joined: Sun Jan 07, 2018 1:56 am

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

Post by agadoc »

Hi,
this is my complete output, there are no more logs in script server.

The version of script server is the last from AppCentral, 1.17.0.2
Apache server is the last version 2.4.43 r9

i have some others errors when i try to install SC_for_test.tgz

Code: Select all

sh: (2):: unknown operand
mkdir: can't create directory '/share/test//script_server': No such file or directory
cp: can't create '/share/test//script_server/bash_formatting.json': No such file or directory
cp: can't create '/share/test//script_server/bash_formatting.py': No such file or directory
cp: can't create '/share/test//script_server/colortest.json': No such file or directory
cp: can't create '/share/test//script_server/colortest.sh': No such file or directory
cp: can't create '/share/test//script_server/new_folder.conf': No such file or directory
cp: can't create '/share/test//script_server/test_read.json': No such file or directory
cp: can't create '/share/test//script_server/test_read.sh': No such file or directory
ADD new user with name provide using default password asusfr1
setting new password to user Errno (2): No such file!
/usr/builtin/bin/htpasswd: username contains illegal character ':'
User and interactive or batch password created
Done
ADD definition in folder.conf
Errno (2): No such file! already exist in /usr/local/AppCentral/scriptserver/my_data/folder.conf
Create link in script_server
Done
ALL is now done ... now cleaning temp files


i want to keep your version of Domoticz, i'm really not fan of App using Docker service and many people thinks like me.
For me, Docker and other VM's are a good test environment, but not a stable productivity environment.

Please continue the development of your owns App ^^

i don't understand why the installation of the .tgz are not working..

Sorry for my english ^^
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,

Thanks, I have understand the problem, please wait, I will run some tests ... (but I have limited free time ... so be patient I will do it as soon as possible).

Sorry for the inconvenience.

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] change console scripts to WebUI

Post by father.mande »

Hi,

Basically, I have done an error in SC_for_test ... by using my development version (so using /share/test (my test shared resource)) in place of the usable version using /share/Public present on all system.

Apologize, I will rewrite the correct one and test it before delivery, please be patient.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
agadoc
Posts: 13
Joined: Sun Jan 07, 2018 1:56 am

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

Post by agadoc »

Hi,

no problem ;)

take the time you need, i'm not hurry ^^
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,

Sorry for the delay, I fall in some problem, because I use an ARM32 NAS for test and unfortunately a bug exist on this platform with Web Server APKG / Apache and tools : htpasswd (use to create password file for Apache) is broken (I don't identify this immediately ... so ... error and delay).

I have open a ticket (because it's critical) and have to move to another NAS, so be patient.

I will add some more tests do don't fall in the same error you had ... I will post here a file to test, before I create a new version for AppCentraL.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
agadoc
Posts: 13
Joined: Sun Jan 07, 2018 1:56 am

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

Post by agadoc »

Hi,

no problem for the delay ;)

i understand it take time to find the problem.

i'm glad it helps to identify a bug ^^
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,

New version available : https://forum.asustor.com/viewtopic.php?f=42&t=12717 with new SC_for_test.tgz (corrected)

Advanced delivery before Asustor validate for AppCentral

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
agadoc
Posts: 13
Joined: Sun Jan 07, 2018 1:56 am

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

Post by agadoc »

Hi, thx for you for being quick :)

But i've another problem :/

script server v1.17.1
your new SC_for_test.tgz
2022-03-09 18:15:40,067 [script_server.execution_service.INFO] Calling script #10: /volume1/Backup/SC_for_test.tgz /share/Backup/SC_for_test.tgz
2022-03-09 18:15:40,084 [web_server.ERROR] Error while calling the script
Traceback (most recent call last):
File "src/web/server.py", line 398, in post
user)
File "src/execution/execution_service.py", line 52, in start_script
executor.start()
File "src/execution/executor.py", line 98, in start
process_wrapper.start()
File "src/execution/process_base.py", line 29, in start
self.start_execution(self.command, self.working_directory)
File "src/execution/process_pty.py", line 48, in start_execution
env=env_variables)
File "/usr/local/AppCentral/python3/lib/python3.7/subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "/usr/local/AppCentral/python3/lib/python3.7/subprocess.py", line 1499, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/volume1/Backup/SC_for_test.tgz'
i think it will be difficult ^^
User avatar
father.mande
Posts: 1808
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,

Please can you provide the list of command you used ?

I have tested on different NAS, I will check, but I never have this error ?

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
agadoc
Posts: 13
Joined: Sun Jan 07, 2018 1:56 am

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

Post by agadoc »

i don't have in this version :
SC_Admin_Folder > Create_new_folder_from_tar_gz_file

it's normal ?
Post Reply

Return to “Developer's Corner”