Page 1 of 1

CSWeb hosting on google cloud (google app engine)

Posted: September 19th, 2018, 7:12 am
by chalasa
Is it possible to host CSWeb on google cloud (google app engine)?

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

Posted: September 19th, 2018, 7:38 am
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

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

Posted: October 5th, 2018, 10:14 am
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

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

Posted: October 5th, 2018, 11:07 am
by josh
Quel est le message d'erreur dans le fichier sync.log sur l'appareil d'ou vous avez effectuez le deploiment?

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

Posted: October 16th, 2018, 7:55 am
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.

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

Posted: October 16th, 2018, 9:48 am
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/

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

Posted: October 17th, 2018, 12:09 pm
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

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

Posted: October 17th, 2018, 8:16 pm
by josh
Y'a t-il un message d'erreur dans le log de erreur d'Apache?