-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
EmbeddedMongo on /tmp directory has not execution permission #422
Comments
Can you try to run this executable in /tmp ? I would guess that your Linux distro disabled executables in /tmp. If you can copy this file to an other directory and execute it there than this is the cause.. |
No, I execute this code with the IntelliJ DI play button and the execution goes under my home. |
Hmm..you can try to create a breakpoint and inspect the file.. I would guess that the executable bit is set, but your Linux dist prohibits execution of anything located in /tmp |
I am facing the same problem on a Mac. |
As I wrote here I have tried to change the file directory to my home (with all permissions) and have the same results. |
Hmm.. this is strange as I did not change anything related to this.. |
Maybe you can try |
@filirnd any progress with that? |
Sorry, only today I can try this. |
@filirnd If you dont use spring then you will find how to use it here: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/blob/embed-mongo-4.x/Howto.md |
@filirnd if you use spring this should work as an example: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo.spring/blob/spring-2.7.x--embed-mongo-4.x/src/test/java/de/flapdoodle/embed/mongo/spring/autoconfigure/AutoConfigFirstIsolationTest.java |
the first example works. Only for info, I received this log errors (but insert and find works great):
|
@filirnd .. hmmm.. thanks.. looks like mongod tries to download some version information stuff? strange.. |
Thank you. However, is not a problem, now embedded mongo works great. Seems it uses the home folder now for temporary files. |
@filirnd with the latest release i extract all binaries to some directory in home folder and checking the hash of the content to ensure that the right version is used .. so /tmp is not used for that anymore. |
Hi I've an issue with mongo embedded. I've fedora 32 SO with kernel "Linux fedora-desktop 5.11.22-100.fc32.x86" set up this dependency on maven:
And this is my test code:
This is the issue that I encountered:
I have tried to set system properties flapdoodle directory to another dir with all permission but it not works too.
Only if I launch the java application with root permission I can run this code without errors.
I have had this error since 1 month ago. Before the mongoembedded worked great.
The text was updated successfully, but these errors were encountered: