[MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread Steven Drewe
Hi all, We're very new to Marklogic and have a single PC windows install working fine but we tried using the AWS Cloudformation and had some problems so we launched a single node install on EC2 and we're now getting the following error when we try to connect on 8000 and complete the setup: 500

Re: [MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread David Lee
Several likely problems. 1) did you wait a while before going to port 8000 ? ( it takes a bit of time to fulluy config ) 2) Are you using the same user name as you used in CloudFormation ? 3) What CloudFormation template did you use ? From: general-boun...@developer.marklogic.com [mailto:genera

Re: [MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread Steven Drewe
Thanks for quick response, 1) Yes, a several minutes. 2) We did to start with and got 401 returned so we tried restarting the config by flushing /var/opt/MarkLogic - apologies if this was our mistake! 3) We had subnet problems with the cloud formation so we used: EU (Ireland) a

[MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Ashley Peacock
Hey, I have the basic idea of how to achieve creating a view based on the current indexes on a field, I just can’t tie all the pieces together so hoping someone can help! When calling admin:database-get-range-element-indexes() it returns a bunch of XML defining the indexes. I want to loop thro

Re: [MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Peter Kester
Hi Ashley, Try this: xquery version "1.0-ml"; declare namespace db = "http://marklogic.com/xdmp/database";; import module namespace admin = "http://marklogic.com/xdmp/admin"; at "/MarkLogic/admin.xqy"; import module namespace view = "http://marklogic.com/xdmp/view"; at "/MarkLogic/views.xqy

Re: [MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Christopher Hamlin
On Tue, Feb 2, 2016 at 10:55 AM, Ashley Peacock wrote: > Hey, > > > > I have the basic idea of how to achieve creating a view based on the > current indexes on a field, I just can’t tie all the pieces together so > hoping someone can help! > > > > When calling admin:database-get-range-element-ind

Re: [MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Ashley Peacock
Hi Peter, Thanks for the reply. When I try that code, I get: XDMP-UNBPRFX: (err:XPST0081) Prefix db has no namespace binding Any ideas? Thanks, Ashley [cid:image818465.PNG@81d95e71.44a37a73] [cid:image5e5b83.PNG@18d0fd5d.4ab2e691] Ashley Peacock Developer II Elevate Credit Internati

Re: [MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Ashley Peacock
Thanks for the reply. I’d love to use the JS library instead, but I couldn’t find the JS functions that would replicate the ones below – such as admin:database-get-range-element-indexes. Maybe I’m looking in the wrong place? Ashley From: general-boun...@developer.marklogic.com [mailto:general

[MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread mcundiff1
I have an instance of ML set up on AWS EC2. Heretofore all has worked well but am having trouble today. On the EC2 console it shows my instance with ML running with no problems. I am able to connect to ML qconsole with no problem. http://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com:8000/qconsole/

Re: [MarkLogic Dev General] Dynamically Create View Based On Indexes

2016-02-02 Thread Justin Makeig
You can import XQuery libraries into JavaScript modules and call functions as if they were JavaScript: 'use strict'; var admin = require('/MarkLogic/admin'); var config = admin.getConfiguration(); admin.databaseGetRangeElementIndexes(config, xdmp.database()); Justin -- Justin Makeig Director,

Re: [MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread David Lee
If you had problems on initialization then you should delete the CloudFormation stack and start from scratch. Then look in the various error logs to get further CloudFormation event logs AutoScaling event logs If the system comes up enough to respond to http then ssh into the system and look in /

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread Vitaly Korolev
Hi Morgan, It is strange to get response on 8000 and not on 8001. Have you tried a different browser? Do you know if anything changed on EC2 side? Double check the security group to make sure port 8001 is open. Regards, Vitaly Korolev Staff QA Engineer MarkLogic Corporation From: general-boun.

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread Richard Davies
Have you created a rule on Windows fire wall? Sent from my iPhone On 2 Feb 2016, at 18:43, "mcundi...@comcast.net" mailto:mcundi...@comcast.net>> wrote: Hi Vitaly, I get same result with Chrome and Firefox. To my knowledge nothing changed on EC2 side. Security gro

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread mcundiff1
Hi Vitaly, I get same result with Chrome and Firefox. To my knowledge nothing changed on EC2 side. Security group looks like this: Type Protocol Port Range Source SSH TCP 22 0.0.0.0/0 Custom TCP Rule TCP 7997 - 8100 0.0.0.0/0

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread Vitaly Korolev
In order to rule out issues on the client side, I'd try using a different machine. If you tried that already, try restarting the instance. Also check the error log on the OS and MarkLogic level to see if there are any port allocation issues. Vitaly Korolev Staff QA Engineer MarkLogic Corporatio

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread mcundiff1
Not on my local machine. It is an ubuntu desktop. - Original Message - From: "Richard Davies" To: "MarkLogic Developer Discussion" Sent: Tuesday, February 2, 2016 2:47:12 PM Subject: Re: [MarkLogic Dev General] ec2 connect issues Have you created a rule on Windows fire wall? Se

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread David Lee
Is there an ELB (load balencer) or VPC involved ? If so they have their own set of ACL's Its also conceivable the EC2 instance got updated and iptables changed (or your desktop). Suggest trying to connect form a different client host to eliminate possible local firewalls as a problem. Next I woul

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread Gontla Praveen
Hi, >From ec2 security group details I could see http ports not there ? Can you try giving the same configuration for http type as well and try to connect back ? Thanks Praveen. On Feb 2, 2016 1:43 PM, wrote: > Hi Vitaly, > > I get same result with Chrome and Firefox. > To my knowledge nothing

[MarkLogic Dev General] Regarding Time limit exceed issue

2016-02-02 Thread Mani, Sivasubramani (ELS)
Dear Team, We get time limit exceed issue while executing the "xdmp:lock-for-update". Kindly guide us how to getting rid from this. Thanks & Regards, Siva ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://d