-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Reddit content only in markdown? #1208
Comments
If I recall correctly, we should show the HTML content. But there were some Reddit fixes since 2.18 was released. Which version of selfoss do you use? Could you share an example of such broken reddit URL? Or maybe try the latest build? |
I'm using 2.18 currently. Will try upgrading later. |
i failed updating and broke my setup :C. |
I have update to de lates build as u liked and baked up my data folder and default conf but now im getting this when I tryt o curl:
|
That looks correct – selfoss is a browser app so the web page does not contain much but a code that tries to load the app and print error when it fails. What do you see if you try to open it in the web browser? Do you see any failures in the browser console (F12 key). |
im getting bad gateway 502 and when i open console i see an error. Im using nginx as reverse proxy and hes doing basically just that and no more, the conf is pretty simple. GET https://HOST:PORT/ 502 (Bad Gateway) GET https://HOST:PORT/favicon.ico 502 (Bad Gateway) The example above is when i use curl on my host. PS im using a docker container for selfoss. You know when the new version will be on github? |
Hmm, 502 would be likely caused by nginx not being able to communicate with the proxied web server. Are you able to access the The archive gets uploaded to GitHub when new release is tagged. The archives I linked are generated and uploaded to bintray for every commit and uploaded to bintray for tagged commits using the same script: https://github.com/SSilence/selfoss/blob/664481dba5387f783627faccda1998d8e2085f3e/.travis.yml#L51-L65. Personally, I use |
getting 404 with the js file. Tried the same inside docker, and its the same mybe i have a nginx missconfiguration? Could you share an example of yours? That what i get when i curl on my host:
Update: just added a php section in my nginx server block and now i get proxied to my docker container but still cant open selfoss, when i remove the php section it trys to downlaod the php index file :S . |
Getting closer to the solution, here is anoter error from the default.log:
|
Do you mean you create a raw Alpine container and then install selfoss inside it manually? What web server do you use inside and how do you run PHP there? As I understand it, with Docker, one would set it up just like normal web server (though using multiple docker containers for proxied nginx, php-fpm… and managing them using docker-compose might be easier), and then bind the ports from the host to containers (docker-compose should handle this part). I am not particularly familiar with docker, which is the main reason we still do not have an official docker image. I just use a single nginx instance for all of my web services and php-fpm worker for selfoss: http {
...
server {
listen 0.0.0.0:443 ssl http2 ;
listen [::]:443 ssl http2 ;
server_name reader.my-host.cz ;
location /.well-known/acme-challenge {
root /var/lib/acme/acme-challenge;
auth_basic off;
}
root /nix/store/vra92xijaz62f8zjhlln1na0p7cym6ij-selfoss-2.19-664481d;
ssl_certificate /var/lib/acme/my-host.cz/fullchain.pem;
ssl_certificate_key /var/lib/acme/my-host.cz/key.pem;
ssl_trusted_certificate /var/lib/acme/my-host.cz/fullchain.pem;
location ~* \ (gif|jpg|png) {
expires 30d;
}
location ~ ^/(favicons|thumbnails)/.*$ {
root /var/www/my-host.cz/reader/data;
}
location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) {
deny all;
}
location / {
index index.php;
try_files $uri /public/$uri /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_pass unix:/run/phpfpm/reader.sock;
include /nix/store/qsq6ni4lxd8i4g9g4dvh3y7v1f43fqsp-nginx-1.18.0/conf/fastcgi.conf;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
}
}
...
} There is a Dockerfile example using Apache in #1170. Do you see any errors in the docker logs? Adding the following to logger_destination=file:php://stderr
logger_level=DEBUG |
Sorry, my network is flaky today, replied too late. The latest error looks like missing php pdo-sqlite module. |
ok now getting this after installing the package in my console:
Now after reloading the page i get less 404 but still some errors(i just jecked, files are present in the public directory)
|
Did the js file load then? It would be weird if it did and CSS did not. |
selfoss says Webserver log says:
It looks like its looking at the wrong directory, since the files cant be at the root. |
Do you use Apache or nginx in the docker container? How did you set it up? |
I was missing this part:
Thx for your help and time! 👍 |
Nice. Does it fix the reddit problem? |
wait il test it right now |
Odd its kicking me out after login, then add source :C |
Anything in log or browser console? |
nginx log:
|
thats rly wierd because when i relaod the page im logedin again!? |
Session cookie is there the domain is correct.
Path is root, domain is also ok, cookie is there... its really odd. Maybe something im missing in my php.ini file some sort of setting? Since its publically accessable i would not like to remove the password. But it would be a workarround. Remove the password, set sources, set password again. |
With logger_level=DEBUG in Should print something like https://github.com/SSilence/selfoss/blob/664481dba5387f783627faccda1998d8e2085f3e/src/helpers/Authentication.php#L43 |
hmm ok.. now it works. It seems like my config.ini was corrupt.. i accidentaly broke it by editing(im not filly retarded im just using a ssh gateway and it has some problems with copy papaste) and made a new one, now it works, will try reddit content now. |
i do get error when i try to trigger the update:
|
im a retard sorry, after making a new conf i forget to set public to 1 and set username/paswwod... so im at the same point again :S |
|
ok stuff gets to complicated for me, i think il switch to the docker container i used initially and wait for 2.19 release. Sry for stealing your time. This login issue is really odd and im to tired to investigate further and steal even more of your time. |
Is it possible to show reddit content not in markdown. Its kind of odd, is it a missconfiguration is that how it is?
The text was updated successfully, but these errors were encountered: