twitrssme
twitrssme copied to clipboard
403 forbidden (when running from docker?)
after building the docker container and running it with
docker run --rm -p 3000:80 twitrssme
(note: it seems to be "-p" instead of "--port" as written in the instructions)
some warnings show up:
[:warn] [pid 11:tid 140554595538816] FastCGI: server "/var/www/twitrssme/fcgi/twitter_user_to_rss.pl" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
the startpage in the browser looks fine, but if you insert a twitter user, the next page (http://localhost:3000/twitter_user_to_rss/?user=whatever) shows a 403 forbidden error with "You don't have permission to access /twitter_user_to_rss/ on this server." message.
the output in from docker is:
[core:error] [pid 13:tid 140554398586624] (13)Permission denied: [client 172.17.0.1:46224] AH00035: access to /twitter_user_to_rss/ denied (filesystem path '/var/www/twitrssme/fcgi/twitter_user_to_rss.pl') because search permissions are missing on a component of the path, referer: http://localhost:3000/
same error for sudo...
I tried to reproduce this, but i did not get an error. it worked everything as expected.
this is what I made:
git clone https://github.com/ciderpunx/twitrssme.git
cd twitrssme/
docker build -t twitrssme .
docker run --rm -p 3000:80 twitrssme
after I pointed the browser to localhost:3000 and made a request. it worked. I tested it on Ubuntu 18.10 with Docker version 18.09.0, build 4d60db4
Maybe you'll try those steps again? And if it doesn't work, can you describe all the steps you do, from cloning the repository to running the docker image?
The error sounds file permission-y to me, Does this make any difference?
$ sudo chmod 755 /var/www/twitrssme/fcgi/*pl
@hobbesDMS i m also getting the same error please help to resolve