Jeffrey Scott Flesher Gmail
2016-09-28 04:15:34 UTC
I was using an Ubuntu 12 VPS, and just switched to an Archlinux VPS,
using the Repo to install all dependencies I get the latest version of
3.3.6-2, it works fine on my local install with the same versions, for
this example I will use hello.c.
I am running the default wt config, I only have to change the Proxy
setting since this runs behind haproxy when deployed, but not here, its
on port 8080.
On local machine:
 ./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ww --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
[2016-Sep-27 12:11:32.334780] 9617 - [info] "config: reading Wt config
file: /etc/wt_config.xml (location = './hellow.wt')"
[2016-Sep-27 12:11:32.336547] 9617 - [info] "WServer/wthttp:
initializing built-in wthttpd"
[2016-Sep-27 12:11:32.337089] 9617 - [info] "wthttp: started server:
http://0.0.0.0:8080"
[2016-Sep-27 12:11:35.872333] 9617 - [info] "Wt: session created
(#sessions = 1)"
[2016-Sep-27 12:11:35.872624] 9617 [/ww wt-8080QOuJ37gqq] [info]
"WEnvironment: UserAgent: Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116
Safari/537.36"
127.0.0.1 - - [2016-Sep-27 12:11:35.873931] "GET /ww/en/blue/science
HTTP/1.1" 200 2241
[2016-Sep-27 12:11:35.873983] 9617 - [info] "WebRequest: took 1.828ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.899462] "GET /ww?wtd=wt-
8080QOuJ37gqq&request=style&page=1 HTTP/1.1" 200 91
[2016-Sep-27 12:11:35.899496] 9617 - [info] "WebRequest: took 15.871ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.902364] "GET /resources/webkit-
transitions.css HTTP/1.1" 200 5947
127.0.0.1 - - [2016-Sep-27 12:11:35.902373] "GET
/resources/themes/default/wt.css HTTP/1.1" 200 18313
127.0.0.1 - - [2016-Sep-27 12:11:35.907428] "GET /ww?wtd=wt-
8080QOuJ37gqq&sid=-1729463459&webGL=true&scrW=1920&scrH=1200&tz=-
420&htmlHistory=true&deployPath=%2Fww&request=script&rand=25354452
HTTP/1.1" 200 36648
[2016-Sep-27 12:11:35.907471] 9617 - [info] "WebRequest: took 8.859ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.983066] "POST /ww?wtd=wt-
8080QOuJ37gqq HTTP/1.1" 200 51
[2016-Sep-27 12:11:35.983106] 9617 - [info] "WebRequest: took 0.26ms"
On server:
./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ww --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
[2016-Sep-27 15:05:06.893728] 1458 - [info] "config: reading Wt config
file: /etc/wt_config.xml (location = './hellow.wt')"
[2016-Sep-27 15:05:06.897077] 1458 - [info] "WServer/wthttp:
initializing built-in wthttpd"
[2016-Sep-27 15:05:06.898735] 1458 - [info] "wthttp: started server:
http://0.0.0.0:8080"
68.67.107.x - - [2016-Sep-27 15:05:15.461218] "GET / HTTP/1.1" 404 85
Removing the ww after --deploy-path=/ below, fix the problem on the
Server
./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
Why is --deploy-path=/ww causing a problem?
I searched for others with this problem, and did not find any.
Thanks
using the Repo to install all dependencies I get the latest version of
3.3.6-2, it works fine on my local install with the same versions, for
this example I will use hello.c.
I am running the default wt config, I only have to change the Proxy
setting since this runs behind haproxy when deployed, but not here, its
on port 8080.
On local machine:
 ./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ww --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
[2016-Sep-27 12:11:32.334780] 9617 - [info] "config: reading Wt config
file: /etc/wt_config.xml (location = './hellow.wt')"
[2016-Sep-27 12:11:32.336547] 9617 - [info] "WServer/wthttp:
initializing built-in wthttpd"
[2016-Sep-27 12:11:32.337089] 9617 - [info] "wthttp: started server:
http://0.0.0.0:8080"
[2016-Sep-27 12:11:35.872333] 9617 - [info] "Wt: session created
(#sessions = 1)"
[2016-Sep-27 12:11:35.872624] 9617 [/ww wt-8080QOuJ37gqq] [info]
"WEnvironment: UserAgent: Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116
Safari/537.36"
127.0.0.1 - - [2016-Sep-27 12:11:35.873931] "GET /ww/en/blue/science
HTTP/1.1" 200 2241
[2016-Sep-27 12:11:35.873983] 9617 - [info] "WebRequest: took 1.828ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.899462] "GET /ww?wtd=wt-
8080QOuJ37gqq&request=style&page=1 HTTP/1.1" 200 91
[2016-Sep-27 12:11:35.899496] 9617 - [info] "WebRequest: took 15.871ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.902364] "GET /resources/webkit-
transitions.css HTTP/1.1" 200 5947
127.0.0.1 - - [2016-Sep-27 12:11:35.902373] "GET
/resources/themes/default/wt.css HTTP/1.1" 200 18313
127.0.0.1 - - [2016-Sep-27 12:11:35.907428] "GET /ww?wtd=wt-
8080QOuJ37gqq&sid=-1729463459&webGL=true&scrW=1920&scrH=1200&tz=-
420&htmlHistory=true&deployPath=%2Fww&request=script&rand=25354452
HTTP/1.1" 200 36648
[2016-Sep-27 12:11:35.907471] 9617 - [info] "WebRequest: took 8.859ms"
127.0.0.1 - - [2016-Sep-27 12:11:35.983066] "POST /ww?wtd=wt-
8080QOuJ37gqq HTTP/1.1" 200 51
[2016-Sep-27 12:11:35.983106] 9617 - [info] "WebRequest: took 0.26ms"
On server:
./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ww --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
[2016-Sep-27 15:05:06.893728] 1458 - [info] "config: reading Wt config
file: /etc/wt_config.xml (location = './hellow.wt')"
[2016-Sep-27 15:05:06.897077] 1458 - [info] "WServer/wthttp:
initializing built-in wthttpd"
[2016-Sep-27 15:05:06.898735] 1458 - [info] "wthttp: started server:
http://0.0.0.0:8080"
68.67.107.x - - [2016-Sep-27 15:05:15.461218] "GET / HTTP/1.1" 404 85
Removing the ww after --deploy-path=/ below, fix the problem on the
Server
./hellow.wt --docroot="./doc_root" --approot="./app_root" --gdb --
deploy-path=/ --http-address=0.0.0.0 --session-id-prefix=wt-8080 --
http-port=8080
Why is --deploy-path=/ww causing a problem?
I searched for others with this problem, and did not find any.
Thanks