Commit graph

18 commits

Author SHA1 Message Date
Akhil Narang
a64834b444
fix(connections): try all available interfaces, not just ipv4
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2026-01-08 18:10:02 +05:30
Akhil Narang
6c51381e9d
fix(check_database): add sqlite support
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Devin Slauenwhite
f2422ad219
fix: allow rediss connection scheme 2024-08-17 16:15:25 -04:00
David
39d4318a27
feat: enable db socket connection 2024-03-29 10:29:50 +01:00
0xsaif
aa7ee1c6b9
refactor: force ipv4 localhost (#22394)
* reafctor: force ipv4 localhost

Replacing "localhost" with "127.0.0.1" in the codebase; sometimes the name localhost force-resolves to ipv6

* revert: leave localhost usage in oauth tests

Change not required.

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-13 16:23:23 +05:30
Ankush Menat
2264c4cf47 fix: cast port to integer
closes https://github.com/frappe/frappe/issues/21687
2023-07-15 17:46:45 +05:30
David Arnold
2ccab0d625
fix: checkpoint the supported schemes for connectivity (#21576)
* fix: checkpoint the supported schemes for connectivity

This PR implements a gateway + error that clearly hints the operator at
a misconfigured system during runtime.

Particularity, against the multiple library-provided ways of configuring
redis connection strings (in python), this hard stops if an unsupported
one is chosen by accident.

* fix: remove unknown protocol

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-07-15 11:05:29 +05:30
David Arnold
f5b93cc2a0
chore: urlparse already does the parsing for us, no need to diy (#21558)
This is a very minor cleanup. So minor, that it hopefully is a nobrainer
2023-07-02 21:46:53 +05:30
Ankush Menat
3414c0d063 refactor!: Merge redis_socketio and redis_queue
- realtime communication uses pub-sub and no storage. So using same
  redis server for both should be just fine.
- This is how FC works since quite a lot of time. We haven't seen any
  problem so far.
2023-06-11 11:40:22 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
mergify[bot]
a1f15245f7
Merge pull request #12726 from zerodha/check_connections
fix: global get_conf() fails to return site config
2021-03-30 15:11:45 +00:00
Shridhar
86d372c4f6 fix: global get_conf() fails to return site config 2021-03-30 17:13:04 +05:30
Shridhar
5deec996b6 fix: updated postgres default port 2021-03-29 15:16:27 +05:30
Chinmay D. Pai
c0d0fcfd69
chore: do not hardcode anything for postgres
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:24:51 +05:30
Chinmay D. Pai
318e397ab3
chore: unquote db_type
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:13:43 +05:30
Chinmay D. Pai
a25088a606
chore: show message on migrate when services are not running
shows message before migrate if the database or redis service is not running
instead of trying to migrate and then failing.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-13 19:10:19 +05:30