Meteor - When running the "Meteor" error occurs - meteor

I actually do not know how I messed things up with meteor, I did not touch anything related to meteor for all I know. Today all of a sudden my text editor, Atom stopped opening. This required me to spend all day to search for reasons why it didn't work and eventually I got it working again but I had to delete a lot of files related to Atom. After I got Atom up and working again, I went to run my app, but it did not run. Instead, game me an error that is super long:
Error: SQLITE_CORRUPT: database disk image is malformed
and also gives some other unreadable text. But it does say something about the promise_server.js:218 file. I also read on this forum that you can use a command like rm rf or something like that I cannot find the forum where it said that again.... but it did not work. I have run out of possible solutions, if you know what is going on, pls help. Thanks in advance!

That should help:
cd <your_meteor_project_folder>
rm -rf ./.meteor
Then restart your meteor app.

Using sqlite3 you can repair the DB.
cd ~/.meteor/package-metadata/v2.0.1
sqlite3 packages.data.db .dump > backup
mv packages.data.db packages.data.db.bustedX
sqlite3 packages.data.db < backup
rm backup
Essentially, even though the DB reports as corrupt. The SQLite tool can dump it and then recreate it.

Related

Having a problem with build\nodes\runnodes

I've been trying to build a CordApp and I downloaded the template from GitHub. The code that I've written is available on the following link:
https://github.com/shanmukhipriya99/taskcordapp
When I'm trying to run gradlew.bat deployNodes in the cmd terminal, this is what I got:
[gradlew.bat deployNodes]
Then when I run build\nodes\runnodes in the cmd terminal, this is what I got:
[build\nodes\runnodes]
Then I have three other terminal windows opening-up, they load the Corda part, show some red text that says something about the developer mode and all the node terminals get closed automatically before I'm able to read the entire text.
Can someone please help me in figuring out where I'm wrong!?
Thanks in advance!
It looks like you have had successfully started the nodes all in one terminal. I am not entirely sure, if this is the only issue, but I have seen this issue before. This is caused by lack of permission of the Terminal.
I have seen it happened for both Windows and Unix/Macos users. To resolve it you might need to grant the permission to Terminal manually.
If it still does not work out, I would actually suggest the alternative quick fix that Ashutosh mentioned in comment. Open a new tab and go to the root folder of each nodecd /build/nodes/XXX, and start the node manually via java -jar corda.jar

how to load sqlite3 in windows 10?

I am a newbie with sqlite3 and trying to use it in windows 10. At first, I download it from website, ofcourse there was no problem. Then I put it at C:\, the name of the folder was sqlite3.
Then I add this code into environment variable : C:\sqlite3, I thought that it could help sqlite run.
Then, I tried to run sqlite3 by this code C:\sqlite3, but I could not run it.
I am very confuse, could you please give me some ideas? Thank you very much.

Meteor error - promise.js

I have a reoccuring problem with my meteor applications that has caused me to delete and redo all my projects. The problem is that whenever I go to start up my app with meteor run or meteor it shows this error:
I had this problem with another one of my app and it required me to uninstall meteor and reinstall it for it to work..I was wondering if there was any other way to fix this problem. Many people have said delete you .meteor folder or .meteor/local folder and start it up again but that has not worked for me. Another solution that has worked for many people except me is the command that you run inside your application rm -rf ./.meteor but I have no luck with that. I don't know what to do at this point in terms of fixing my problem. and I do not have a problem with my code, as it was working about 2 days ago and I haven't touched it since.
I have:
Windows 10 Pro.
64 bit operating system(I don't know if that matters).
Meteor v1.5
Stuart,
Deleting the .meteor folder isn't a good idea, because it contains the list of packages, and your project won't work at all then.
You can delete .meteor/local, because that is basically its temporary build area. Another thing you can do it delete the node_modules folder, or type npm rebuild which tells npm to rebuild the node_modules directory in case there is some corruption in there.
meteor reset will clear out your database in case that is the problem.
You can delete~/.meteor, where ~ is your home directory. Meteor will rebuild it.
As for the screen shot, it's better if you can paste the actual text here, because I can't tell what that character is it's complaining about. Remember to click the button with the braces to format it correctly.
Hopefully one of the above will help you. Otherwise perhaps you could share the project?

Aptana studio with file lost

I did a project with my friend using aptana sync by FTP.
Today when i save file on FTP my connection lost.i open file.php again There are 455 line from 600 line.i didn't sync with git and my friend don't open aptana yet.Can i recover it? Have a temp file or history? ;(
I would suggest Eclipse Local History as your first step: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-55.htm
On linux I was able to recover the file from /tmp folder (it has a gibberish name there so you have to digg a little). hope it helps someone in the future.
Never say never, I just lost my 2 days work after out-of-mind checkout with lot of ucommitted changes and ended up here... I couldn't get it from local history in Aptana, /tmp was empty but I could find all the files in .metadata hidden dir in workspace. I guess git makes the local history act differently in Aptana itself, but it's still stored here .metadata/.plugins/org.eclipse.core.resources/.history

How do I get wkhtmltopdf running for a Drupal site on cPanel shared hosting?

First off, I will acknowledge that I am aware of another similar thread on the topic of wkhtmltopdf, but it was not similar enough to resolve my issue. Here's the other thread: wkhtmltopdf
Second, I will say that I have successfully used wkhtmltopdf with a Drupal site on a dedicated server that I run, where I installed the libX11 and used the most recent static version of wkhtmltopdf. That's on a CentOS 5 system and it runs nicely.
So, I have another hosting arrangement and I need to get the wkhtmltopdf to work, because it does the most amazing job producing bookmarked PDFs. The PDFs are beautiful.
The hosting is cPanel. I determined that it is on a server that has CentOS 5.5. It is not a problem to drop the static wkhtmltopdf in the print module's lib folder. However, I get the following message back in the Drupal admin status reports page (admin/reports/status).
It says,
"wkhtmltopdf library
The currently selected version of wkhtmltopdf () is not supported. Please update to a newer version."
I have obtained all of the needed .so files for CentOS 5, based on what jockie provided in his answer in the other StackOverflow thread.
Can someone knowledgeable confirm that his list was complete?
The idea of a shell script wrapper seems interesting and appears could be done for Drupal, if the naming of the shell script is called something like "wkhtmltopdf-wrapper.sh".
I have tried to use the shell script code that jockie provided, in a shell script. I did place all of the .so files in a sub-folder called "lib". I confess that I do not know what such things mean, in the script:
export HOME="$PWD"
Can someone interpret for me, what $PWD means?
export LD_LIBRARY_PATH="$PWD/lib/"
I understand that the script is going to get the .so files with that line, yes?
And can someone interpret the following line:
exec $# 2>/dev/null
What I am wondering is, where does the actual pdf get output? I did run the script. It did not throw any errors. However, I did not see a resulting PDF file.
Also, jockie's directions are not totally clear or defined enough. He says, "(some of them are symlinks)" under the list of .so files. Are such lines (in his list), the symlinks?:
lib/libX11.so.6 lib/libX11.so.6.2.0
Or am I mistaken? I was able to get all of them, so I don't know why they would be symlinks. The only thing is, that some of the versions are different. Do I need to delete the following files and make symlinks instead?:
lib/libX11.so.6
lib/libXau.so.6
lib/libxcb.so.1
lib/libXext.so.6
Should the shell script code be written differently, with Drupal in mind?
Thanks for reading and I hope someone can help!
...Finally, if anyone knows of a better solution, please share! Again, I appreciate the help!
...There does not seem to be a way, here on StackOverflow.com to notify jockie to check out this thread. I wish there was a way to write to them or notify them, so that they could clarify for them-self or contribute to this thread as well. If someone knows of a way, please let me know that too!

Resources