Closed sunyi000 closed 9 years ago
The .htaccess file should be identical to https://github.com/au-research/ANDS-Registry-Core/blob/master/htaccess.sample Could you post your .htaccess file or is there any vhost configuration that is doing the recursion?
I dont have any vhost config. The error appears straight away after I launched the nectar image and 'yum update'
DirectoryIndex index.php
RewriteEngine on RewriteBase /
RewriteRule ^services/ registry/ [R=301,L]
RewriteCond $1 ^(css|img|js|less|lib|uploads|shared) RewriteRule ^assets/(.?)/(.)$ assets/$1/$2 [L] RewriteRule ^assets/(.?)/(.)$ applications/portal/$1/assets/$2 [L]
RewriteCond $1 ^(registry|roles|apps|developer) RewriteCond $2 ^(css|img|js|less|lib) RewriteRule ^(.?)/assets/(.?)/(.*)$ assets/$2/$3 [L]
RewriteCond $1 !^applications/./ RewriteRule ^(.?)/assets/(.?)/(.)$ applications/$1/$2/assets/$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUESTURI} !(.)/$ RewriteRule ^(._)$ $1/ [L]
RewriteCond $1 !^(index.php|robots.txt|favicon.ico|legacy|googledocverificationidfile.html) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUESTFILENAME} !-d RewriteRule ^(.?)/(._)$ ./index.php?/$2&app=$1 [L,QSA]
What I did was, installed from ANDS netcar image and then run through all the upgrade steps I could find on Github (git fetch, sql scripts etc) and installed the new harvester.
The first issue is related to PHP version. Dereferencing a method call directly is only possible from PHP 5.4. Suggest fixing this code to store in temporary variable before dereferencing: $tmp = getArray(); $secondElement = $tmp[1];
http://php.net/manual/en/language.types.array.php#example-102
On Tue Aug 05 2014 at 2:10:25 PM sunyi000 notifications@github.com wrote:
I dont have any vhost config. The error appears straight away after I launched the nectar image and 'yum update'
DirectoryIndex index.php
RewriteEngine on RewriteBase /
RewriteRule ^services/ registry/ [R=301,L]
RewriteCond $1 ^(css|img|js|less|lib|uploads|shared) RewriteRule ^assets/(.?)/(.)$ assets/$1/$2 [L] RewriteRule ^assets/(.?)/(.)$ applications/portal/$1/assets/$2 [L]
RewriteCond $1 ^(registry|roles|apps|developer) RewriteCond $2 ^(css|img|js|less|lib) RewriteRule ^(.?)/assets/(.?)/(.*)$ assets/$2/$3 [L]
RewriteCond $1 !^applications/. / RewriteRule ^(.?)/assets/(.?)/(.)$ applications/$1/$2/assets/$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUESTURI} !(. )/$ RewriteRule ^(._)$ $1/ [L]
RewriteCond $1 !^(index.php|robots.txt|favicon.ico|legacy|googledocverificationidfile.html) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUESTFILENAME} !-d RewriteRule ^(.?)/(._)$ ./index.php?/$2&app=$1 [L,QSA]
— Reply to this email directly or view it on GitHub https://github.com/au-research/ANDS-Registry-Core/issues/67#issuecomment-51147871 .
I think the recursion error was caused by '/assets', in .htaccess file. It is redirected from /assets/shared/dashboard_news/dashboard.html
is dashboard_news a folder under /assets/shared or a config somewhere? there're only two folders, 'topic' and 'spotlight' in /assets/shared
I commented out the assets part in .htaccess file for now
Yes, it's where we normally put the news article for the dashboard. You can create a folder dashboard_news
under assets/shared
and have a file called dashboard.html
there
regarding the php version issue, I fixed it on line 138 of transform.php but the same issue appears at other lines as well. Is that possible to let me know all the places where I need to fix? or please could you update those files which possibly contains the issue so I can just git pull? Do you suggest I should upgrade php to 5.4 or later? Thanks very much
Yes, it would be best to upgrade to PHP 5.4, efforts will be put in to determining the cause and make it compatible with older versions of PHP.
To assist with the issue, a NecTAR image has been created for R13, available publicly as ANDS-MetadataRegistry-v13-Test https://dashboard.rc.nectar.org.au/project/images_and_snapshots/23580597-72c1-4153-9f16-372f33cfd0c0/
Please have a look with this new image and let me know
Thanks Minh,I will try the image and let you know
Please note that the image is still in Testing
mode. To get it working on your particular server, you might have to change some configurations in the global_config.php
file
couple of issues i have so far after trying the image
Steps I have done:
Issues:
Questions and clarifications needed so far:
Thanks
Issue 1 was solved by creating a directory in /assets/shared/dashboard_news/
The request exceed the limit error is currently being looked at. We'll have a patch for it sooner or later.
Yes, the harvester and SOLR were supposedly installed in the image, however we ran into a couple of small problem with the harvester not starting as expected, this is also currently being looked at.
The harvester will provide the required harvest method and provider types for the registry, and RIFCS OAI will also be available as soon as the harvester is online in the image.
The second release candidate for the R13 snapshot is now available as: ANDS-MetadataRegistry-v13-Test-RC2 https://dashboard.rc.nectar.org.au/project/images_and_snapshots/e870a222-4259-46c0-bf82-9ed0d5fc50c7/
Sissvoc server preloaded with ANDS required vocabularies and harvester are now fully working with this image.
Hi Minh, I launched the new image and created a data source to test but had an error when click "Save". can you please help. The error trace is as below
TypeError: Cannot read property '0' of undefined
at HTMLInputElement.
I selected 'Do not have contributor pages' in edit settings page. Tried debug the ds_app.js code, $scope.ds.contributor.items is empty on line 224.
Thanks
It seems to be a bug, try auto generate a contributor page for the data source. I'll get around and fix this problem as soon as I'm able.
same error. Should it be institution_pages instead of contributor_pages ?
What happens if you unset the contributor page value from the database? try deleting the field in data_source_attributes where attribute is institution_pages
Could you cherry pick this commit https://github.com/au-research/ANDS-Registry-Core/commit/8050991bd115378b317d0ad23d62d1216629440d I've just done a quick fix and put it to our develop branch waiting to be deployed for R13.1
That eliminates the error, but the data source name is not displayed on 'Manage my data source' page
Can you check the value for the datasource title in the database? What's the value in the edit settings screen?
Thanks Minh, 2 other issues
1.Does the button "Import from Harvester" initiate harvest? Nothing happens after clicking the button, i could see from the log 'harvest scheduled to run at xxxxxxxx' but the number of records harvested is 0.
TypeError: Cannot read property 'length' of undefined at Function.e.extend.each (http://130.102.155.81/registry/assets/js/arms.min.js:2:31168) at http://130.102.155.81/registry/assets/maintenance/js/harvester_app.js:30:6 at h (http://130.102.155.81/assets/lib/angular.min.js:78:207) at http://130.102.155.81/assets/lib/angular.min.js:78:440 at Object.e.$eval (http://130.102.155.81/assets/lib/angular.min.js:89:39) at Object.e.$digest (http://130.102.155.81/assets/lib/angular.min.js:86:442) at Object.e.$apply (http://130.102.155.81/assets/lib/angular.min.js:89:198) at e (http://130.102.155.81/assets/lib/angular.min.js:95:357) at p (http://130.102.155.81/assets/lib/angular.min.js:98:443) at XMLHttpRequest.r.onreadystatechange (http://130.102.155.81/assets/lib/angular.min.js:100:49) angular.min.js:63 (anonymous function) angular.min.js:63 (anonymous function) angular.min.js:53 h angular.min.js:78 (anonymous function) angular.min.js:78 e.$eval angular.min.js:89 e.$digest angular.min.js:86 e.$apply angular.min.js:89 e angular.min.js:95 p angular.min.js:98 r.onreadystatechange
Hi Yi
Could you please check if the harvester is running with ps -ef | grep harvester
. If it's not running then can you start it?
There should be another image ANDS Registry R13 Test RC 3 that we released yesterday with some more bugfixes, hope this will help
it's running. actually to make sure harvester is running I did ./startHarvester.sh every time before I create a data source. Is it ok to do so? Thanks
It will create multiple instance of harvester, that will maybe slow the system down, but should be functioning.
The way the harvester works is that it reads from the harvests
table every interval and do it's harvest thing, then tell the importer to start importing. Can you please check if there's any entry in the harvests
table? there should be your datasource with the status of SCHEDULED
Could you please try out the ANDS-MetadataRegistry-v13-Test-RC3
image? we implemented a few fixes and incorporated that into this version.
Also, you can do git pull
on the repo to update to the latest version, if required
There's one entry in the harvests table. From the log, all I get is the below message, and there's no records harvested. I go to the harvester dashboard and the above 'length' error appears
Harvest scheduled to run at 2014-08-14 09:50:19 URI: http://dap.ozflux.org.au/oai/provider Harvest Method: OAI-PMH Harvester Provider Type: rif Advanced Harvest Mode: STANDARD
Can I just git pull on the RC2 image, instead of creating a new one?
have a try on doing a git pull on the harvester at /usr/local/harvester
and another one at /var/www/core/
.
I believe the only thing that is not in the master
branch yet is the daemon implementation of the harvester
can you check the SYSTEM TIME? if the system is running at UTC and the harvest is scheduled in AEST. the harvest won't start for 10 hours
On 14/08/2014 10:56 am, Minh Duc Nguyen wrote:
It will create multiple instance of harvester, that will maybe slow the system down, but should be functioning.
The way the harvester works is that it reads from the |harvests| table every interval and do it's harvest thing, then tell the importer to start importing. Can you please check if there's any entry in the |harvests| table? there should be your datasource with the status of |SCHEDULED|
— Reply to this email directly or view it on GitHub https://github.com/au-research/ANDS-Registry-Core/issues/67#issuecomment-52131828.
I did git pull at /usr/local/harvester and /var/www/core. System time is Thu Aug 14 11:17:04 EST 2014. checked harvester by doing ps -ef | grep harvester
still no records are harvested, and the same 'length' error in Harvester dashboard page
I was logged out from ORCA and could not log back in again using superuser/superuser. I did not change anything in authentication_built_in table in dbs_roles.
I will try putting a new user in that table and log in.
The fix for the login issue is a script in the maintenance migrate_roles_to_r131
this basically changed all t
value into 1
value. This will enable user login for the master
branch.
I followed the instructions here to create a new VM with ANDS netctar image.
http://community.ands.org.au/viewtopic.php?f=211&t=3271
and then upgraded it to R13 based on the R12, R13 installation notes on Github. After all the installations, I got the following issues
I have no idea about the first apache error. The 2nd apache error seems related to the .htaccess file in ANDS R11 image. Could anyone please help?
Thanks