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

When left running 24x7, sometimes A JavaScript error is found on Monday and requires clearing to print #19

Open
evilsizorm opened this issue Dec 7, 2020 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@evilsizorm
Copy link

This morning a dialog box showed indicating, "A JavaScript error occurred in the main process". I have attached an image. Even thought it looks like the daemon is running. Our staff reported that printing did not resume until the error was cleared.

TypeError: Cannot read property '0' of undefined at Function.

Mark
AlmaPrintDaemonJavaScriptError

@mgobat mgobat self-assigned this Dec 7, 2020
@mgobat
Copy link
Contributor

mgobat commented Dec 7, 2020

Hmmm....I wonder if this was due to the new Alma release over the weekend....and there's a place in the APD code that still poses a problem.

@evilsizorm
Copy link
Author

This morning we experienced a similar occurrence. Perhaps there was server side maintenance this weekend as well.

Mark
Alma Printer Daemon Error 2021 01 11

@mgobat
Copy link
Contributor

mgobat commented Jan 12, 2021

Yes, there was a new release over the weekend. I'll look into it again. Thanks.

@mgobat
Copy link
Contributor

mgobat commented Jan 20, 2021

Mark...is there anything in the log file from around the time this last happened? The file would be located in the username/AppData/Roaming/alma-print-daemon directory. Considering the screenshot you included, I'm going to guess no.
Thanks. -m

@evilsizorm
Copy link
Author

I just checked there is nothing in the log since December 28. I also looked in the log for the December 7th occurrence and found nothing related. 12/8 has checking for update notes, and that is what I see on 12/28 as well.

Mark

@mgobat
Copy link
Contributor

mgobat commented Jan 21, 2021

Thanks for checking, Mark.

mgobat added a commit that referenced this issue Jan 28, 2021
Another attempt at fixing issue #19.
@mgobat mgobat added the bug Something isn't working label Feb 2, 2021
@evilsizorm
Copy link
Author

evilsizorm commented Mar 8, 2021

This morning when we arrived the Printer Daemon was in an error state with different error messages than previously. See attached.

Follow up clarification: The Printer Daemon was in error this morning, after I believe an Alma update occurred this weekend. However the error in the picture seems likely to be from the user clicking the icon to run the older version of the Daemon which we understand is not compatible with the updated JSON file format. So this error image is likely unhelpful. We removed the shortcut to the old version and the new version worked properly when restarted.

Print Daemon Error 2021 03 08

mgobat added a commit that referenced this issue Mar 11, 2021
* Support multiple printer profiles

Updates to support linking different Alma printout queues to different physical local/network printers.

Also, one installation on a workstation supports multiple users with their own configuration.

* Update package.json

Option to install for all users or just the logged in user.

* Update main.js

Fix defect when writing error log.  If a per-workstation installation, the app would crash trying to write the log where it didn't have permission.  Fix logging to write to user's directory.

* Update main.js

Another attempt at fixing issue #19.

* Upgrade electron and electron-builder

Electron -> 9.4.2
Electron-Builder ->22.9.1

* Update README.md
@evilsizorm
Copy link
Author

This morning a javascript error was showing in a dialog box. Once we okayed it, printing resumed.
Alma Print Daemon 2021 04 05

@mgobat
Copy link
Contributor

mgobat commented Apr 5, 2021

That's progress...we got a line number in the error this time. :)
Any errors logged in your log.alma-print-daemon.* this time?

@evilsizorm
Copy link
Author

evilsizorm commented Apr 6, 2021

Mark there was an error message:

Error on 2021-04-04T02:17:52.204Z': 503 Service Unavailable - General error with the API Gateway – please retry later.

This was with v1.3 beta. We are upgrading to 1.3 proper now.

@evilsizorm
Copy link
Author

After the weekend update we received a similar error this morning.
Alma Printer Daemon 2021 05 03

@markcorry
Copy link

We are seeing this error now, too!
PXL_20210902_190611786

@mgobat
Copy link
Contributor

mgobat commented Sep 2, 2021

@markcorry, with which version of the Alma Print Daemon? If pre-2.0, please try the 2.0 beta. Thanks.

@daniels
Copy link

daniels commented Feb 24, 2022

with which version of the Alma Print Daemon? If pre-2.0, please try the 2.0 beta. Thanks.

We just implemented Alma Print Daemon and got this error. However my IT department was reluctant to install a beta version, so we settled on 1.3.1, the latest stable release. Are bugs only fixed on the beta? If so, what makes a release stable? Is there a plan for a new stable release?

@mgobat
Copy link
Contributor

mgobat commented Feb 24, 2022

@daniels, version 1.3.1 is no longer receiving updates. 2.0 added the ability the install the Alma Print Daemon as a Windows service, Any new features and bug fixes will happen in 2.0. Its been in use for quite a while by some Alma customers. We were hoping for additional feedback on the Windows Service feature before it comes out of beta.

@mgobat
Copy link
Contributor

mgobat commented May 2, 2023

@evilsizorm, please give the latest beta a try, if you like: https://github.com/ExLibrisGroup/alma-print-daemon/releases/tag/v2.2.0-beta-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants