TTRSS on Hiawatha webserver: access via API extremely slow

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
Stefan
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 04 Apr 2015, 22:40

TTRSS on Hiawatha webserver: access via API extremely slow

Postby Stefan » 04 Apr 2015, 23:12

Hello

I have running TT-RSS on a Hiawatha webserver. Everything is running smoothly, except the access via API. There are no errors in the logs but access speed is extremely slow.

Environment:
- Ubuntu Server 14.04.2 LTS
- MariaDB 5.5.41-1ubuntu0.14.04.1
- Hiawatha 9.12
- php-fpm 5.5.9+dfsg-1ubuntu4.7
- TT-RSS latest

Test 1. On the client side:

Code: Select all

curl.exe -d '{"op":"login","user":"test","password":"test"}' 192.168.3.10/api
  Script startet at: 19:03:34.71
  {"seq":0,"status":0,"content":{"session_id":"coj4utdm9u9ujd8p4q4he62kp7","api_level":11}}
  Script finished at: 19:04:06.27
Curl requires about 32 seconds! :shock:

Test 1. On the server side:

Code: Select all

cat /var/www/ttrss/log/access.log
  192.168.1.254|Sat 04 Apr 2015 19:03:35 +0200|200|477||POST /api/ HTTP/1.1|User-Agent: curl/7.41.0|Host: 192.168.3.10|Accept: */*|Content-Length: 46|Content-Type: application/x-www-form-urlencoded


Test 2: During feed update from a mobile phone app:

Code: Select all

cat /var/www/ttrss/log/access.log
  192.168.1.254|Sat 04 Apr 2015 19:13:02 +0200|200|814||POST /api/ HTTP/1.1|Accept: application/json|Content-Length: 55|Accept-Encoding: identity|Content-Type: application/json; charset=UTF-8|User-Agent: NativeHost|Host: 192.168.3.10|Connection: keep-alive|Cache-Control: no-cache
  192.168.1.254|Sat 04 Apr 2015 19:13:34 +0200|200|814||POST /api/ HTTP/1.1|Accept: application/json|Content-Length: 55|Accept-Encoding: identity|Content-Type: application/json; charset=UTF-8|User-Agent: NativeHost|Host: 192.168.3.10|Connection: keep-alive|Cache-Control: no-cache
  192.168.1.254|Sat 04 Apr 2015 19:14:05 +0200|200|589||POST /api/ HTTP/1.1|Accept: application/json|Content-Length: 84|Accept-Encoding: identity|Content-Type: application/json; charset=UTF-8|User-Agent: NativeHost|Host: 192.168.3.10|Connection: keep-alive|Cache-Control: no-cache
  192.168.1.254|Sat 04 Apr 2015 19:14:36 +0200|200|546||POST /api/ HTTP/1.1|Accept: application/json|Content-Length: 120|Accept-Encoding: identity|Content-Type: application/json; charset=UTF-8|User-Agent: NativeHost|Host: 192.168.3.10|Connection: keep-alive|Cache-Control: no-cache
  192.168.1.254|Sat 04 Apr 2015 19:15:08 +0200|200|681||GET /feed-icons/30.ico HTTP/1.1|Accept: */*|Accept-Language: de-CH|UA-CPU: ARM|Accept-Encoding: gzip, deflate|User-Agent: Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 1520) like Gecko|Host: 192.168.3.10|Connection: keep-alive
Here also about 30 seconds between each step.

What could be the reason for the slow access speed via API?
I tried it also with a nginx webserver. With this, I had no speed issues. But I prefer to use Hiawatha.

Thanks for any suggestions.

Regards,
Stefan

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 04 Apr 2015, 23:15

Hiawatha (also known as Ayenwatha, Aiionwatha, or Haiëñ'wa'tha; Onondaga)[1] was a pre-historical Native American leader and co-founder of the Iroquois confederacy.


idk maybe stop running php on a dead indian guy

just a thought

Stefan
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 04 Apr 2015, 22:40

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby Stefan » 04 Apr 2015, 23:27

Not really helpful, thanks for the warm welcome. :(
Seriously, do you have any personal problems with the Hiawatha webserver?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 04 Apr 2015, 23:35

i have no idea wtf it is but going by your post its shit at running tt-rss so i'm going to avoid it i guess

Stefan
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 04 Apr 2015, 22:40

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby Stefan » 05 Apr 2015, 00:28

I'm not sure if the problem is on Hiawatha's side. More likely I am the problem, because I'm a beginner. :lol:
But seriously, maybe someone has TTRSS running on a Hiawatha webserver and can help a beginner?

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby JustAMacUser » 05 Apr 2015, 01:47

Stefan wrote:I tried it also with a nginx webserver. With this, I had no speed issues.


Stefan wrote:I'm not sure if the problem is on Hiawatha's side


:confused:

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 05 Apr 2015, 09:10

hi, let me tell you about a bespoke artisanal httpd i'm using, you probably never even heard of it

T4b
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 12 Mar 2015, 21:44

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby T4b » 05 Apr 2015, 13:59

This seems more of a problem with your webserver than with tt-rss... maybe you misconfigured something. Go search some support forums or something for your webserver. If there are none and they won't help you then really switch to something else.

Stefan
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 04 Apr 2015, 22:40

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby Stefan » 06 Apr 2015, 17:08

T4b wrote:This seems more of a problem with your webserver than with tt-rss... maybe you misconfigured something. Go search some support forums or something for your webserver. If there are none and they won't help you then really switch to something else.

I did that first. Hugo Leisink, developer of Hiawatha says it must be an application internal issue and I should ask here.
But yes, I also think it could be a misconfiguration on my part. My hope was that someone else has already TTRSS running on a Hiawatha webserver and can help me with the configuration. But it looks like I'm alone on this planet who wants this combination. :)

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby JustAMacUser » 06 Apr 2015, 18:07

Just to be clear, you, yourself, already did troubleshoot this. You found that Nginx did not exhibit the issue where Hiawatha did.

If you want another hypothesis: I think the issue is between Hiawatha and PHP. If you're using the same PHP backend, then the issue is clearly with Hiawatha. If you're using different backends, then increase the level of logging and do more testing such as running a simple PHP "Hello World" script.

Regardless, the fact that you can run it with Nginx and not experience the issue clearly indicates that it's NOT an application (i.e. TT-RSS) issue. So a Hiawatha support forum is probably the place to take this up.

Incidentally, why use Hiawatha? I've never even heard of it till your post. Apache and Nginx are both excellent. TT-RSS even comes with the .htaccess files so you don't have to deal with denying certain directories when using Apache.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 06 Apr 2015, 18:19

well it does have a duckie on a front page

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby JustAMacUser » 06 Apr 2015, 18:55

Wait... This web server has been around since 2002!? It hasn't had a new milestone in two years.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 06 Apr 2015, 19:06

maybe it's a PR stunt gone horribly wrong

either that or op is a literal software hipster

Stefan
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 04 Apr 2015, 22:40

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby Stefan » 06 Apr 2015, 23:57

Hello JustAMacUser

JustAMacUser wrote:Just to be clear, you, yourself, already did troubleshoot this. You found that Nginx did not exhibit the issue where Hiawatha did.

Yes I know. But now I'm trying to find the cause of the error. Perhaps only a wrong PHP configuration, a missing package or something like this?

JustAMacUser wrote:If you want another hypothesis: I think the issue is between Hiawatha and PHP. If you're using the same PHP backend, then the issue is clearly with Hiawatha. If you're using different backends, then increase the level of logging and do more testing such as running a simple PHP "Hello World" script.

It was probably the same PHP backend, but I'm not 100% sure. I will clarify that.
I tried it also without FastCGI --> same behavior.
The rest of the TT-RSS page works very well. No access time problems:
p1.PNG
p1.PNG (54.79 KiB) Viewed 7913 times

Only a GET via API causes a delay (whether with curl or a web browser):
p2.PNG
p2.PNG (18.59 KiB) Viewed 7913 times

What's going on on the server side during an API call? Which packages or configurations are relevant specific for this part?

JustAMacUser wrote:Regardless, the fact that you can run it with Nginx and not experience the issue clearly indicates that it's NOT an application (i.e. TT-RSS) issue. So a Hiawatha support forum is probably the place to take this up.

Yes. May I also ask here for help anyway?

JustAMacUser wrote:Incidentally, why use Hiawatha? I've never even heard of it till your post. Apache and Nginx are both excellent. TT-RSS even comes with the .htaccess files so you don't have to deal with denying certain directories when using Apache.

Alright, I can set up a separate VM with a fat Apache or a nginx for TT-RSS. I'm going to do so, but only if I can not solve this problem.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: TTRSS on Hiawatha webserver: access via API extremely sl

Postby fox » 07 Apr 2015, 00:08

you just don't get it do you? you have established in the first post that your problem has nothing to do with tt-rss. why do you continue posting?

nobody here uses or cares for your shit hipster dead httpd project, go the fuck away already


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests