Skip to content

Sish server crashes when transferring big files #254

@manprint

Description

@manprint

Hi AntonioMika, congratulations for the excellent sish tool. He saved me on several occasions.
I am trying to forward a webdav server but when I try to transfer large files (download and upload) (~1GB size) Sish server crashes (deployed with docker and apache in front) without any information in the logs (also tried in debug mode). The webdav server works fine with large files without sish.

The command I use for the server is the following:

docker run -itd --name sish \
	-v $(pwd)/keys:/keys \
	-v $(pwd)/pubkeys:/pubkeys \
	--restart=always \
	-p 2222:2222 \
	-p 4443:4443 \
	-p 8765:80 \
	antoniomika/sish:2.7.0 \
	--ssh-address=:2222 \
	--http-address=:80 \
	--https=true \
	--authentication-keys-directory=/pubkeys \
	--private-keys-directory=/keys \
        --tcp-aliases \
        --bind-random-aliases=false \
	--bind-random-ports=false \
	--bind-random-subdomains=false \
	--authentication-password= \
	--domain=mysishserver.com \
	--idle-connection=true \
	--idle-connection-timeout=360s \
        --ping-client-timeout=360s \
	--cleanup-unauthed-timeout=360s \
        --cleanup-unbound \
	--cleanup-unbound-timeout=360s \
	--admin-console \
	--admin-console-token=my-secret-token \
	--verify-ssl=false

The apache configuration is as follows:

<VirtualHost *:80>

	ServerName mysishserver.com
	ServerAlias *.mysishserver.com

	#RewriteEngine On
	#RewriteCond %{HTTPS} !=on
	#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

	# Websocket Support
	RewriteEngine on
	RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
	RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
	RewriteRule .* ws://172.30.0.72:8765%{REQUEST_URI} [P,QSA,L]

	ProxyPreserveHost On

	ProxyPass        / http://172.30.0.72:8765/
	ProxyPassReverse / http://172.30.0.72:8765/

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

<VirtualHost *:443>

	ServerName mysishserver.com
	ServerAlias *.mysishserver.com

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	SSLEngine on

	SSLCertificateFile      /home/ubuntu/docker_services/sish/ssl-keys/tls.crt
	SSLCertificateKeyFile   /home/ubuntu/docker_services/sish/ssl-keys/tls.key

	ProxyPreserveHost On
	RequestHeader set X-Forwarded-Proto "https"

	# Websocket Support
	RewriteEngine on
	RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
	RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
	RewriteRule .* ws://172.30.0.72:8765%{REQUEST_URI} [P,QSA,L]

	ProxyPass        / http://172.30.0.72:8765/
	ProxyPassReverse / http://172.30.0.72:8765/

	<FilesMatch "\.(cgi|shtml|phtml|php)$">
					SSLOptions +StdEnvVars
	</FilesMatch>
	<Directory /usr/lib/cgi-bin>
					SSLOptions +StdEnvVars
	</Directory>

</VirtualHost>

The connection is started with:

ssh -o 'PubkeyAcceptedKeyTypes +ssh-rsa' -p 2222 -R webdav:80:localhost:80 mysishserver.com

Do I make any errors in the configuration?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions