Raised This Month: $32 Target: $400
 8% 

[EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system natives


Post New Thread Reply   
 
Thread Tools Display Modes
dordnung
Veteran Member
Join Date: Apr 2010
Old 05-29-2018 , 12:29   Re: [EXTENSION] System2 - Easy to use HTTP/FTP Request API and useful system natives
Reply With Quote #91

Update to System2 v3.2


- Added ability to use a proxy for requests (Pull Request by Kyle)

See System2Request.SetProxy and System2Request.SetProxyAuthentication methods for more information

- Updated to the latest OpenSSL and libcurl version
__________________
dordnung is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 06-10-2018 , 22:50   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #92

I tried compressing files with a plugin I was coding and it didn't work.

I used the test plugin and got this error:
Code:
L 06/10/2018 - 22:39:11: [SM] Exception reported: FAILURE: 7-ZIP should be available. Expected true, but was false
L 06/10/2018 - 22:39:11: [SM] Blaming: system2_test.smx
L 06/10/2018 - 22:39:11: [SM] Call stack trace:
L 06/10/2018 - 22:39:11: [SM]   [0] ThrowError
L 06/10/2018 - 22:39:11: [SM]   [1] Line 1111, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::assertTrue
L 06/10/2018 - 22:39:11: [SM]   [2] Line 188, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::PerformTests
L 06/10/2018 - 22:39:11: [SM]   [3] Line 123, C:\Users\grant\Documents\SourceMod Projects\projects\Any Game\My Plugins\BZ2 Compression\system2_test.sp::OnTest
I entered the command that is used for the compression itself into my command line:
Code:
"/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1
This is what I got after entering the command:
Code:
/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/amd64/7z)
I ensured that the 7Zip executable has the permissions 744. Running Debian 8 btw. Any help is appreciated!

Last edited by ThatKidWhoGames; 06-10-2018 at 22:53.
ThatKidWhoGames is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 06-11-2018 , 07:33   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #93

Hey,

seems that libstdc++ is not installed on your machine. Can you install packages? If yes, try to install libstdc++ with "sudo apt-get install libstdc++6".

If not (or if it still not works), can you try whether the 32-Bit version works, as this does not require libstdc++.
So entering: ""/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/i386/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1"

P.S.: I've added an example on the main post (at the bottom) on how to check whether the 32-bit executable has to be used.
__________________

Last edited by dordnung; 06-11-2018 at 07:53.
dordnung is offline
Balefire
Junior Member
Join Date: Sep 2010
Old 06-12-2018 , 18:58   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #94

Do you think it is possible to subsitute the curl extension used in this plugin:
https://forums.alliedmods.net/showth...TP+Prefetch%29
with your extension?

Trying to get the plugin to work again ...
Balefire is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 06-12-2018 , 20:19   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #95

I've replaced it and sent you a PM
__________________
dordnung is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 06-13-2018 , 07:49   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #96

Quote:
Originally Posted by dordnung View Post
Hey,

seems that libstdc++ is not installed on your machine. Can you install packages? If yes, try to install libstdc++ with "sudo apt-get install libstdc++6".

If not (or if it still not works), can you try whether the 32-Bit version works, as this does not require libstdc++.
So entering: ""/home/tf2server/serverfiles/tf/addons/sourcemod/data/system2/linux/i386/7z" a -tbzip2 "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp.bz2" "/home/tf2server/serverfiles/tf/custom/server/maps/vsh_crashbox_b4.bsp" -mmt -mx9 2>&1"

P.S.: I've added an example on the main post (at the bottom) on how to check whether the 32-bit executable has to be used.
Hey,

Thank you for your response! I will try this once I can.
ThatKidWhoGames is offline
T1MOXA
Member
Join Date: Aug 2016
Old 07-23-2018 , 06:29   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #97

Оn one of the servers there was a problem.

Code:
"/csgo/addons/sourcemod/data/system2/linux/amd64/7z" a -t7z "/csgo/demos/awp_lego_2.7z" "/csgo/demos/awp_lego_2.dem" -mmt -mx9

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz (306C3),ASM,AES-NI)

Scanning the drive:
1 file, 60745454 bytes (58 MiB)

Creating archive: /csgo/demos/awp_lego_2.7z

Items to compress: 1



ERROR: Can't allocate required memory!
Maybe you know what the problem is ?
T1MOXA is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 07-23-2018 , 07:18   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #98

Hey,

thanks for reporting this.
Can you please tell me what OS you are running on? And is it 32-bit oder 64-bit ?
And can you send me the awp_lego_2.dem file?

Thanks
__________________
dordnung is offline
T1MOXA
Member
Join Date: Aug 2016
Old 07-23-2018 , 09:45   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #99

Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-116-generic x86_64)
Unfortunately, the file is no longer present (it is deleted) but the problem is relevant for all files of this size.
HTML Code:
"/csgo/addons/sourcemod/data/system2/linux/amd64/7z" a -t7z "/home/servers/1.7z" "/home/servers/1" -mmt -mx9        
7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,2 CPUs Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz (306C3),ASM,AES-NI)

Scanning the drive:
1 file, 52428800 bytes (50 MiB)

Creating archive: /home/servers/1.7z

Items to compress: 1



ERROR: Can't allocate required memory!
HTML Code:
"/csgo/addons/sourcemod/data/system2/linux/amd64/7z" a -t7z "/home/servers/2.7z" "/home/servers/1" -mmt -mx9

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,2 CPUs Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz (306C3),ASM,AES-NI)

Open archive: /home/servers/2.7z
--
Path = /home/servers/2.7z
Type = 7z
Physical Size = 1048740
Headers Size = 106
Method = LZMA2:20
Solid = -
Blocks = 1

Scanning the drive:
1 file, 52428800 bytes (50 MiB)

Updating archive: /home/servers/2.7z

Items to compress: 1



ERROR: Can't allocate required memory!
Test file:
https://files.fm/u/43xe4wu2

I suspect that the problem is in RAM, however SWP should suffice...
Code:
free -m
              total        used        free      shared  buff/cache   available
Mem:            958         793          34           1         131          98
Swap:           511         279         232

Last edited by T1MOXA; 07-23-2018 at 09:52.
T1MOXA is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 07-24-2018 , 07:49   Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
Reply With Quote #100

Oh okay, you really have not much RAM (free) (apropos I think 1GB RAM is not enough for a game server).

I don't know exactly how 7-ZIP is working with the Swap, but i think your RAM is definitly the problem here (as the error already say).

Unfortunately 7-ZIP is not created by me, so i can't change that.

Do you use a selfmade plugin or an existing one? Because one idea would be do not to use highest compression (-mx9 --> -mx1)
__________________

Last edited by dordnung; 07-24-2018 at 08:11.
dordnung is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode