!LfWevXYWdhwVFvDXRf:matrix.org

funkwhale-troubleshooting

267 Members
List of open issues: https://dev.funkwhale.audio/funkwhale/funkwhale/issues, you can also ask your questions on https://governance.funkwhale.audio/g/246YOJ1m/funkwhale-support72 Servers

Load older messages


Timestamp Message
3 Apr 2020
20:32:09@zulu:portdescale.frPierre *

in funkwhale_proxy.conf I get

global proxy conf

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;

websocket support

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

20:32:23@Eliot:matrix.orgEliot Berriot (he/him)MD ?
20:32:34@zulu:portdescale.frPierreare you sure I hardcode my domain?
20:32:37@zulu:portdescale.frPierreMarkDown
20:32:51@Eliot:matrix.orgEliot Berriot (he/him)oh
20:33:03@zulu:portdescale.frPierre
# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;

# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
20:34:09@zulu:portdescale.frPierrethe X-Forwarded-* directive you want I move are the one before all the location?
20:35:06@zulu:portdescale.frPierreline 23-25 ?
20:35:35@Eliot:matrix.orgEliot Berriot (he/him)
In reply to @zulu:portdescale.fr
are you sure I hardcode my domain?

Either that, or you ensure your outper proxy sets the proper X-Forwarded-* headers, and you alias to them here:

proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Host $http_x_forwarded_host;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
20:35:50@zulu:portdescale.frPierrethey where not part of the template you provide for nginx reverse configuration I added them after your post refering to the issue
20:35:56@Eliot:matrix.orgEliot Berriot (he/him)
In reply to @zulu:portdescale.fr
the X-Forwarded-* directive you want I move are the one before all the location?
yep !
20:36:15@zulu:portdescale.frPierreok
20:37:32@zulu:portdescale.frPierreI keep proxy_set_header word instead of add_header?
20:38:00@zulu:portdescale.frPierrejust replacing the probably wrongly forwarded $scheme etc?
20:38:27@Eliot:matrix.orgEliot Berriot (he/him)yes that's pretty much it
20:38:35@Eliot:matrix.orgEliot Berriot (he/him)feel free to copy paste it here if you want me to check
20:41:03@zulu:portdescale.frPierre

ok:

# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto "https";
#proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Host "zic.example.com";
#proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Port "443";
proxy_redirect off;

# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
20:42:04@zulu:portdescale.frPierremy funkwhale-beat daemon is now show another error not related to http loopback:
20:42:54@zulu:portdescale.frPierre
pr 03 22:29:26 cop22 celery[27660]: [2020-04-03 20:29:26,963: CRITICAL/MainProcess] beat raised exception <class '_dbm.error'>: error('cannot add item to database')
Apr 03 22:29:26 cop22 celery[27660]: Traceback (most recent call last):
Apr 03 22:29:26 cop22 celery[27660]:   File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/kombu/utils/objects.py", line 42, in __get__
Apr 03 22:29:26 cop22 celery[27660]:     return obj.__dict__[self.__name__]
Apr 03 22:29:26 cop22 celery[27660]: KeyError: 'scheduler'
Apr 03 22:29:26 cop22 celery[27660]: During handling of the above exception, another exception occurred:
Apr 03 22:29:26 cop22 celery[27660]: Traceback (most recent call last):
Apr 03 22:29:26 cop22 celery[27660]:   File "/usr/lib/python3.7/shelve.py", line 111, in __getitem__
Apr 03 22:29:26 cop22 celery[27660]:     value = self.cache[key]
Apr 03 22:29:26 cop22 celery[27660]: KeyError: 'entries'
Apr 03 22:29:26 cop22 celery[27660]: During handling of the above exception, another exception occurred:
Apr 03 22:29:26 cop22 celery[27660]: Traceback (most recent call last):
Apr 03 22:29:26 cop22 celery[27660]:   File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/celery/beat.py", line 524, in _create_schedule
Apr 03 22:29:26 cop22 celery[27660]:     self._store[str('entries')]
Apr 03 22:29:26 cop22 celery[27660]:   File "/usr/lib/python3.7/shelve.py", line 113, in __getitem__
Apr 03 22:29:26 cop22 celery[27660]:     f = BytesIO(self.dict[key.encode(self.keyencoding)])
Apr 03 22:29:26 cop22 celery[27660]: KeyError: b'entries'
Apr 03 22:29:26 cop22 celery[27660]: During handling of the above exception, another exception occurred:
Apr 03 22:29:26 cop22 celery[27660]: Traceback (most recent call last):

20:43:29@zulu:portdescale.frPierredon't know what database it is refering.. redis and postgres are running...
20:43:49@Eliot:matrix.orgEliot Berriot (he/him)
In reply to @zulu:portdescale.fr

ok:

# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto "https";
#proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Host "zic.example.com";
#proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Port "443";
proxy_redirect off;

# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
this one looks good
20:44:08@zulu:portdescale.frPierreok thx
20:45:01@Eliot:matrix.orgEliot Berriot (he/him)
In reply to @zulu:portdescale.fr
don't know what database it is refering.. redis and postgres are running...
I'm not sure what caused this, there should be a celerybeat.db file somewere in /srv/funkwhale/api, you can safely remove it
20:45:05@Eliot:matrix.orgEliot Berriot (he/him)it should help
20:45:15@Eliot:matrix.orgEliot Berriot (he/him)I'm going to bed, I'll help tomorrow if you still have issues
20:46:13@zulu:portdescale.frPierreHey Eliot! the beat is dead however the cover are showing!
20:46:33@zulu:portdescale.frPierreI will look for celerybeat.db file
20:47:17@zulu:portdescale.frPierrebeat restarted after the celerybeat.db
20:47:32@zulu:portdescale.frPierrethanks so much everything seems in order
20:47:37@zulu:portdescale.frPierreninight!

There are no newer messages yet.


Back to Room List