惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
N
News and Events Feed by Topic
量子位
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
Hugging Face - Blog
Hugging Face - Blog
S
Security Affairs
J
Java Code Geeks
Schneier on Security
Schneier on Security
Google Online Security Blog
Google Online Security Blog
TaoSecurity Blog
TaoSecurity Blog
小众软件
小众软件
S
SegmentFault 最新的问题
www.infosecurity-magazine.com
www.infosecurity-magazine.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
博客园 - 聂微东
T
Tor Project blog
博客园 - Franky
C
CERT Recently Published Vulnerability Notes
Cyberwarzone
Cyberwarzone
罗磊的独立博客
博客园_首页
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
腾讯CDC
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
博客园 - 【当耐特】
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
博客园 - 司徒正美
AWS News Blog
AWS News Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
G
GRAHAM CLULEY
V
V2EX
L
LINUX DO - 最新话题
H
Heimdal Security Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家

博客园 - 徐中

[BTS] WCF-SQL : You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels [BTS]a non-serializable object type 'System.Xml.XmlNode varXmlNode' can only be declared within an atomic scope or service [BTS] BizTalk WCF-SQL Adapter 高级应用 [BTS] BizTalk EDI character set and separator settings [ThingWorx] Install Guideline [BTS] BizTalk EDI AS2 Error 1 [BTS] BizTalk With EF [BTS] Exception occurred when persisting state to the database [BTS] MSDTC [BTS] The value "" for the property InboundId is invalid [Android] Android Sutdio on Surface Pro 3 [RabbitMQ] AMQP close-reason, initiated by Library, code=541 [RabbitMQ] Connection failed [BTS] The adapter "SQL" raised an error message. Details "The Messaging Engine is shutting down. ". [BTS]The join order has been enforced because a local join hint is used.;Duplicate key was ignored.". [BTS] The external credentials in the SSO database are more recent. [BTS] SQL Adapter. New transaction cannot enlist in the specified transaction coordinator [BTS] WCF-SAP adapter [BTS] Deploy Command
[ThingWorx] Install PostgreSQL Issue
徐中 · 2016-12-31 · via 博客园 - 徐中

ThingWorx application need PostgreSQL, I try configurate it in macbook. The first step is install PostgreSQL. 

Install PostgreSQL is very easy. Download it from www.postgresql.org, and install it.

But after installing db, I need create the database and space. I got error by following command.

postgres=# CREATE TABLESPACE thingworx
postgres-#   OWNER twadmin
postgres-#   LOCATION '/Work/ThingWorx/ThingworxPostgresqlStorage/thingworx';
ERROR:  could not set permissions on directory "/Work/ThingWorx/ThingworxPostgresqlStorage/thingworx": Operation not permitted
postgres=# 
ERROR:  could not set permissions on directory "/Work/ThingWorx/ThingworxPostgresqlStorage/thingworx": Operation not permitted

After some search in bing and baidu, I found the solution and reason.

The folder I was created by 'Eric' user, but PostgreSQL need set the creator as 'postgres'. Than I change the folder creator by following command.

$sudo chown postgres /Work/ThingWorx/ThingworxPostgresqlStorage/thingworx

$sudo chown postgres /Work/ThingWorx/ThingworxPostgresqlStorage/thingworx

After change the folder's owner, it work well.

BTW, If you create table or space repear the permission issue, please check the PostgreSQL's service account have full permission for the folder.