Skip to content
View in the app

A better way to browse. Learn more.

Learn more

PG3x 3.4.29 won't start: missing native modules

Featured Replies

@bmercier

After upgrading PG3x from 3.4.28 to 3.4.29 through eisy-ui, and rebooting PG3x wouldn't start.

Running pg3.js manually showed:

Cannot find module bcrypt_lib.node (bcrypt/lib/binding/napi-v3)

After I fixed that, it failed the same way on better-sqlite3/build/Release/better_sqlite3.node.

pkg check -s pg3x passes, but neither .node file is in the package, and there's no post-install script to build them. It looks like the 3.4.29 package shipped without its native bindings?

Workaround

cd /var/polyglot
sudo npm rebuild bcrypt better-sqlite3

After reboot all plugins came back with their slots and nodes intact.

If you can reproduce this, the 3.4.29 package needs a re-roll.

Yup, I just upgraded one of my test Polisys to PG3x 3.4.29 and it's not working. It keeps trying to restart PG3x (seeing that in the udx log file). I also can't log into eisy-ui.

People should hold off on this upgrade for the time being, something is wrong.

I have run into the same issue. After updating PG3x to 3.4.29 it will not run. I was able to get into eisy-ui a couple of times and Tried to resrart from services and it starts and then stops again.

I just ran @Diesel 's workaround above (sudo npm rebuild bcrypt better-sqlite3) and that appears to have fixed it, if anyone is hurting right now. I'm sure UDI will come up with a quick solution.

I see PG3x is back to 3.4.28 on the upgrade screen.

Is it safe to update to the lower version?

My programming skills are not very good, so I'm nervous about Diesel's approach.

Create an account or sign in to comment

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.