Skip to content
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

Unexpected identifier in /crontab-ui/views/index.ejs #109

Closed
4 tasks done
starbuck93 opened this issue Nov 24, 2019 · 8 comments
Closed
4 tasks done

Unexpected identifier in /crontab-ui/views/index.ejs #109

starbuck93 opened this issue Nov 24, 2019 · 8 comments
Labels

Comments

@starbuck93
Copy link

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
    node -v v13.2.0 npm --version 6.13.1
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
drwxr-xr-x 10 1001 1001 4096 Nov 24 09:15 /usr/local/lib/nodejs/node-v13.2.0-linux-armv7l/lib/node_modules/crontab-ui
  • Read issues.md
  • Gone through existing open and closed issues.

System: Raspberry Pi 2 B+, image: 2019-09-26-raspbian-buster-lite

Linux hostname 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux

Installed crontab-ui from npm first, got this error message in the browser, then went back and installed via building a docker image and got the same error message in the browser:

{"message":"Unexpected identifier in /crontab-ui/views/index.ejs while compiling ejs\n\nIf the above error is not helpful, you may want to try EJS-Lint:\nhttps://github.com/RyanZim/EJS-Lint\nOr, if you meant to create an async function, pass `async: true` as an option."}
@Vash1990
Copy link

Got the same issue on an Ubuntu 18.04 with: node -v v13.2.0 npm --version 6.13.1

@alseambusher
Copy link
Owner

Interesting. I can't reproduce this on mac. What happens when you run this:

docker run -p 8000:8000 alseambusher/crontab-ui

@starbuck93
Copy link
Author

@alseambusher The error message I pasted above is what happens. I installed it via npm then created a docker container and both had the same result.

@arimav
Copy link

arimav commented Nov 27, 2019

Same error here. It was running fine on macOS 10.12 and then I upgraded to 10.15 and it was not behaving properly so I updated npm and crontab-ui to the latest version ran the command and same error.

{"message":"Unexpected identifier in /usr/local/lib/node_modules/crontab-ui/views/index.ejs while compiling ejs\n\nIf the above error is not helpful, you may want to try EJS-Lint:\nhttps://github.com/RyanZim/EJS-Lint\nOr, if you meant to create an async function, pass async: true as an option."}

@alseambusher
Copy link
Owner

Might be related to mde/ejs#477

@alseambusher
Copy link
Owner

alseambusher commented Nov 27, 2019

Upgrade to 0.3.9 (latest) https://github.com/alseambusher/crontab-ui/releases/tag/v0.3.9 and let me know if it fixes things

@arimav
Copy link

arimav commented Nov 27, 2019

Yup, it worked!!!

Now if I can only figure out where my backups are stored :(

Thanks

@alseambusher
Copy link
Owner

Great!

It is usually stored in $(npm root -g)/crontab-ui/crontabs folder. Ideally, you should copy the contents of that folder when you upgrade crontab-ui. I should add that to readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants