Running into issues with Ubuntu geth >> Error: account unlock with HTTP access is forbidden - http

I am using Ubuntu 18.04-3 and when executing the command >
personal.unlockAccount(web3.eth.accounts[0],null)
I am getting the following error,
enter image description here
I tried some of the suggestions here (enter link description here)
and the suggestions (here) for the internal/ethapi/api.go
I included in the file
--allow-insecure-unlock (//I have add as in the suggestions but does not indicate where and how to place it//)
Appreciate your time in advance

You have places --allow-insecure-unlock at the wrong place. It should be when starting geth instant.
Example:
$ geth {--rpc etc your other flags} --allow-insecure-unlock

Related

Error reading or writing history file in PowerShell on Linux

I've just had PS 7.0.2 installed on 2x boxes running RHEL 7.x (maipo). Oddly enough, one of them is showing the following error
$ pwsh
PS /home/user_name> dir
Error reading or writing history file '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt': Access to the path '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt' is denied
PS /home/user_name> exit
Error reading or writing history file '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt': Access to the path '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt' is denied
This error will not be reported again in this session. Consider using a different path with:
Set-PSReadLineOption -HistorySavePath <Path>
Or not saving history with:
Set-PSReadLineOption -HistorySaveStyle SaveNothing
I can't figure out why. All I did was download the RPM and install it. And both the boxes are practically copies of each other :(
Any suggestions?
Err .. just figured it out. It was an errant umask setting overriding the default in my ~/.bashrc.
Commenting it out solved the problem.

Error installing Oracle on windows - inverted path bars

I know nothing at all about ORACLE.
I'm trying to install Oracle database 11 on windows 7 64 bit.
After following this tutorial
http://o7planning.org/en/10211/installing-and-configuring-oracle-database-11g
I get this error message
Having absolutely no clue about what is going on, I added ORACLE_UNQNAME=orcl to the environment variable in "system properties>environment variable" graphic interface.
I also ran this command on a command line window:
c:\> set ORACLE_UNQNAME=orcl
then I ran the command asked in the first error window:
emctl status dbconsole
and I got this answer:
C:\app\THIS-PC\product\11.2.0\dbhome_1\BIN>emctl status dbconsole
OC4J Configuration issue. C:\app\THIS-PC\product\11.2.0\dbhome_1/oc4j/j2ee/OC4J_D
BConsole_THIS-PC_orcl not found.
Notice that the path in the last error has linux bars "/", which are inverted with respect to windows path bars: "\".
Off course it will not find anything on that path.
I'm absolutely clueless on how to fix this. Can you help me?

add torrent to transmission from cron

I'm trying to add torrents to transmission from python. The code is shown below...
def download_movie(magnet_link):
os.system('transmission-gtk')
#webbrowser.open(magnet_link)
os.system('transmission-gtk ' + magnet_link)
As you can see I've tried 3 different options to add these torrents but none work.. I've also added XDG_RUNTIME_DIR="/run/user/1000" in the crontab file. The log in /var/mail is running the script but it shows: (transmission-gtk:14091): Gtk-WARNING **: cannot open display:. I've also run the command xhost + as said in http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display/ but still the gtk-warning comes up. Anyone have any ideas? What I want eventually is that I run this script on a pi so if anyone has any alternatives, I'm all ears.. Thanks.
It's because you are trying to use GUI app where console one would be appropriate.
See man transmission-remote for details:
DESCRIPTION
transmission-remote is a remote control utility for transmission(1) and transmission-daemon(1).

Why is RSelenium always giving an error when I want to define a Firefox profile

I am using RSelenium and want to set a Firefox profile. So I tried to reproduce the example of the answer to this question. However, no matter what I change I always get the following error. What am I doing wrong?
I already read in the RSelenium manual that for windows systems RTools should be installed when one wants to make a Firefox profile. I did but nothing changed.
The error is the following:
Error in file(tmpfile, "rb") : cannot open the connection
In addition: Warning messages:
1: running command '"zip" -r9Xjq "C:\Users\mariu\AppData\Local\Temp\RtmpQfl3bl\file15c41fc2411d.zip" "C:\Users\mariu\AppData\Local\Temp\RtmpQfl3bl/firefoxprofile/prefs.js" ' had status 127
2: In file(tmpfile, "rb") :
cannot open file 'C:\Users\mariu\AppData\Local\Temp\RtmpQfl3bl\file15c41fc2411d.zip': No such file or directory
the problem is that Rselenium cannot create a zip file of your Firefox Profile (error status 127), therefore cannot read it in the next command line.
I resolved following this answer:
Create zip file: error running command " " had status 127 .
Do as the link says , shut down R, restart your pc and it should work.
Thanks,
Rob
Sometimes, for some reasons, it is not enough to add Rtools file location to Environmental Variables as was mentioned here. To solve the problem you need to add path within R using folowing code:
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
Then PC needs to be reseted. After that you can check whether path was setted correctly.
Sys.which("make")
## "C:\\rtools40\\usr\\bin\\make.exe
If output of sys.which is "" then something went wrong. By the way the entire procedure has been described here: https://cran.r-project.org/bin/windows/Rtools/.

Issues in running R from Perl

I want to include Statistics::R for my program.
The statement I am including is:
use Statistics::R;
Is there something wrong with it?
I tried to run it with just this statement included, the error i got was
Can't locate Statistics/R.pm in #INC(#INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at rperl.pl line 2
By the way I am using perl(v5.14.2) on ubuntu,using remote access to a linux server.
The solution was to install the module as non-root user.
The details are provided in the following link:
http://users.soe.ucsc.edu/~you/notes/perl-module-install.html
After doing the things described here, a couple of small steps are to be completed which are mentioned in the following link:
http://perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations
This worked for me! I hope it would be of help to others too!

Resources