GMS Auto Trade V2 is here!

I’m testing V1.2 now. I’ve followed your setup instructions completely. However, when I start the app, nothing really happens. Any idea what I might be missing?

For $SERVER_IP, I put my IPv4 address (from ipconfig /all in Command prompt). For $SERVER_HOST, I put the result from hostname in Command Prompt.

I am only using free accounts (finviz, alphavantage, alpaca) and I pasted my credentials in the first line of each respective file (without any spaces).

After waiting for some time, the windows of a_sync_freq.bat and a_sync_apis.bat show Failed to connect to MySQL: Too many connections.

Edit your config for nginx

phpCgiServers=25:
#worker_processes auto;
#worker_rlimit_nofile 100000;

events {
## For a live site, uncomment:
#worker_connections 8096;
}

http {

	server_tokens		off;
sendfile		on;
tcp_nopush		on;
tcp_nodelay		on;
ssi			off;
server_names_hash_bucket_size  64;


## Timeouts ##
##############

client_body_timeout	5;
client_header_timeout	5;
keepalive_timeout	25 25;
send_timeout		15s;
resolver_timeout	3s;

# Timeout period for connection with FastCGI-server. It should be noted that this value can't exceed 75 seconds. 
fastcgi_connect_timeout 5s;

# Amount of time for upstream to wait for a fastcgi process to send data. 
# Change this directive if you have long running fastcgi processes that do not produce output until they have finished processing. 
# If you are seeing an upstream timed out error in the error log, then increase this parameter to something more appropriate. 
fastcgi_read_timeout	40s;

# Request timeout to the server. The timeout is calculated between two write operations, not for the whole request. 
# If no data have been written during this period then serve closes the connection.
fastcgi_send_timeout	15s;


## Buffers ##
#############

fastcgi_buffers			8 32k;
fastcgi_buffer_size		32k;
#fastcgi_busy_buffers_size	256k;
#fastcgi_temp_file_write_size	256k;

open_file_cache			off;

# php max upload limit cannot be larger than this       
client_max_body_size		33m;	

####client_body_buffer_size	1K;
client_header_buffer_size	1k;
large_client_header_buffers	2 1k;	
types_hash_max_size		2048;




include nginx.mimetypes.conf;
default_type text/html;




## Logging ##
#############

access_log	"c:/php/log/nginx_access.log";
error_log	"c:/php/log/nginx_error.log" warn;	#debug or warn
log_not_found	on;	#enables or disables messages in error_log about files not found on disk. 
rewrite_log	off;

fastcgi_intercept_errors off;	# Do Not Change (off) !


gzip  off;

index  index.php index.htm index.html;

server {


	# NEVER ALLOW PUBLIC ACCESS TO THIS SERVER !!!
	# Instead, create projects using WinNMP Manager, and allow public access only to those projects!
	# How to allow access from LAN and Internet to your local project:
	# http://WinNMP.wtriple.com/howtos.php#How-to-allow-access-from-LAN-and-Internet-to-your-local-project

	listen		127.0.0.1:80	default_server;		# Do Not Change ! Security Risk !
	#listen		[::1]:80	ipv6only=on;		# Do Not Change ! Security Risk !
	server_name	localhost;				# Do Not Change ! Security Risk !

	# This directive is modified automatically by WinNMP.exe for portability.
	root		"c:/php/www";
	autoindex on;
	
	allow		127.0.0.1;	# Do Not Change ! Security Risk !
	allow		::1;		# Do Not Change ! Security Risk !
	allow		all;		# Do Not Change ! Security Risk !

	## deny access to .htaccess files, if Apache's document root concurs with nginx's one
	location ~ /\.ht {
		deny  all;
	}

	location = /favicon.ico {
			log_not_found off; 
	}
	location = /robots.txt {
			log_not_found off; 
	}


	## Tools are now served from include/tools/
	location ~ ^/tools/.*\.php$ {					
		root "c:/php/include";
		try_files $uri =404; 
		include		nginx.fastcgi.conf;
		fastcgi_pass	php_farm;
		allow		127.0.0.1;		# Do Not Change ! Security Risk !
		allow		::1;			# Do Not Change ! Security Risk !
		allow		all;			# Do Not Change ! Security Risk !
	}
	location ~ ^/tools/ {
		root "c:/php/include";
		allow		127.0.0.1;		# Do Not Change ! Security Risk !
		allow		::1;			# Do Not Change ! Security Risk !
		allow		all;			# Do Not Change ! Security Risk !
	}


	## How to add phpMyAdmin 
	## Copy phpMyAdmin files to c:/php/include/phpMyAdmin then uncomment:

	#location ~ ^/phpMyAdmin/.*\.php$ {
	#	root "c:/php/include";
	#	try_files $uri =404; 
	#	include         nginx.fastcgi.conf;
	#	fastcgi_pass    php_farm;
	#	allow           127.0.0.1;  
	#	allow           ::1;
	#	deny            all;
	#}       
	#location ~ ^/phpMyAdmin/ {
	#	root "c:/php/include";
	#}

	## Notice that the root directive lacks /phpMyAdmin because Nginx adds the URL path /phpMyAdmin to the root path, so the resulting directory is c:/php/include/phpMyAdmin
	

	## PHP for localhost ##
	#######################

	location ~ \.php$ {
		try_files $uri =404; 
		include		nginx.fastcgi.conf;
		include		nginx.redis.conf;
		fastcgi_pass	php_farm;
		allow		127.0.0.1;		# Do Not Change ! Security Risk !
		allow		::1;			# Do Not Change ! Security Risk !
		allow		all;			# Do Not Change ! Security Risk !
        }

	# How to allow access from LAN and Internet to your local project:
	# http://WinNMP.wtriple.com/howtos.php#How-to-allow-access-from-LAN-and-Internet-to-your-local-project



}

	

include domains.d/*.conf;


include nginx.phpfarm.conf;

}

Okay, I pasted your code to bin/Ngingx/conf/nginx.conf. However, I’m still getting the same results when starting the app (i.e. Nginx Not Running).

image

I’ve also pasted it into conf/nginx.conf but still the same results (i.e. Nginx Not Running).

image

comment out line 97 in your old nginx config

This line was commented out before # listen 192.168.1.2:80 default_server; # Do Not Change ! Security Risk !

are you using an ssd?

Yes, I’m using an SSD.

ok i have some updates coming out soon just stay tuned. i did notice when i had updated some things to be used in php 7.x it broke some old modules ive been patching but will be some time before the next update im thinking mid july, ill have some more pre releases out soon if anyones intrested.

1 Like

just a fast update ill be putting a patch out in a week or so…

Just an update, unfortunately i well be discontinuing the release

What happened? Was there any blocker?

Just dont have the time now, since my parents are getting divorced and i need a steady income. im looking into other work…

just an update they no longer are looking at getting divorced… :slight_smile:

now we have a 2nd home in Florida…

id like to re-do this ( make another release at some point) anyone interested?
i have a little extra time…

1 Like

yes, php version for Mac

id like to do a open mic night @hitoshi is this ok ?