CSWeb hosting on google cloud (google app engine)

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
chalasa
Posts: 18
Joined: November 25th, 2014, 9:37 am

CSWeb hosting on google cloud (google app engine)

Post by chalasa »

Is it possible to host CSWeb on google cloud (google app engine)?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: CSWeb hosting on google cloud (google app engine)

Post by Gregory Martin »

CSWeb runs on PHP/MySQL, so theoretically that should be possible, though I don't know if it's been tried. (We've definitely setup CSWeb on an AWS instance.) You could follow these instructions for setting up the software to run CSWeb:

https://cloud.google.com/php/getting-st ... with-mysql
ERIC
Posts: 3
Joined: September 28th, 2018, 10:18 am

Re: CSWeb hosting on google cloud (google app engine)

Post by ERIC »

Bonjour à tous,
j'ai configuré CsWeb sur mon serveur cloud mais je ne parviens pas à déployer mon application à l'aide de l'outil de déploiement de CSPRO.
Le déploiement marche en local mais échoue avec le cloud avec un message que :
1-le fichier .pen existe déjà dans le dossier des fichiers temporaires.
2-Dans le fichier api.log, on a :
CSPro API.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /" (uncaught exception) at /storage/ssd3/595/3215595/public_html/csweb/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /storage/ssd3/595/3215595/public_html/csweb/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/\". at /storage/ssd3/595/3215595/public_html/csweb/vendor/symfony/routing/Matcher/UrlMatcher.php:98)"}

Merci de m'aider
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CSWeb hosting on google cloud (google app engine)

Post by josh »

Quel est le message d'erreur dans le fichier sync.log sur l'appareil d'ou vous avez effectuez le deploiment?
ERIC
Posts: 3
Joined: September 28th, 2018, 10:18 am

Re: CSWeb hosting on google cloud (google app engine)

Post by ERIC »

Bonjour cher Josh,
voici le message du sync log sur l'appareil de déploiement (windows):
16/10/2018 11:36:59.859 INFO: Connect to server http://nongdoeric.000webhostapp.com:443/csweb7.1.3/api/
16/10/2018 11:36:59.859 INFO: Set listener
16/10/2018 11:36:59.859 INFO: On start
16/10/2018 11:36:59.859 INFO: Call connect
16/10/2018 11:37:12.921 ERROR: Error from server:
16/10/2018 11:37:12.921 ERROR: <html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>openresty</center>
</body>
</html>

Lorsque je place manuellement une application dans le dossier csweb/files/apps et que j'ajoute cette application depuis CSEntry, le sync log de la tablette donne:
INFO: AndroidHttpConnection::methodAndroidHttpConnectionRequest completed
16/10/2018 11:37:46.220 INFO: AndroidHttpConnection: no exception copying headers
16/10/2018 11:37:46.220 INFO: AndroidHttpConnection::doRequest completed with code 200
16/10/2018 11:37:46.220 INFO: Found 0 application packages

Merci pour votre aide.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CSWeb hosting on google cloud (google app engine)

Post by josh »

Selon le message dans le sync.log il semble etre un probleme de http/https. Il faudra essayer l'url avec https au lieu de http: https://nongdoeric.000webhostapp.com/csweb7.1.3/api/
ERIC
Posts: 3
Joined: September 28th, 2018, 10:18 am

Re: CSWeb hosting on google cloud (google app engine)

Post by ERIC »

Merci bien cher Josh.
J'ai repris comme indiqué avec https mais c'est le statu quo dans le sync log.
INFO: Connect to server https://nongdoeric.000webhostapp.com:44 ... 7.1.3/api/
INFO: Set listener
INFO: On start
Call connect
Error from server:
ERROR:
ERROR: Error connecting to server: Error 500

Merci pour l'intérêt que vous accordez à mes essais de csweb7.1
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CSWeb hosting on google cloud (google app engine)

Post by josh »

Y'a t-il un message d'erreur dans le log de erreur d'Apache?
Post Reply