pgAdmin4 web "Utility Not Found" - apache

I'm running pgadmin4 on Apache Web Server and i'm having this problem when i'm trying to import/export data from a CSV uploaded to the Storage Manager.
Storage Manager works, can upload and download.
Utility not found. Could not find the specified server
/pgadmin4/import_export/utility_exists/1 returns this JSON
Things that i've tried:
Restarting postgresql and apache
Set apache allow all CORS configuration "*"
Set PostgreSQL 14 binary path in pgAdmin preferences -
/usr/lib/postgresql/14/bin
I can't find any solution to this specific problem, all solutions i've seen were simply fixed by setting the binary path.

Related

Apache static data file caching

I have a VPS with Centos 7 and Apache 2.4. This server acts as a backend data source for a mobile app. Periodically new data files with unique file names are generated, after which they are never changed. I am looking for the best way to get Apache to cache these data files in memory without restarting the server each time a datafile is generated. Thank you in advance for your help.
In apache 2.4 you could use the mod_cache module. More infos about this on the official apache website:
https://httpd.apache.org/docs/2.4/caching.html
Not sure I understand the "without restarting the server each time a data file is generated" part!

virtuoso, how to upload rdf files remotely using isql and ld_dir?

I am trying to upload *.ttl files in a virtuoso server using iSQL and the function ld_dir('path','file','graph').
If I run the thing in local everything works fine. I add the path in the DirsAllowed inside the virtuoso.ini config file. Then using the isql I run ld_dir(,,) and rdf_loader_run() and I upload the file.
I would like to do the same thing but from a remote computer. How should I configure the virtuoso.ini to allow paths from a remote computer?
Thanks, and sorry for the cross-posting.
Current versions of Virtuoso do not support loading data files from remote locations. The data file must be accessible through Virtuoso's local filesystem, though it may be a remote mount (e.g., NFS), and the containing directory must be included in Virtuoso's DirsAllowed setting. Loading from remote locations is planned for a future version.
You'll generally get faster Virtuoso-specific answers by asking on the Virtuoso Users mailing list or the Virtuoso support forums

-bash: imp: command not found oracle

I have a centos Linux machine and a oracle server installed on a server which is located at a remote location.
I have installed oracle client on my Linux centos machine using the link :
How to install SQL * PLUS client in linux
It may be noted that while installing client there was no /network/admin directory and hence no tnsnames.ora file. now I have manually created the directories and have have created a tnsnames.ora file. I am able to connect to remote server.
Now when I look into the bin folder I get just three exe
adrci genezi sqlplus.
I cant find the imp.
Hence when I try to import the dump file from centos to oracle , I get the error:
-bash: imp: command not found
I am using the following command to import dump on oracle server:
imp 'rdsuser#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=oracledbrds.cwuabchlhlu.us-east-2.rds.amazonaws.com)(Port=1521))(CONNECT_DAT A(SID=oracledb)))'
Kindly help
The instant client does not include many of the tools from the full client, including imp/exp, their newer data pump equivalents, SQL*Loader etc. See the instant client FAQ, which highlights that it's largely for distribution with your own applications, but can incude SQL*Plus - the only tool mentioned.
If you need to use export/import or any other tools then you will need to install the full client, or run them on the server; which might be an issue with AWS. Amazon have an article on importing data into Oracle.
Incidentally, you can put your tnsnames.ora file anywhere as long as you set TNS_ADMIN to point to that location, but you aren't referring to it in your imp command anyway - you're specifying all the connection data. If you know the service name, which may be different to the SID (you can run lsnrctl services on the server to find the right value) you can use the 'easy connect' syntax:
sqlplus rdsuser#//oracledbrds.cwuabchlhlu.us-east-2.rds.amazonaws.com:1521/your_service_name

Remote streaming with Solr

I'm having trouble using remote streaming with Apache Solr.
We previously had Solr running on the same server where the files to be indexed are located so all we had to to was pass it the path of the file we wanted to index.
We used something like this:
stream.file=/path/to/file.pdf
This worked fine. We have now moved Solr so that it runs on a different server to the website that uses it. This was because it was using up too many resources.
I'm now using the following to point Solr in the direction of the file:
stream.file=http://www.remotesite.com/path/to/file.pdf
When I do this Solr reports the following error:
http:/www.remotesite.com/path/to/file.pdf (No such file or directory)
Note that it is stripping one of the slashes from http://.
How can I get Solr to index a file at a certain URL like i'm trying to do above? The enableRemoteStreaming parameter is already set to true.
Thank you
For remote streaming
you would need to enable remote streaming
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
and probably use stream.url for urls
If remote streaming is enabled and URL content is called for during
request handling, the contents of each stream.url and stream.file
parameters are fetched and passed as a stream.

Apache won't start on windows server

We are using Windows Server 2008 R2 Enterprise Edition. We have Apache 2.2 on it.
Whether I try to start him from the command line or via the Server Manager, I get this error
"A service specific error occurred: 1."
Google, Bing, and Yahoo found me sites that say this means that apache tried to access a file in a folder which doesn’t exist. (Is that true ?) Following that lead, more googling told me that I would find the culprit(s) in an error log file, purportedly on my server, in this subdirectory...
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs>
There is no record of my errors in any of the files in that subdirectory. There are, however, records of errors in the error.log file from two and three weeks ago. This, despite the fact that I can create that very error as many times as I want right here and now.
Immediate question: Where do I find the log of the errors that I have been creating today ?
Real question: why won't Apache start on my Windows Server ?
In conf folder, there should be file that tells Apache which port to run on. Make sure nothing else is on that port.