Comments (6)
Edit: "Unable to open database" might be related to #9?
from meshagent.
The other thread, he got unable to open databsase because he tried to run another instance of the agent from the same folder, while the service was still running...
Did you copy the executable into a .bak file? The agent appends .db to the end of the executable path, and uses that for the db location, so I'm not sure why it would say unable to open database. I just tried that on my system, and it just says there is no .msh file.
On a side note, I'll look at the uninstall script to make sure it actually stops the service. If you want to manually stop the service, use the command: launchctl stop meshagent
Either way, I'll see what happens on MacOS, when I run two overlapping instances (which will force the db error), and see if I can get it to crash, because it's not supposed to crash when that happens, it's supposed to just give up and exit.
from meshagent.
Can I somehow send you a crash report to help?
I duplicated it to .bak
so I'd still have it after the the uninstall script ran.
Yeah, the uninstall script stopped the original service (/bin/launchctl unload /Library/LaunchDaemons/meshagent_osx64_LaunchDaemon.plist
, and deleted a bunch of files.
So what I did after a normal install:
$ cp /usr/local/mesh_services/meshagent/meshagent_osx64 /usr/local/mesh_services/meshagent/meshagent_osx64.bak
$ ~/Downloads/MeshAgent.mpkg/Uninstall.command
# now the above
from meshagent.
Tried running that command now, the uninstaller seem to have been thorough enough:
mac:~ luckydonald$ launchctl stop meshagent
launchctl stop error: No such process
mac:~ luckydonald$ sudo launchctl stop meshagent
Password:
launchctl stop error: No such process
mac:~ luckydonald$
from meshagent.
Turns out I needed to run sudo
as apparently the .db
file is not accessable otherwise.
mac:~ luckydonald$ sudo mv /usr/local/mesh_services/meshagent/meshagent_osx64.bak /usr/local/mesh_services/meshagent/meshagent_osx64
mac:~ luckydonald$ /usr/local/mesh_services/meshagent/meshagent_osx64
MeshCentral2 Agent
Unable to open database (1/10)...
Segmentation fault: 11
mac:~ luckydonald$ sudo /usr/local/mesh_services/meshagent/meshagent_osx64
MeshCentral2 Agent
Connecting to: ws://meshcentral.example.com:80/agent.ashx
Protocol Error encountered...
Protocol Error encountered...
Mesh Server Connection Error
AutoRetry Connect in 1925 milliseconds
Connecting to: ws://meshcentral.example.com:80/agent.ashx
Protocol Error encountered...
Protocol Error encountered...
Mesh Server Connection Error
AutoRetry Connect in 2675 milliseconds
The Websocket stuff might be related to a misconfiguration of my nginx
reverse proxy, and is out of scope of this issue, I'll open another one if I get problems with resolving that.
However, I keep the ticket open because of the segmentation fault. If that is solved, a permission check on the required files would help users what is going wrong.
from meshagent.
I had to also do
sudo nano /usr/local/mesh_services/meshagent/meshagent_osx64.msh
and change
- ws://example.com:80/agent.ashx
+ wss://example.com:443/agent.ashx
for it to finally work.
from meshagent.
Related Issues (20)
- Black Screen Issue HOT 3
- connected but blank terminal on Arm devices HOT 1
- Meshagent over http proxy in linux HOT 3
- Current security state of the agent HOT 3
- MSI package HOT 1
- Compiling of agent for linux fails HOT 1
- Notifybar does not close on Linux when disconnected HOT 4
- switch display/monitor on macos? HOT 3
- Support for mips_4kec instructionset (for example GS1900-8HP) HOT 5
- Old, EoL OpenSSL library (1.1.1s) used in latest MeshAgent
- Expire devicesharing link on window close HOT 2
- Linux desktop connection problem HOT 9
- No wakeup on meshagent clien MacOS Sonoma HOT 19
- unable to see agent on Meshcentral server running on ubuntu HOT 2
- meshagent.db not being removed on -fullinstall HOT 8
- Meshcntrl.js filter device by name that is number broken HOT 2
- How fast connect a raspberrypi to Meshcentral? HOT 15
- FEATURE REQUEST: Location Tracking (automatic) HOT 2
- FEATURE REQUEST: Agent Details Toolbar Icon HOT 1
- FEATURE REQUEST: Unzip Button (in files explorer) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meshagent.