Girish Ramakrishnan
96dc79cfe6
Migrate codebase from CommonJS to ES Modules
...
- Convert all require()/module.exports to import/export across 260+ files
- Add "type": "module" to package.json to enable ESM by default
- Add migrations/package.json with "type": "commonjs" to keep db-migrate compatible
- Convert eslint.config.js to ESM with sourceType: "module"
- Replace __dirname/__filename with import.meta.dirname/import.meta.filename
- Replace require.main === module with process.argv[1] === import.meta.filename
- Remove 'use strict' directives (implicit in ESM)
- Convert dynamic require() in switch statements to static import lookup maps
(dns.js, domains.js, backupformats.js, backupsites.js, network.js)
- Extract self-referencing exports.CONSTANT patterns into standalone const
declarations (apps.js, services.js, locks.js, users.js, mail.js, etc.)
- Lazify SERVICES object in services.js to avoid circular dependency TDZ issues
- Add clearMailQueue() to mailer.js for ESM-safe queue clearing in tests
- Add _setMockApp() to ldapserver.js for ESM-safe test mocking
- Add _setMockResolve() wrapper to dig.js for ESM-safe DNS mocking in tests
- Convert backupupload.js to use dynamic imports so --check exits before
loading the module graph (which requires BOX_ENV)
- Update check-install to use ESM import for infra_version.js
- Convert scripts/ (hotfix, release, remote_hotfix.js, find-unused-translations)
- All 1315 tests passing
Migration stats (AI-assisted using Cursor with Claude):
- Wall clock time: ~3-4 hours
- Assistant completions: ~80-100
- Estimated token usage: ~1-2M tokens
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-14 15:11:45 +01:00
Girish Ramakrishnan
49d5d10d77
typo
2026-02-06 16:17:22 +01:00
Girish Ramakrishnan
1dec4f0070
cloudron-support: try ipv4 and ipv6 image pull
2026-01-30 17:20:35 +01:00
Girish Ramakrishnan
0d2bcbf25b
cloudron-support: add --disable-ipv6
2026-01-13 10:24:37 +01:00
Girish Ramakrishnan
a3d1838a8c
cloudron-support: remove --patch
2026-01-13 10:20:57 +01:00
Girish Ramakrishnan
409f185f7e
cloudron-support: do not use nc
2026-01-05 09:30:43 +01:00
Girish Ramakrishnan
60420c3e32
cloudron-support: make troubleshoot script work when not set up yet
2025-12-30 17:17:35 +01:00
Girish Ramakrishnan
854f7d7f2e
cloudron-support: handle systemd-detect-virt error
2025-12-09 16:06:20 +01:00
Girish Ramakrishnan
c7f5e6b5b0
typo
2025-12-09 13:01:13 +01:00
Girish Ramakrishnan
64cb848a37
sftp: give it a static ip
2025-12-04 09:09:19 +01:00
Girish Ramakrishnan
1cbad1057d
cloudron-support: with equal timestamps, order by name
2025-12-02 09:33:55 +01:00
Girish Ramakrishnan
71affc0239
cloudron-support: add env type
2025-12-01 15:10:23 +01:00
Girish Ramakrishnan
720dc14ecf
query root dns to detect udp 53 blockage
2025-11-27 18:42:11 +01:00
Girish Ramakrishnan
51f5f0b82d
typo
2025-11-27 18:18:15 +01:00
Girish Ramakrishnan
f380a6f8cf
cloudron-support: make nameserver list customizable
2025-11-27 18:15:32 +01:00
Girish Ramakrishnan
790ba406bf
cloudron-support: remove cloudron from arg
...
'cloudron' is a bit redundant and matches our UI text 'services'
reorder the help to be alphabetical
change cli args to plural
2025-11-25 09:42:42 +01:00
Elias Hackradt
e0367056bd
cloudron-support: add --check-cloudron-services and add it to troubleshoot
2025-11-25 09:24:30 +01:00
Elias Hackradt
7f9344a556
Added --check- and --apply-db-migration and add --check-db-migration to troubleshoot
2025-11-24 14:28:03 +01:00
Elias Hackradt
eaf363635e
Remove collectd from send_diagnostics
2025-11-13 23:07:38 +01:00
Girish Ramakrishnan
c69bc77a7a
cloudron-support: fix docker version script
2025-09-11 09:18:01 +02:00
Girish Ramakrishnan
148c0d9213
cloudron-support: typo
2025-07-11 12:25:50 +02:00
Girish Ramakrishnan
871a6f23e2
cloudron-support: enable-ssh is gone
2025-07-11 10:44:35 +02:00
Girish Ramakrishnan
b043e6bf52
cloudron-support: embed the terms
2025-07-11 10:33:22 +02:00
Girish Ramakrishnan
7e1216a3d3
cloudron-support: keep help alphabetical
2025-06-24 16:53:42 +02:00
Girish Ramakrishnan
2d5ef36a7f
cloudron-support: make user press enter
2025-06-15 13:20:24 +02:00
Girish Ramakrishnan
804be6d5e4
cloudron-support: typo
2025-06-08 11:06:56 +02:00
Girish Ramakrishnan
689cf3171d
cloudron-support: reload nginx instead of active
2025-04-13 10:39:52 +02:00
Girish Ramakrishnan
3fbdfbe7a4
cloudron-support: remove extra space
2025-04-07 17:54:55 +02:00
Girish Ramakrishnan
9b9fb325bd
cloudron-support: typo
2025-03-05 18:02:28 +01:00
Girish Ramakrishnan
68066cdd48
cloudron-support: auto cleanup
2025-01-31 10:38:29 +01:00
Girish Ramakrishnan
aaab06f21d
grammar
...
donald says so
2025-01-13 08:59:46 +01:00
Girish Ramakrishnan
8d19c351e7
cloudron-support: add link to docs
2024-12-18 10:52:51 +01:00
Girish Ramakrishnan
5c00fb361a
cloudron-support: suggest removing nodejs apt
2024-12-18 10:17:05 +01:00
Girish Ramakrishnan
dd45f1c032
cloudron-support: set connect timeout and redirect ping output
2024-11-26 11:15:27 +05:30
Girish Ramakrishnan
ddf1c8e385
cloudron-support: clarify ipv6 in kernel
2024-11-26 11:10:58 +05:30
Girish Ramakrishnan
8350eeb751
cloudron-support: rename enable-remote-access to enable-remote-support
2024-11-08 16:01:30 +01:00
Johannes Zellner
fac5d3c07b
Add code for cloudron-support to check and fix docker version
2024-10-17 12:41:33 +02:00
Girish Ramakrishnan
19c744b17d
unbound-anchor is now part of ExecStartPre
...
it seems unbound-anchor is not a dep of unbound in ubuntu 24. some
installations are thus missing this package.
in any case, ignore unbound-anchor exit status
2024-09-20 10:00:01 +02:00
Girish Ramakrishnan
3b6e5d8ed1
cloudron-support: ipv6 checks
2024-09-19 12:11:56 +02:00
Girish Ramakrishnan
a72c038435
cloudron-support: also need to be remove any corrupt containerd
2024-09-09 18:42:08 +02:00
Girish Ramakrishnan
40c4a01bc0
cloudron-support: ipv6 check
2024-09-06 17:20:52 +02:00
Girish Ramakrishnan
cebaa71ce1
cloudron-support: improved dns check
2024-08-20 16:52:48 +02:00
Girish Ramakrishnan
232cdb8cb1
cloudron-support: do cert check before site check
2024-07-16 19:21:09 +02:00
Girish Ramakrishnan
bf34b13b7f
cloudron-support: add --patch
2024-07-12 11:06:06 +02:00
Girish Ramakrishnan
a1e2c9fd08
cloudron-support: print_system
2024-07-01 14:08:55 +02:00
Girish Ramakrishnan
f5931abdeb
cloudron-support: print ubuntu version
2024-07-01 13:38:18 +02:00
Girish Ramakrishnan
4c9e05b08f
cloudron-support: add netplan and product info
2024-07-01 08:24:01 +02:00
Girish Ramakrishnan
9c34727e88
cloudron-support: dig does not return error on SERVFAIL
2024-07-01 07:57:21 +02:00
Girish Ramakrishnan
939cd94ebb
typo
2024-07-01 07:55:08 +02:00
Girish Ramakrishnan
65f4ec0f43
cloudron-support: check dns now and not just unbound
2024-06-27 12:58:37 +02:00