Date   

Re: special character in db password

Daniel Mikusa
 

On Wed, Sep 30, 2015 at 5:04 PM, Naga Rakesh <nagarakesh4(a)gmail.com> wrote:

It was a user-provided service instance.

Yes, thanks, I was able to figure out that i didn't do a manual URL
encoding and this seems to be working, Thanks,

I have a question now, does this mean the service instance gets connected
to a database based only on the URI? Can we change this approach in our
custom code?
How you interpret service data is entirely up to your application. CF just
provides that information for you via VCAP_SERVICES.

If you use a library to help read service information, which is common for
Java apps, then you'd want to look at how that particular library reads
VCAP_SERVICES. Spring Cloud Connectors does look at the URL, but I don't
believe that's the whole story. I can't recall of the top of my head
though. If you're using that library and curious, you might want to look
closer at the code and see exactly what it's doing.

Dan




On Wed, Sep 30, 2015 at 5:34 AM, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

On Tue, Sep 29, 2015 at 11:15 PM, Naga Rakesh <nagarakesh4(a)gmail.com>
wrote:

Hello,

I am facing an issue while bounding app to a service instance. The
service instance points to a database which has a '@' (at symbol) in its
password (example : abc(a)def). When I bind this service instance to an
existing app, the app throws up the following error when trying to access
the data.
How did you create this service instance? Is it from a service broker?
or is it a user provided service?



*OUT java.net.UnknownHostException: null: unknown error*
*at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method).*

The sample URI in the env formed was "mysql://username:abc(a)def@
1.1.1.1:3306/dbname", as you can see the password was having a '@'
character in it. I believe how it works is it parses the URI as
*drivername://username:password(a)hostname:port/dbname* and in this case
as the password contains @ it is unable to parse the hostname correctly.
That's because the URL is not valid. Your "@" in the password should be
url encoded (the username and password sections should both be urlencoded,
the "@" is just the only character that would change from being
urlencoded).

If you're passing this URL through a user provided service then you need
to manually urlencode it. If you're using a service broker, then that
sounds like a bug with the broker.

Dan


[abacus] Securing REST endpoints using OAuth bearer access token

Saravanakumar A. Srinivasan
 

I am working on implementing (see Github commit at [1] for more details) an Express middleware to authenticate incoming requests using OAuth bearer access token. We want to make sure our implementation follows the OAuth 2.0 Authorization Framework specification[2] when processing client requests.

While reading the specification I came across a section[3] where the spec lists error codes to use when we get an invalid request. In there, the invalid_request error code seems to suggest that we need to validate required request parameters for a particular request before we authenticate the user and return HTTP response code 400 with appropriate error code and error message. It also mentions that we need to return HTTP response code 401, when a request does not contain any authentication information. So it sounds odd for me to validate the request parameters before we validate the authentication of the request. 

Any thoughts? 


[1] https://github.com/cloudfoundry-incubator/cf-abacus/commit/cbadf4f287dd6930321b6332a54f388fb51e2524

Thanks,
Saravanakumar Srinivasan (Assk),

Bay Area Lab, 1001, E Hillsdale Blvd, Ste 400, Foster City, CA - 94404.
E-mail: sasrin@...
Phone: 650 645 8251 (T/L 367-8251)


Re: cloud_controller_ng performance degrades slowly over time

Jeffrey Pak
 

We don't see this degradation on any of our environments. We typically deploy at least every two weeks, so it's possible none of our environments are up long enough to exhibit this behavior.

Do you notice this for other endpoints that exercise the CloudController's UAA client (for example: other Organization user types and/or Space users)? Do you see slowdown for any endpoints that do not hit UAA?


Re: special character in db password

Naga Rakesh
 

It was a user-provided service instance.

Yes, thanks, I was able to figure out that i didn't do a manual URL
encoding and this seems to be working, Thanks,

I have a question now, does this mean the service instance gets connected
to a database based only on the URI? Can we change this approach in our
custom code?

On Wed, Sep 30, 2015 at 5:34 AM, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

On Tue, Sep 29, 2015 at 11:15 PM, Naga Rakesh <nagarakesh4(a)gmail.com>
wrote:

Hello,

I am facing an issue while bounding app to a service instance. The
service instance points to a database which has a '@' (at symbol) in its
password (example : abc(a)def). When I bind this service instance to an
existing app, the app throws up the following error when trying to access
the data.
How did you create this service instance? Is it from a service broker?
or is it a user provided service?



*OUT java.net.UnknownHostException: null: unknown error*
*at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method).*

The sample URI in the env formed was "mysql://username:abc(a)def@
1.1.1.1:3306/dbname", as you can see the password was having a '@'
character in it. I believe how it works is it parses the URI as
*drivername://username:password(a)hostname:port/dbname* and in this case
as the password contains @ it is unable to parse the hostname correctly.
That's because the URL is not valid. Your "@" in the password should be
url encoded (the username and password sections should both be urlencoded,
the "@" is just the only character that would change from being
urlencoded).

If you're passing this URL through a user provided service then you need
to manually urlencode it. If you're using a service broker, then that
sounds like a bug with the broker.

Dan


[abacus] Data structures for temporal usage windows

Jean-Sebastien Delfino
 

Hi Ben,

Following up on our discussion of some of the data structures we can use to
represent our various time windows:
(some background in Github #33 [1] and I've copied the latest Github
comment below as well)

What you're proposing looks pretty good to me. I like your idea of renaming
this array 'windows', and grouping the usage quantity and the related cost,
charge, summary etc together.

This makes clear that the array is about windowing (chopping our stream of
usage into finite temporal windows / buckets), and that 'windows' array is
already contained under a 'usage' object (or 'accumulated_usage',
'aggregated_usage' depending on which usage processing step we're at) so
IMO there's no need to repeat 'usage' again here.

BTW looking at this again triggered another idea about that array, but I
need to think a bit more about it before proposing another minor change on
top of what you have here. Will post again later on that topic.

[1] https://github.com/cloudfoundry-incubator/cf-abacus/issues/33

-- Jean-Sebastien

Benjamin Scheng wrote:

In terms of following this design with accumulator and aggregator, it was
changing the quantity to a 7-length array.

When we get to rate, instead of making an equivalent 7-length array for
costs. It'd be better to keep all the values associated with that quantity
in one object(similar to the current and previous quantities in
accumulator). Since it wouldn't make sense to just call it quantity despite
having cost. Here's what the structure would most likely look like in terms
of aggregated_usage:

{ aggregated_usage: [ { metric: 'memory', windows: [{ cost: 0, quantity:
0 }, { cost: 0, quantity: 0 }, { cost: 1, quantity: 1 }, { cost: 24,
quantity: 24 }, { cost: 720, quantity: 720 }, { cost: 8640, quantity: 8640
}, { cost: 86400, quantity: 86400 }] } ] }

'windows' would be holding the new quantity and cost in a 7-length array.
Since charge & summary will also be added to this object during the report,
the name ought to accommodate. At the risk of sounding redundant, would
usage or usage_amount work here better, or is there other terms that would
make more sense?

Thoughts? Suggestions?


Re: [abacus] Adding metering resource

Jean-Sebastien Delfino
 

Hey Piotr,

We're currently registering our sample resource configs in
lib/config/resource/src/index.js [1]. To register yours you can just add
one line like this:

'<your resource_id>': require('<your resource config script>'),

... to that script [1] along with the other sample configs.

Your config doesn't need to be in the resources dir, anywhere on the
node.js require() path should work.

This rudimentary registration mechanism is temporary until we add a
resource config management API to allow service and runtime providers to
register their resource configs externally without having to fiddle with
the Abacus scripts. I believe the plan is to have that API very soon, and
that work is tracked under user story #101019374 [2].

[1]
https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/lib/config/resource/src/index.js#L17
[2] https://www.pivotaltracker.com/story/show/101019374

HTH

-- Jean-Sebastien


On Wed, Sep 30, 2015 at 11:56 AM, Piotr Przybylski <piotrp(a)us.ibm.com>
wrote:

Hi,
I would like to add a new resource, similar to linux-container. What is a
correct way to register that resource ? The resource files are located in
cf-abacus/lib/config/resource/src/resources,
however adding resource file there does not add new resource_id to
resource enumerations (e.g. in cf-abacus/lib/config/resource/src/index.js).

Thank you

Piotr


Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)

CF Runtime
 

The "instances" attribute from the api will give the current number of
instances that should be running. If a user has recently changed this via
the API, the actual number of running instances may be different.

Using the cf cli by shelling out from your app is always a good way to
access the api.

Joseph
CF Release Integration Team

On Wed, Sep 30, 2015 at 7:16 AM, zooba Sir <myfakename90(a)gmail.com> wrote:

will this "instance" attribute gives number of successfully running
instances at the moment or just the maximum no of instances for the app as
configured in manifest.yml


[abacus] Adding metering resource

Piotr Przybylski <piotrp@...>
 

Hi,
I would like to add a new resource, similar to linux-container. What is a
correct way to register that resource ? The resource files are located in
cf-abacus/lib/config/resource/src/resources,
however adding resource file there does not add new resource_id to resource
enumerations (e.g. in cf-abacus/lib/config/resource/src/index.js).

Thank you

Piotr


Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)

Alexander Lomov <alexander.lomov@...>
 

Actually I made a mistake here. The gem you may to use as a API wrapper for Ruby is called cfoundry [1]. While it may not have support for the latest versions of CF, I was able to use it in may projects. For instance this simple app [2].

[1] https://github.com/cloudfoundry-attic/cfoundry
[2] https://github.com/allomov/cf-auto-scaling/blob/master/Gemfile#L6

On Sep 30, 2015, at 8:11 PM, Lomov Alexander <alexander.lomov(a)altoros.com<mailto:alexander.lomov(a)altoros.com>> wrote:

Hey, Sir Zooba. Sorry for the late response.

You can find the description of Cloud Controller API here [1]. You can make requests to your Cloud Controller through Gorouter component adding “api.” before main CF domain. For instance if you have CF deployment to cf-example.com<http://cf-example.com/> domain, then you’ll need to use http://api.cf-example.com<http://api.cf-example.com/> to reach CC.

The better option will be to use API wrappers for the language you work with. For instance for ruby you can choose this one [2].

[1] http://apidocs.cloudfoundry.org/218/
[2] https://github.com/frodenas/cloudfoundry-client

On Sep 30, 2015, at 7:32 PM, zooba Sir <myfakename90(a)gmail.com<mailto:myfakename90(a)gmail.com>> wrote:

Also, please let me know how to call the API in my code.

Thanks.


Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)

Alexander Lomov <alexander.lomov@...>
 

Hey, Sir Zooba. Sorry for the late response.

You can find the description of Cloud Controller API here [1]. You can make requests to your Cloud Controller through Gorouter component adding “api.” before main CF domain. For instance if you have CF deployment to cf-example.com<http://cf-example.com> domain, then you’ll need to use http://api.cf-example.com to reach CC.

The better option will be to use API wrappers for the language you work with. For instance for ruby you can choose this one [2].

[1] http://apidocs.cloudfoundry.org/218/
[2] https://github.com/frodenas/cloudfoundry-client

On Sep 30, 2015, at 7:32 PM, zooba Sir <myfakename90(a)gmail.com<mailto:myfakename90(a)gmail.com>> wrote:

Also, please let me know how to call the API in my code.

Thanks.


Re: CF API for "general statistics"?

Jim Park
 

As far as the available app space available in the system, PWS uses
https://github.com/cloudfoundry/collector/blob/master/lib/collector/handlers/dea.rb#L10
to
ID how much available space is in a deploy for additional apps.

This varz endpoint is populated by
https://github.com/cloudfoundry/dea_ng/blob/b74390b2472a6a929807040f4439a30ecb46e699/lib/dea/bootstrap.rb#L473

You can trace it further back from here.

So the short answer is no, you need to enable monitoring by deploying a
collector.

Thanks,


Jim

On Tue, Sep 29, 2015 at 2:12 PM CF Runtime <cfruntime(a)gmail.com> wrote:

I'd like to add as well that you can configure Bosh's healthmonitor to
send this data to an external dataviz/archival service (we use Datadog for
our various test environments): https://bosh.io/docs/hm-config.html

Zak + Mikhail, CF Release Integration

On Tue, Sep 29, 2015 at 4:58 AM, James Bayer <jbayer(a)pivotal.io> wrote:

if you're using bosh to manage cloud foundry, then the bosh cli has a
command:
bosh vms --vitals

which you can read about here [1], that does a good job of measuring
infra concerns:

- Vitals: Includes load, CPU, memory, swap, system disk, ephemeral
disk, and persistent disk usage for each VM.


[1] http://bosh.io/docs/sysadmin-commands.html#health

On Tue, Sep 29, 2015 at 2:51 AM, Rafal Radecki <radecki.rafal(a)gmail.com>
wrote:

Hi all :)

I got a task to check the possibility to fetch details such as:
- overall used and available memory/storage usage of cf platform
- list of running warden containers, approximation how many can be
spawned additionally
I looked through https://apidocs.cloudfoundry.org/218/ but did not find
anything similar to whats I am looking for.

Are there any options other than standard os level monitoring?

BR,
Rafal.


--
Thank you,

James Bayer


Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)

Zuba Al
 

Also, please let me know how to call the API in my code.

Thanks.


Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)

Zuba Al
 

will this "instance" attribute gives number of successfully running instances at the moment or just the maximum no of instances for the app as configured in manifest.yml


Re: PHP extension 'gettext' doesn't work?

Daniel Mikusa
 

This looks OK. I'm not seeing any build pack errors. Could you include
your sample PHP code?

See comments inline below.

On Wed, Sep 30, 2015 at 1:44 AM, Hiroaki Ukaji <dt3snow.w(a)gmail.com> wrote:

Hi.
Thanks for your reply.

Yes, I also think the extension is loading in application container,
however, the function (which was able to be activated properly in a local
machine) perhaps doesn't work.
Anyway, I'm sorry about my less information. I'm trying to write details
again.

- what version of PHP are you using?
>>> we're using PHP-5.5.23
(php-buildpack version is v3.2.1, which is default in cf-release
v211. we're operating them on bosh-lite (tree:552dc68696), and using cf-cli
v6.12.0.).
Could you try with the latest build pack? That would rule out any issues
that have been already addressed.



- how are you enabling the extension: options.json or composer.json?
>>> by "PHP_EXTENSION" in .bp-config/options.json.
OK


- what's the full output of `cf push`?
- what's the output of `cf logs` when you try to access a page that uses
`gettext`?
>>> please observe the following.

********** `cf push` **********
$ git clone https://github.com/nota-ja/php-gettext-example
$ cd php-gettext-example/
php-gettext-example$ cf push php-gettext-example
Creating app php-gettext-example in org ukaji / space default as ukaji...
OK

Creating route php-gettext-example.10.244.0.34.xip.io...
OK

Binding php-gettext-example.10.244.0.34.xip.io to php-gettext-example...
OK

Uploading php-gettext-example...
Uploading app files from: /home/ukaji/workspace/php-gettext-example
Uploading 2.8K, 9 files
Done uploading
OK

Starting app php-gettext-example in org ukaji / space default as ukaji...
-----> Downloaded app package (4.0K)
-------> Buildpack version 3.2.1
<snip/>


Installing PHP
PHP 5.5.23
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 5000k 100 5000k 0 0 449M 0 --:--:-- --:--:-- --:--:--
449M
Downloaded
[
https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-5.5.23.tar.gz
]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 8640k 100 8640k 0 0 341M 0 --:--:-- --:--:-- --:--:--
341M
Downloaded
[
https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-fpm-5.5.23.tar.gz
]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 18857 100 18857 0 0 105M 0 --:--:-- --:--:-- --:--:--
105M
Downloaded
[
https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-gettext-5.5.23.tar.gz
]
OK, so the extension is being installed. That's good.


to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 1046k 100 1046k 0 0 297M 0 --:--:-- --:--:-- --:--:--
427M
Downloaded
[
https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-mbstring-5.5.23.tar.gz
]
to [/tmp]
Finished: [2015-09-30 02:14:06.118672]
-----> Uploading droplet (17M)

1 of 1 instances running

App started
The app is starting OK, that's good.


OK

App php-gettext-example was started using this command
`$HOME/.bp/bin/start`

Showing health and status for app php-gettext-example in org ukaji / space
default as ukaji...
OK

requested state: started
instances: 1/1
usage: 256M x 1 instances
urls: php-gettext-example.10.244.0.34.xip.io
last uploaded: Wed Sep 30 02:13:59 UTC 2015
stack: cflinuxfs2
buildpack: PHP

state since cpu memory disk
details
#0 running 2015-09-30 11:14:12 AM 0.0% 22.6M of 256M 0 of 1G
php-gettext-example$ curl php-gettext-example.10.244.0.34.xip.io

/home/vcap/app/htdocs/locale: hello-world
So, I take it "hello-world" should be replaced with a localized version?


********************

********** `cf logs` when I access a page **********
I don't see any errors in the logs, so that's good. If the extension
failed to load, it should show up here.

Dan



curl
2015-09-30T11:15:28.79+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:15:28 +0000] "GET
/
HTTP/1.1" 200 0 46 "-" "curl/7.35.0" 10.0.2.15:56004
x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:62553a95-d90f-462c-5059-5f66ea826e70
response_time:0.007372778 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:15:28.79+0900 [App/0] OUT 02:15:28 httpd |
192.168.50.1
- - [30/Sep/2015:02:15:28 +0000] "GET / HTTP/1.1" 200 46
vcap_request_id=62553a95-d90f-462c-5059-5f66ea826e70 peer_addr=10.0.2.15

accessing from a browser(google chrome)
2015-09-30T11:16:40.76+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:16:40 +0000] "GET
/
HTTP/1.1" 200 0 46 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.42 Safari/537.36"
10.0.2.15:56760 x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:96c67b24-dfb1-4dfe-7b23-e850ccc75e4b
response_time:0.008837383 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:16:40.78+0900 [App/0] OUT 02:16:40 httpd |
192.168.50.1
- - [30/Sep/2015:02:16:40 +0000] "GET / HTTP/1.1" 200 46
vcap_request_id=96c67b24-dfb1-4dfe-7b23-e850ccc75e4b peer_addr=10.0.2.15
2015-09-30T11:16:40.87+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:16:40 +0000] "GET
/favicon.ico HTTP/1.1" 404 0 209
"http://php-gettext-example.10.244.0.34.xip.io/" "Mozilla/5.0 (Macintosh;
Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/46.0.2490.42 Safari/537.36" 10.0.2.15:56760
x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:34075545-f921-4597-6564-9249f7586a1b
response_time:0.004353567 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:16:40.88+0900 [App/0] OUT 02:16:40 httpd | [Wed Sep 30
02:16:40.873592 2015] [core:info] [pid 46:tid 139946828056320] [client
192.168.50.1:41285] AH00128: File does not exist:
/home/vcap/app/htdocs/favicon.ico, referer:
http://php-gettext-example.10.244.0.34.xip.io/
2015-09-30T11:16:40.88+0900 [App/0] OUT 02:16:40 httpd |
192.168.50.1
- - [30/Sep/2015:02:16:40 +0000] "GET /favicon.ico HTTP/1.1" 404 209
vcap_request_id=34075545-f921-4597-6564-9249f7586a1b peer_addr=10.0.2.15
********************


I hope these answer your questions.

Thanks.

Hiroaki UKAJI




--
View this message in context:
http://cf-dev.70369.x6.nabble.com/cf-dev-PHP-extension-gettext-doesn-t-work-tp1984p2000.html
Sent from the CF Dev mailing list archive at Nabble.com.


Re: special character in db password

Daniel Mikusa
 

On Tue, Sep 29, 2015 at 11:15 PM, Naga Rakesh <nagarakesh4(a)gmail.com> wrote:

Hello,

I am facing an issue while bounding app to a service instance. The service
instance points to a database which has a '@' (at symbol) in its password
(example : abc(a)def). When I bind this service instance to an existing
app, the app throws up the following error when trying to access the data.
How did you create this service instance? Is it from a service broker? or
is it a user provided service?



*OUT java.net.UnknownHostException: null: unknown error*
*at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method).*

The sample URI in the env formed was "mysql://username:abc(a)def@
1.1.1.1:3306/dbname", as you can see the password was having a '@'
character in it. I believe how it works is it parses the URI as
*drivername://username:password(a)hostname:port/dbname* and in this case as
the password contains @ it is unable to parse the hostname correctly.
That's because the URL is not valid. Your "@" in the password should be
url encoded (the username and password sections should both be urlencoded,
the "@" is just the only character that would change from being
urlencoded).

If you're passing this URL through a user provided service then you need to
manually urlencode it. If you're using a service broker, then that sounds
like a bug with the broker.

Dan


Re: PHP extension 'gettext' doesn't work?

Hiroaki Ukaji <dt3snow.w@...>
 

Hi.
Thanks for your reply.

Yes, I also think the extension is loading in application container,
however, the function (which was able to be activated properly in a local
machine) perhaps doesn't work.
Anyway, I'm sorry about my less information. I'm trying to write details
again.

- what version of PHP are you using?
>>> we're using PHP-5.5.23
(php-buildpack version is v3.2.1, which is default in cf-release
v211. we're operating them on bosh-lite (tree:552dc68696), and using cf-cli
v6.12.0.).

- how are you enabling the extension: options.json or composer.json?
>>> by "PHP_EXTENSION" in .bp-config/options.json.

- what's the full output of `cf push`?
- what's the output of `cf logs` when you try to access a page that uses
`gettext`?
>>> please observe the following.

********** `cf push` **********
$ git clone https://github.com/nota-ja/php-gettext-example
$ cd php-gettext-example/
php-gettext-example$ cf push php-gettext-example
Creating app php-gettext-example in org ukaji / space default as ukaji...
OK

Creating route php-gettext-example.10.244.0.34.xip.io...
OK

Binding php-gettext-example.10.244.0.34.xip.io to php-gettext-example...
OK

Uploading php-gettext-example...
Uploading app files from: /home/ukaji/workspace/php-gettext-example
Uploading 2.8K, 9 files
Done uploading
OK

Starting app php-gettext-example in org ukaji / space default as ukaji...
-----> Downloaded app package (4.0K)
-------> Buildpack version 3.2.1
Installing HTTPD
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 1534k 100 1534k 0 0 226M 0 --:--:-- --:--:-- --:--:--
226M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 14682 100 14682 0 0 127M 0 --:--:-- --:--:-- --:--:--
127M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_unixd-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 19969 100 19969 0 0 247M 0 --:--:-- --:--:-- --:--:--
247M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_setenvif-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 137k 100 137k 0 0 514M 0 --:--:-- --:--:-- --:--:--
514M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_proxy-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 16787 100 16787 0 0 70.5M 0 --:--:-- --:--:-- --:--:--
70.5M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_dir-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 20550 100 20550 0 0 153M 0 --:--:-- --:--:-- --:--:--
153M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_reqtimeout-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 42000 100 42000 0 0 157M 0 --:--:-- --:--:-- --:--:--
157M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_log_config-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 28927 100 28927 0 0 153M 0 --:--:-- --:--:-- --:--:--
153M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_authz_core-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 25276 100 25276 0 0 197M 0 --:--:-- --:--:-- --:--:--
197M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_mime-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 31561 100 31561 0 0 202M 0 --:--:-- --:--:-- --:--:--
202M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_proxy_fcgi-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 17805 100 17805 0 0 106M 0 --:--:-- --:--:-- --:--:--
106M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_remoteip-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 13323 100 13323 0 0 186M 0 --:--:-- --:--:-- --:--:--
186M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_env-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 72297 100 72297 0 0 341M 0 --:--:-- --:--:-- --:--:--
341M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_mpm_event-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 82878 100 82878 0 0 429M 0 --:--:-- --:--:-- --:--:--
429M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_rewrite-2.4.12.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 16145 100 16145 0 0 57.4M 0 --:--:-- --:--:-- --:--:--
57.4M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-mod_authz_host-2.4.12.tar.gz]
to [/tmp]
Installing PHP
PHP 5.5.23
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 5000k 100 5000k 0 0 449M 0 --:--:-- --:--:-- --:--:--
449M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-5.5.23.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 8640k 100 8640k 0 0 341M 0 --:--:-- --:--:-- --:--:--
341M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-fpm-5.5.23.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 18857 100 18857 0 0 105M 0 --:--:-- --:--:-- --:--:--
105M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-gettext-5.5.23.tar.gz]
to [/tmp]
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 1046k 100 1046k 0 0 297M 0 --:--:-- --:--:-- --:--:--
427M
Downloaded
[https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.23/php-mbstring-5.5.23.tar.gz]
to [/tmp]
Finished: [2015-09-30 02:14:06.118672]
-----> Uploading droplet (17M)

1 of 1 instances running

App started


OK

App php-gettext-example was started using this command `$HOME/.bp/bin/start`

Showing health and status for app php-gettext-example in org ukaji / space
default as ukaji...
OK

requested state: started
instances: 1/1
usage: 256M x 1 instances
urls: php-gettext-example.10.244.0.34.xip.io
last uploaded: Wed Sep 30 02:13:59 UTC 2015
stack: cflinuxfs2
buildpack: PHP

state since cpu memory disk
details
#0 running 2015-09-30 11:14:12 AM 0.0% 22.6M of 256M 0 of 1G
php-gettext-example$ curl php-gettext-example.10.244.0.34.xip.io
/home/vcap/app/htdocs/locale: hello-world
********************

********** `cf logs` when I access a page **********
curl
2015-09-30T11:15:28.79+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:15:28 +0000] "GET /
HTTP/1.1" 200 0 46 "-" "curl/7.35.0" 10.0.2.15:56004
x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:62553a95-d90f-462c-5059-5f66ea826e70
response_time:0.007372778 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:15:28.79+0900 [App/0] OUT 02:15:28 httpd | 192.168.50.1
- - [30/Sep/2015:02:15:28 +0000] "GET / HTTP/1.1" 200 46
vcap_request_id=62553a95-d90f-462c-5059-5f66ea826e70 peer_addr=10.0.2.15

accessing from a browser(google chrome)
2015-09-30T11:16:40.76+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:16:40 +0000] "GET /
HTTP/1.1" 200 0 46 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.42 Safari/537.36"
10.0.2.15:56760 x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:96c67b24-dfb1-4dfe-7b23-e850ccc75e4b
response_time:0.008837383 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:16:40.78+0900 [App/0] OUT 02:16:40 httpd | 192.168.50.1
- - [30/Sep/2015:02:16:40 +0000] "GET / HTTP/1.1" 200 46
vcap_request_id=96c67b24-dfb1-4dfe-7b23-e850ccc75e4b peer_addr=10.0.2.15
2015-09-30T11:16:40.87+0900 [RTR/0] OUT
php-gettext-example.10.244.0.34.xip.io - [30/09/2015:02:16:40 +0000] "GET
/favicon.ico HTTP/1.1" 404 0 209
"http://php-gettext-example.10.244.0.34.xip.io/" "Mozilla/5.0 (Macintosh;
Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/46.0.2490.42 Safari/537.36" 10.0.2.15:56760
x_forwarded_for:"192.168.50.1, 10.0.2.15"
vcap_request_id:34075545-f921-4597-6564-9249f7586a1b
response_time:0.004353567 app_id:d3ec3374-9460-4206-b2e0-159ce37686a8
2015-09-30T11:16:40.88+0900 [App/0] OUT 02:16:40 httpd | [Wed Sep 30
02:16:40.873592 2015] [core:info] [pid 46:tid 139946828056320] [client
192.168.50.1:41285] AH00128: File does not exist:
/home/vcap/app/htdocs/favicon.ico, referer:
http://php-gettext-example.10.244.0.34.xip.io/
2015-09-30T11:16:40.88+0900 [App/0] OUT 02:16:40 httpd | 192.168.50.1
- - [30/Sep/2015:02:16:40 +0000] "GET /favicon.ico HTTP/1.1" 404 209
vcap_request_id=34075545-f921-4597-6564-9249f7586a1b peer_addr=10.0.2.15
********************


I hope these answer your questions.

Thanks.

Hiroaki UKAJI




--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-PHP-extension-gettext-doesn-t-work-tp1984p2000.html
Sent from the CF Dev mailing list archive at Nabble.com.


special character in db password

Naga Rakesh
 

Hello,

I am facing an issue while bounding app to a service instance. The service
instance points to a database which has a '@' (at symbol) in its password
(example : abc(a)def). When I bind this service instance to an existing app,
the app throws up the following error when trying to access the data.

*OUT java.net.UnknownHostException: null: unknown error*
*at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method).*

The sample URI in the env formed was "mysql://username:abc(a)def@
1.1.1.1:3306/dbname", as you can see the password was having a '@'
character in it. I believe how it works is it parses the URI as
*drivername://username:password(a)hostname:port/dbname* and in this case as
the password contains @ it is unable to parse the hostname correctly. Let
me know if I am missing something and also if there is any way to solve
this issue.

Thanks,
Rakesh


future changes to etcd configuration in cf-release

Amit Kumar Gupta
 

Hi all,

Just wanted to give the community advance notice that we will be
introducing a change to the etcd configuration in cf-release, probably
within the week (probably cf v220+, we are currently on v218).

etcd can be configured to require ssl communication amongst servers, and
between servers and clients. Currently this defaults to false, but we will
be changing the default to true. We will include documentation on how to
generate certs, and where to put them in your stubs if you are using the
spiff tooling to generate deployment manifests. The BOSH-Lite dev
manifests will include certs by default, to make the dev workflow
especially easy.

Cheers,

Amit Gupta
Cloud Foundry PM, OSS Release Integration team


proposed stemcell network performance tuning

Amit Kumar Gupta
 

Hi all,

I'd like to propose tuning a couple kernel parameters related to tcp
performance:

# TCP_FIN_TIMEOUT
# This setting determines the time that must elapse before TCP/IP can
release a closed connection and reuse
# its resources. During this TIME_WAIT state, reopening the connection to
the client costs less than establishing
# a new connection. By reducing the value of this entry, TCP/IP can release
closed connections faster, making more
# resources available for new connections. Adjust this in the presence of
many connections sitting in the
# TIME_WAIT state:

echo 5 > /proc/sys/net/ipv4/tcp_fin_timeout

# TCP_TW_REUSE
# This allows reusing sockets in TIME_WAIT state for new connections when
it is safe from protocol viewpoint.
# Default value is 0 (disabled). It is generally a safer alternative to
tcp_tw_recycle

echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse

Currently, these parameters are set by certain jobs in cf-release,
diego-release, and perhaps others. Any VM needing to establish a high
number of incoming/outgoing tcp connections in a short period of time will
be unable to establish new connections without changing these parameters.

We believe these parameters are safe to change across the board, and will
be generally beneficial. The existing defaults made sense for much older
networks, but can be greatly optimized for modern systems.

Please share with the mailing lists if you have any questions or feedback
about this proposal. If you maintain a bosh release and would like to see
how these changes would affect your release, you can create a job which
simply does the above in its startup scripts, and colocate that job with
all the other jobs in a deployment of your release.

Thanks,

Amit Gupta
Cloud Foundry PM, OSS Release Integration team


Magnesium Metal, Ferro Phosphorus, Calcium Ferrite

Alexander Yang <alexanderjoe2@...>
 

Dear Sir,
 
Currently, we could supply you with the cargo as below.
 
1. Magnesium ingot,alloy and powder
 
2. Ferro Phosphorus
 
3. Calcium Ferrite
 
 
If you have demand, please let me know.
 
Yours sincerely,
Alexander Yang
 
 
++++++++++++++++++++++++++++++++++++++++++++++++++++
 

Mobile      : +86-18608554433
 
Tel           : +86-855- 8589919
Fax          : +86-855-8589919
 
 
Email        : alexanderjoe6@... d.suns@...
 
Skype       : dualsuns1
 
++++++++++++++++++++++++++++++++++++++++++++++++++++
 

7381 - 7400 of 9409