jhuckaby/Cronicle

Build Error: Error: Could not locate match in HTML source: undefined: COMBINE_SCRIPT

aflabhay opened this issue · 7 comments

Getting below while running last command. node bin/build.js dist Can yo help me with this?

Build Error: Error: Could not locate match in HTML source: undefined: COMBINE_SCRIPT

mkdir -p /opt/cronicle
cd /opt/cronicle
curl -L https://github.com/jhuckaby/Cronicle/archive/v1.0.0.tar.gz | tar zxvf - --strip-components 1
npm install
node bin/build.js dist

Err.... there is no version v1.0.0. That's just an example. Please read the instructions in the docs, just under those manual install commands:

Replace v1.0.0 with the desired Cronicle version from the release list, or master for the head revision (unstable).

Hey @jhuckaby , I used latest version only. I just copied and pasted for steps. Error I am getting on last steps with version 0.9.51

What version of Linux are you running? And what version of Node.js?

These questions are part of the GitHub issue template, which you should fill out before submitting an issue.

Node version v20.13.1
NPM version 10.5.2
@jhuckaby

Please resubmit your issue using the GitHub issue template, and fill it out properly. I asked for your Linux version, and got nada.

This is a completely free, open source project, maintained by one person. Help me help you 😊

Installing Cronicle on a fresh Linux machine is tested constantly. Here is the full output from installing it on Ubuntu 23 with Node.js 20:

root@ubuntu-23-x86:/home/jhuckaby# 
root@ubuntu-23-x86:/home/jhuckaby# uname -a
Linux ubuntu-23-x86 6.7.12-orbstack-00201-g2ddb8f197a46 #1 SMP Tue May 21 04:38:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu-23-x86:/home/jhuckaby# 
root@ubuntu-23-x86:/Users/jhuckaby# 
root@ubuntu-23-x86:/Users/jhuckaby# node --version
v20.13.1
root@ubuntu-23-x86:/Users/jhuckaby# 
root@ubuntu-23-x86:/Users/jhuckaby# 
root@ubuntu-23-x86:/Users/jhuckaby# mkdir -p /opt/cronicle
root@ubuntu-23-x86:/Users/jhuckaby# cd /opt/cronicle
root@ubuntu-23-x86:/opt/cronicle# curl -L https://github.com/jhuckaby/Cronicle/archive/v0.9.51.tar.gz | tar zxvf - --strip
-components 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   98k    0   98k    0     0   106k      0 --:--:-- --:--:-- --:--:--  106kCronicle-0.9.51/.github/
Cronicle-0.9.51/.github/issue_template.md
Cronicle-0.9.51/.github/pull_request_template.md
Cronicle-0.9.51/.npmignore
Cronicle-0.9.51/LICENSE.md
Cronicle-0.9.51/README.md
Cronicle-0.9.51/bin/
Cronicle-0.9.51/bin/build-tools.js
Cronicle-0.9.51/bin/build.js
Cronicle-0.9.51/bin/control.sh
Cronicle-0.9.51/bin/cronicled.init
Cronicle-0.9.51/bin/debug.sh
Cronicle-0.9.51/bin/install.js
Cronicle-0.9.51/bin/run-detached.js
Cronicle-0.9.51/bin/shell-plugin.js
Cronicle-0.9.51/bin/storage-cli.js
Cronicle-0.9.51/bin/storage-migrate.js
Cronicle-0.9.51/bin/storage-repair.js
Cronicle-0.9.51/bin/test-plugin.js
Cronicle-0.9.51/bin/url-plugin.js
Cronicle-0.9.51/docs/
Cronicle-0.9.51/docs/APIReference.md
Cronicle-0.9.51/docs/CommandLine.md
Cronicle-0.9.51/docs/Configuration.md
Cronicle-0.9.51/docs/Development.md
Cronicle-0.9.51/docs/InnerWorkings.md
Cronicle-0.9.51/docs/Plugins.md
Cronicle-0.9.51/docs/Setup.md
Cronicle-0.9.51/docs/WebUI.md
Cronicle-0.9.51/htdocs/
Cronicle-0.9.51/htdocs/blank.html
Cronicle-0.9.51/htdocs/css/
Cronicle-0.9.51/htdocs/css/style.css
Cronicle-0.9.51/htdocs/favicon.ico
Cronicle-0.9.51/htdocs/images/
Cronicle-0.9.51/htdocs/images/clock-bkgnd.png
Cronicle-0.9.51/htdocs/images/clock-hour.png
Cronicle-0.9.51/htdocs/images/clock-minute.png
Cronicle-0.9.51/htdocs/images/clock-second.png
Cronicle-0.9.51/htdocs/images/loading-16.gif
Cronicle-0.9.51/htdocs/images/loading-24.gif
Cronicle-0.9.51/htdocs/images/loading.gif
Cronicle-0.9.51/htdocs/images/logo-1024.png
Cronicle-0.9.51/htdocs/images/logo-128.png
Cronicle-0.9.51/htdocs/images/logo-256.png
Cronicle-0.9.51/htdocs/images/logo-512.png
Cronicle-0.9.51/htdocs/images/logo-64.png
Cronicle-0.9.51/htdocs/index-dev.html
Cronicle-0.9.51/htdocs/js/
Cronicle-0.9.51/htdocs/js/app.js
Cronicle-0.9.51/htdocs/js/home-worker.js
Cronicle-0.9.51/htdocs/js/pages/
Cronicle-0.9.51/htdocs/js/pages/Admin.class.js
Cronicle-0.9.51/htdocs/js/pages/Base.class.js
Cronicle-0.9.51/htdocs/js/pages/History.class.js
Cronicle-0.9.51/htdocs/js/pages/Home.class.js
Cronicle-0.9.51/htdocs/js/pages/JobDetails.class.js
Cronicle-0.9.51/htdocs/js/pages/Login.class.js
Cronicle-0.9.51/htdocs/js/pages/MyAccount.class.js
Cronicle-0.9.51/htdocs/js/pages/Schedule.class.js
100  333k    0  333k    0     0   312k      0 --:--:--  0:00:01 --:--:-- 1678k
Cronicle-0.9.51/htdocs/js/pages/admin/
Cronicle-0.9.51/htdocs/js/pages/admin/APIKeys.js
Cronicle-0.9.51/htdocs/js/pages/admin/Activity.js
Cronicle-0.9.51/htdocs/js/pages/admin/Categories.js
Cronicle-0.9.51/htdocs/js/pages/admin/Plugins.js
Cronicle-0.9.51/htdocs/js/pages/admin/Servers.js
Cronicle-0.9.51/htdocs/js/pages/admin/Users.js
Cronicle-0.9.51/lib/
Cronicle-0.9.51/lib/api.js
Cronicle-0.9.51/lib/api/
Cronicle-0.9.51/lib/api/admin.js
Cronicle-0.9.51/lib/api/apikey.js
Cronicle-0.9.51/lib/api/category.js
Cronicle-0.9.51/lib/api/config.js
Cronicle-0.9.51/lib/api/event.js
Cronicle-0.9.51/lib/api/group.js
Cronicle-0.9.51/lib/api/job.js
Cronicle-0.9.51/lib/api/plugin.js
Cronicle-0.9.51/lib/comm.js
Cronicle-0.9.51/lib/discovery.js
Cronicle-0.9.51/lib/engine.js
Cronicle-0.9.51/lib/job.js
Cronicle-0.9.51/lib/main.js
Cronicle-0.9.51/lib/queue.js
Cronicle-0.9.51/lib/scheduler.js
Cronicle-0.9.51/lib/test.js
Cronicle-0.9.51/package-lock.json
Cronicle-0.9.51/package.json
Cronicle-0.9.51/sample_conf/
Cronicle-0.9.51/sample_conf/config.json
Cronicle-0.9.51/sample_conf/emails/
Cronicle-0.9.51/sample_conf/emails/changed_password.txt
Cronicle-0.9.51/sample_conf/emails/event_error.txt
Cronicle-0.9.51/sample_conf/emails/job_fail.txt
Cronicle-0.9.51/sample_conf/emails/job_success.txt
Cronicle-0.9.51/sample_conf/emails/recover_password.txt
Cronicle-0.9.51/sample_conf/emails/welcome_new_user.txt
Cronicle-0.9.51/sample_conf/setup.json
Cronicle-0.9.51/sample_conf/ssl.crt
Cronicle-0.9.51/sample_conf/ssl.key
root@ubuntu-23-x86:/opt/cronicle# 
root@ubuntu-23-x86:/opt/cronicle# npm install
npm WARN deprecated mdi@1.9.33: The mdi package was renamed to @mdi/font after v2.2.43. Please rename in your package.json for future updates.

> Cronicle@0.9.51 postinstall
> pixl-boot install

Installing startup service: Cronicle...
OK.
Successfully registered startup service.

added 247 packages, and audited 248 packages in 6s

8 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
root@ubuntu-23-x86:/opt/cronicle# 
root@ubuntu-23-x86:/opt/cronicle# 
root@ubuntu-23-x86:/opt/cronicle# node bin/build.js dist

Welcome to Cronicle!
First time installing?  You should configure your settings in '/opt/cronicle/conf/config.json'.
Next, if this is a master server, type: '/opt/cronicle/bin/control.sh setup' to init storage.
Then, to start the service, type: '/opt/cronicle/bin/control.sh start'.
For full docs, please visit: http://github.com/jhuckaby/Cronicle
Enjoy!

root@ubuntu-23-x86:/opt/cronicle# 

I am not sure why you are having issues, but you're giving me very little information. I cannot help you if you don't help me.

Hey, sorry for that. I am using Mac OS . Adding details in a new issue.

#764.
Added details in a new issue here @jhuckaby