cerebro icon indicating copy to clipboard operation
cerebro copied to clipboard

Can not start the app

Open nejdetckenobi opened this issue 7 years ago • 17 comments

  • [x] I am on the latest Cerebro.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Linux Mint 18 - 64 bit
  • Cerebro.app version: 0.3
  • Relevant information from devtools (See above how to open it): N/A

Issue

I can't launch the application. Yesterday, it was fine. It just slowed down a bit but it's a known issue I think. I removed it and reinstalled from deb. It still gives the same error.

~ ❯ cerebro 
/opt/Cerebro/resources/electron.asar/common/reset-search-paths.js:0



Error: Cannot find module '../dialog'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/opt/Cerebro/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.get [as dialog] (/opt/Cerebro/resources/electron.asar/browser/api/exports/electron.js:11:16)
    at process.<anonymous> (/opt/Cerebro/resources/electron.asar/browser/init.js:54:31)
    at emitOne (events.js:96:13)
    at process.emit (events.js:188:7)
    at process._fatalException (bootstrap_node.js:300:26)

nejdetckenobi avatar Jun 29 '17 06:06 nejdetckenobi

@nejdetckenobi interesting, there is no code ../dialog code in application. Can you try to install it from AppImage? Or install previous version?

KELiON avatar Jun 29 '17 08:06 KELiON

I installed 0.2.7 before which gives me the same error. It was AppImage. When I encountered this error, I removed the AppImage (I simply deleted it) then installed a later version from deb.

Can I do anything to get you enough information to fix this issue? It could be an electron issue I think.

nejdetckenobi avatar Jun 29 '17 11:06 nejdetckenobi

Ok I can reproduce the problem. When I login, cerebro starts. I tapped the shortcut several times. Dialog did not show up but when I check htop, I saw cerebro is running. So, when I try to launch more than one times, this error occurs. It masks the actual problem. I don't know why sometimes an error occurs at start. But I tested and got this error when I try to launch more than one.

nejdetckenobi avatar Jul 08 '17 16:07 nejdetckenobi

Hello. I got the same problem when I set Cerebro to autostart on boot. It gives that error and fail to start. If I start it manually from applications menu it works fine.

I am also on Linux MInt 18.

brpaz avatar Aug 14 '17 15:08 brpaz

I'm also getting this issue. Ubuntu 17.10

raphaklaus avatar Nov 19 '17 20:11 raphaklaus

@raphaklaus @brpaz , seems like @KELiON is out for a vacation or something. Please use killall to kill every single cerebro instance and then try to launch again. It won't crash, even if it crashes, it won't be the same error I think.

Too bad it's not showing any error message to user unless you start from terminal. The program does not check if its instance is running or not. That's also too bad.

nejdetckenobi avatar Nov 20 '17 06:11 nejdetckenobi

Same issue. Doesn't run on Ubuntu 17.10.

clankur avatar Jan 05 '18 22:01 clankur

Problem solved guys.

Take a look at: https://github.com/KELiON/cerebro/issues/354

wellcp avatar Jan 19 '18 13:01 wellcp

@wellcp That's not the issue. It is different.

nejdetckenobi avatar Jan 24 '18 07:01 nejdetckenobi

This error still occurs two years later...

Running appimage, and I have a pretty standard debian install.

Running from the desktop gives me a totally different error message:

Uncaught Exception:
TypeError: visitor(...).screenview is not a function
    at module.exports.exports.screenView.screenName (/tmp/.mount_O3G9hO/usr/bin/resources/app.asar/main.js:251:15)
    at module.exports.exports.default (/tmp/.mount_O3G9hO/usr/bin/resources/app.asar/main.js:915:30)
    at App.module.exports._electron.app.on (/tmp/.mount_O3G9hO/usr/bin/resources/app.asar/main.js:653:43)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

Electron really is a flimsy environment.

monomadic avatar Oct 29 '19 23:10 monomadic

Any update on this issue? I'm having this problem as well. Mine's .deb install.

kaungmyatlwin avatar Jan 13 '20 04:01 kaungmyatlwin

To be honest, I don't use it anymore. Change to Ulauncher. Must admit that I am pretty happy with it.

raphaklaus avatar Feb 28 '20 21:02 raphaklaus

  1. First Install JAVA as per the guide in graylog
  2. Set SELINUX to permissive to prevent it messing things [root@machinename ~]# setenforce permissive
  3. change to root directory [root@machinenamet ~]#cd /root
  4. Download the rpm wget https://github.com/lmenezes/cerebro/releases/download/v0.8.5/cerebro-0.8.5-1.noarch.rpm
  5. in the same directory run the install [root@machinenamet ~]# yum localinstall cerebro-0.8.5-1.noarch.rpm
  6. allow the program through firewall [root@machinenamet ~]# firewall-cmd --zone=public --add-port=9000/tcp --permanent

Notes: Current issue if it fails to start run this [root@machinenamet ~]# chown -R cerebro:cerebro /usr/share/cerebro to enable and start [root@machinenamet ~]# systemctl enable cerebro [root@machinenamet ~]# systemctl start cerebro

dangerousdino avatar Apr 19 '20 17:04 dangerousdino

To be honest, I don't use it anymore. Change to Ulauncher. Must admit that I am pretty happy with it.

Thank you. Ulauncher is great

piavgh avatar Oct 07 '20 02:10 piavgh

@nejdetckenobi still having this problem? i wish i could help

ogustavo-pereira avatar Feb 18 '21 11:02 ogustavo-pereira

I replaced my launcher to albert. But you can see that people are still having this issue. You can help them

nejdetckenobi avatar Feb 18 '21 11:02 nejdetckenobi

@nejdetckenobi yes, thanks

ogustavo-pereira avatar Feb 18 '21 17:02 ogustavo-pereira

I'm closing this issue as outdated. Cerebro is currently in v0.9.0.

Give it a try and, if the problem persists, feel free to open a new issue.

dubisdev avatar Nov 16 '22 15:11 dubisdev