Unable to delete data file

17 views
Skip to first unread message

genom...@gmail.com

unread,
Apr 24, 2019, 11:25:27 AM4/24/19
to SEEK Developers
Hi,

I installed SEEK 1.8.1 recently on our Linux machine to explore the features of SEEK. I found that I am not able to delete data file. When selecting Administration -> Delete Data File, I am getting the following error.

503
The service you are trying to use is currently unavailable.
The search service is currently down. We have been notified and the issue will be fixed as soon as possible.
Please try again later.

The production.log says the following

E, [2019-04-24T11:17:48.446529 #7625] ERROR -- : ERROR - RSolr::Error::ConnectionRefused (Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><id>DataFile 1</id></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP http://localhost:8983/solr/default/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil})
E, [2019-04-24T11:17:48.450627 #7625] ERROR -- : Sending execption ERROR - RSolr::Error::ConnectionRefused (Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><id>DataFile 1</id></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP http://localhost:8983/solr/default/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil})
I, [2019-04-24T11:17:59.154518 #7625]  INFO -- : 
Sent mail to jin...@mit.edu (10091.5ms)
I, [2019-04-24T11:17:59.160069 #7625]  INFO -- : method=DELETE path=/data_files/1 format=html controller=DataFilesController action=destroy status=503 duration=10925.41 view=4.59 db=34.65 time=2019-04-24 11:17:48 -0400 user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7

Can someone point out to me what is wrong?

Thanks,
Jingzhi

alanrw

unread,
Apr 24, 2019, 11:48:34 AM4/24/19
to SEEK Developers
Hello

The errors suggest that if Solr is not running then deletion of an asset will fail. Can you try deleting something else, e.g. a presentation, to see if you get the same error? Is it only that data file that it fails on?

Alan

genom...@gmail.com

unread,
Apr 24, 2019, 4:08:13 PM4/24/19
to SEEK Developers
Hi Alan,

Thanks for the reply. Yes, I got the same problem when deleting a presentation. So Solr is not running.

$ sudo /etc/init.d/solr-seek start
Starting Sunspot
Successfully started Solr ...
$ cat /srv/rails/seek/solr/pids/production/sunspot-solr-production.pid
20367
$ ps aux | grep 20367

It says the Solr is started and the pid was created. But ps aux | grep 20367 does not return anything. So there must be something wrong with starting Solr even if it says started. How do I debug this further?

Thanks,
Jingzhi

alaninmcr

unread,
Apr 25, 2019, 8:29:11 AM4/25/19
to seek-de...@googlegroups.com
Can you try searching for an asset? This is just to check what is
happening with solr

Alan
> --
> You received this message because you are subscribed to the Google
> Groups "SEEK Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to seek-develope...@googlegroups.com
> <mailto:seek-develope...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

genom...@gmail.com

unread,
Apr 25, 2019, 12:10:02 PM4/25/19
to SEEK Developers
Searching returns the following error.

The search service is currently not running, and we've been notified of the problem. Please try again later

I don't think Solr is running even though "sudo /etc/init.d/solr-seek start" says it is started successfully.

Thanks,
Jingzhi
Reply all
Reply to author
Forward
0 new messages