Quantcast
Channel: Superdesk Development Discussions on Sourcefabric Forum
Viewing all 288 articles
Browse latest View live

Changing an item's content profile

$
0
0
Hi,
Is there a way to change an item's content profile after create the item or to add and remove some fields from the item?

Scenario:
1. Create a text based on some content profile
2. Duplicate the text and choose another content profile to start typing different content 
3. Remove the abstract field

Add custom fields to a content profile

$
0
0
Hi, 
I need to add custom fields to a content profile like "price", "highlight type", "tax", "dollar price", "currency" etc..
Is it possible?

Add a multifile or multiimage field to a content profile

$
0
0
Hi,
How can I add a multifile field or a multiimage field to a content profile?

Scenario 1:
1. Create a text item based on some content profile
2. Add five images to a featured media field

Scenario 2
1. Create a text item based on some content profile
2. Add one jpg image to a featured media field
3. Add five PDF documents to a second media field

Liveblog: Stuck (again) at prepopulate

$
0
0
Using local instructions here:

https://github.com/liveblog/liveblog

(although I'm installing on a remote AWS instance)

Ubuntu Linux 16.04

Can't get past here: python3 manage.py app:initialize_data;

Port 9200 is open but that's where it gets stuck. Something to do with elasticsearch. Please help!

Error snippet:

(env) paul@signal:/opt/liveblog-master/server$ python3 manage.py app:initialize_data;
INFO:flask.ext.cors:Configuring CORS with resources: {'/*': {'vary_header': True, 'supports_credentials': False, 'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'automatic_options': True, 'send_wildcard': False, 'intercept_exceptions': True, 'resources': '/*'}}
INFO:flask.ext.cors:Configuring CORS with resources: {'/*': {'vary_header': True, 'supports_credentials': False, 'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'automatic_options': True, 'send_wildcard': False, 'intercept_exceptions': True, 'resources': '/*'}}
INFO:flask.ext.cors:Configuring CORS with resources: {'/*': {'vary_header': True, 'supports_credentials': False, 'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'automatic_options': True, 'send_wildcard': False, 'intercept_exceptions': True, 'resources': '/*'}}
INFO:flask.ext.cors:Configuring CORS with resources: {'/*': {'vary_header': True, 'supports_credentials': False, 'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'automatic_options': True, 'send_wildcard': False, 'intercept_exceptions': True, 'resources': '/*'}}
INFO:flask.ext.cors:Configuring CORS with resources: {'/*': {'vary_header': True, 'supports_credentials': False, 'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'automatic_options': True, 'send_wildcard': False, 'intercept_exceptions': True, 'resources': '/*'}}
INFO:superdesk.websockets_comms:Connecting to broker redis://localhost:6379
INFO:superdesk.websockets_comms:Connected to broker redis://localhost:6379
INFO:ldap3:ldap3 library initialized - logging emitted with loglevel set to DEBUG - available detail levels are: OFF, ERROR, BASIC, PROTOCOL, NETWORK, EXTENDED
INFO:superdesk:got lock task=elastic host=hostid:signal pid:767
WARNING:elasticsearch:HEAD http://localhost:9200/liveblog [status:N/A request:0.000s]
Traceback (most recent call last):
  File "/opt/liveblog-master/server/env/lib/python3.5/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/opt/liveblog-master/server/env/lib/python3.5/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/opt/liveblog-master/server/env/lib/python3.5/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

Steps to upgrade Superdesk to the latest release

$
0
0
Please i need steps to upgrade Superdesk v1.0.0-beta.1 to the latest release. i am running ubuntu 14.04.
Thanks

backup e restore - elasticdump

$
0
0
Gentlemen,
I am using the scripts described below to
To back up a Moneda base from Superedesk and
Restore on another machine,
But Restore does not
Is working as it should, that is,
Restore does not update the colletions in the mongo ..

Error Messages: Duplicate Keys

what is missing ?

Someone could give me some help. About this problem

Backup Script================
#!/bin/bash
mongodump
elasticdump \
--output=/var/lib/mongodb/index_mapping.json \
--type=mapping

elasticdump \
--output=/var/lib/mongodb/index_data.json \
--type=data 


Script do Restore
=================
#!/bin/bash
mongorestore dump
elasticdump \
--input=/var/lib/mongodb/index_mapping.json \

elasticdump \
--input=/var/lib/mongodb/index_data.json

Post by email

$
0
0
Grisha,

Many thanks for the tip above ..
Backup / restore is working perfectly
But for this I had to INSTALL the mongo again
As per the commands below ...

sudo apt-get install -y \
mongodb-org=3.2.12 \
mongodb-org-server=3.2.12 \
mongodb-org-shell=3.2.12 \
mongodb-org-mongos=3.2.12 \
mongodb-org-tools=3.2.12

Now I ask you for another help for the module
Of Publication ...

I installed Postfix on the server successfully ....
I configured superdesk.sh as attached file
However, when I run TYPE EMAIL ...
This email does not arrive ...

The Superdesk and Postfix configuration files
for analysis ...

This is my setup Edit Subscriber "Pedro Airton"

name: Pedro Airton
email to broadcat: pairton7@gmail.com
target type: All
target type: boht
formato: NINJS
Type of delivery: email
destination: pairton7@gmail.com

Email publishing

$
0
0
Grisha
I installed and configured the exim4 mail server on my server as attached update-exim4.conf.conf file, as well as attached the Superdesk.sh file with the current configuration ...

Even so when I use the module of Publication delivery by email ... I am not successful ..

Could you help me in that sense ...
If you can show me the exim4 settings that you use .. would already be of great help ..

In the attachment the configuration files

Problem sending file by email

$
0
0




@page { margin: 2cm }
pre.cjk { font-family: "Nimbus Mono L", monospace }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }



Senhores,





Could someone give me a lux to solve this mystery ..


following:






I have an article published with status of "success", but
the email does not reach the destination, it follows my settings
below:





Publish module
Subscriber configuration

target type = all

meida type = both

formato = NINJS

tipo de entrega =
e-mail

destinatario =
pairton7@gmail.com




Postfix main.cf
file configuration








@page { margin: 2cm }
pre.cjk { font-family: "Nimbus Mono L", monospace }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }



















smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = zOOngo.novojornal.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = novojornal.jor.br, novonoticias.com, gmail.com, localhost.localdomain, localhost, 192.168.1.241
relayhost =
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
mailbox_command =

Update-exim4.con file configuration

dc_eximconfig_configtype='internet'
dc_other_hostnames='localhost.localdomain, localhost'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains='novonoticias.com;novojornal.jor.br;gmail.com'
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
Superdesk.sh file configuration
HOST='localhost'
HOST_SSL=''
DB_HOST='localhost'
DB_NAME='superdesk'
SUPERDESK_TESTING=''
MAIL_FROM = 'inovo.digital@gmail.com'
MAIL_PASSWORD = ''
MAIL_PORT = 25
MAIL_SERVER = 'localhost'
MAIL_USERNAME = ''
MAIL_USE_SSL = False
MAIL_USE_TLS = False
Please someone could give me a help on how to solve this problem ...
The does not arrive at the recipient, even the superdesk returning with SUCCESS ...

Logging tool

$
0
0




@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }



Grisha

Could you tell me what tool (class or routine) Superdesk writes the system logs to ...

I ask this because,

I need to know the value (content) of some variaves and return of functions with Superdesk being running, hence following its orientation ...

I will use the logging routines for this purpose ..

So could you give me a hint how Superdesk writes .logs

Thank you very much in advance

Correct syntax for Copyright Vocabulary

$
0
0
Can someone provide me with the correct syntax for the copyright vocabulary.   No sample data was included and I could use a starting point.

Errors at end of installation

$
0
0
I'm starting from a fresh Ubuntu 16.04 installation and using 'curl -s https://raw.githubusercontent.com/superdesk/fireq/master/files/superdesk/install | sudo bash' as suggested on the GitHub page.

I get the following at the end of the installation and after checking file structures, nothing seems to be in its place. I've started from 2 separate new/clean Ubuntu installations and can't seem to get anywhere.

Any thoughts?

npm WARN client No description
npm WARN client No repository field.
npm WARN client No license field.
+ npm install
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated jquery@1.5.1: Versions of the jquery npm package older than 1.9.0 are patched versions that don't work in web browsers. Please upgrade to >=1.11.0.
bash: line 174: 24454 Killed                  npm installt care about contents; nuking /opt/superdesk/client/node_modules/.staging/moment-9641251a/node_modules

Planning Installation

$
0
0
Folks

I'm trying to install the "planning" plugin, I'm not having success, someone who already has "planning" working, could help me by telling me how to INSTALL PLANNING ..

Since I have already done any help

Problems installing Planning

$
0
0
Guys, I'm trying to install "Planning"
From the address instructions

But when it comes to this part
Git + git: //github.com/superdesk/superdesk-planning.git@a5b14c23e#egg=superdesk-planning

However when I run the terminal the command below return the following error:
Git + git: //github.com/superdesk/superdesk-planning.git@a5b14c23e#egg=superdesk-planning: No such file or directory

Could you give me an answer to this problem?

ingest photos

$
0
0
Anyone who uses superdesk can now ingest photos via superdesk

Please if anyone has already done it successfully please could help me, how to configure the superdesj ingest to import file type jpg, jpeg, png
Thanks any help

ingest Photos

$
0
0
Gentlemen, I'm trying to import photos through
Ingest "Feed File", but it is meretornando this error that showed
Below ... could someone give me some help about the same ...

This error memo is found in work.log

Traceback (most recent call last):
  File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/io/commands/update_ingest.py", line 477, in ingest_item
    update_renditions(item, href, old_item)
  File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/io/commands/update_ingest.py", line 532, in update_renditions
    content, filename, content_type = download_file_from_url(href)
  File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/media/media_operations.py", line 44, in download_file_from_url
    raise SuperdeskApiError.internalError('Failed to retrieve file from URL: %s' % url)
superdesk.errors.SuperdeskApiError: 500: Failed to retrieve file from URL: http://localhost/photo/binary/marcia.jpg
'bool' object is not iterable level=ERROR process=PoolWorker-4

Difficulties with installing liveblog

$
0
0
Having difficulties with the install for live blog on an ubuntu box.
there are complains about a timezone when populating, but server doesn't seem to want to start in the honcho command...

(env) root@vps415215:~/liveblog/server# honcho -f ../docker/Procfile-dev start
.......
12:03:55 beat.1 | pytz.exceptions.UnknownTimeZoneError: ''
12:03:55 system | wamp.1 stopped (rc=1)
12:03:55 system | sending SIGTERM to beat.1 (pid 2848)
12:03:55 system | sending SIGTERM to work.1 (pid 2849)
12:03:55 system | sending SIGTERM to rest.1 (pid 2850)
12:03:55 rest.1 | [2017-05-31 12:03:55 +0200] [2855] [INFO] Handling signal: term
12:03:55 system | beat.1 stopped (rc=-15)
12:03:55 system | work.1 stopped (rc=-15)
12:03:55 rest.1 | [2017-05-31 12:03:55 +0200] [2870] [ERROR] Exception in worker process:
12:03:55 rest.1 | Traceback (most recent call last):
12:03:55 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
12:03:55 rest.1 |     worker.init_process()
12:03:55 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 118, in init_process
12:03:55 rest.1 |     self.wsgi = self.app.wsgi()
.....
12:03:55 rest.1 |   File "/root/liveblog/server/env/src/superdesk-core/superdesk/utils.py", line 24, in <module>
12:03:55 rest.1 |     from superdesk.default_settings import ELASTIC_DATE_FORMAT
12:03:55 rest.1 |   File "/root/liveblog/server/env/src/superdesk-core/superdesk/default_settings.py", line 461, in <module>
12:03:55 rest.1 |     DEFAULT_TIMEZONE = tzlocal.get_localzone().zone
12:03:55 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/tzlocal/unix.py", line 123, in get_localzone
12:03:55 rest.1 |     _cache_tz = _get_localzone()
12:03:55 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/tzlocal/unix.py", line 62, in _get_localzone
12:03:55 rest.1 |     return pytz.timezone(etctz.replace(' ', '_'))
12:03:55 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/pytz/__init__.py", line 181, in timezone
12:03:55 rest.1 |     raise UnknownTimeZoneError(zone)
12:03:55 rest.1 | pytz.exceptions.UnknownTimeZoneError: ''
12:03:55 rest.1 | [2017-05-31 12:03:55 +0200] [2870] [INFO] Worker exiting (pid: 2870)
12:03:56 rest.1 | [2017-05-31 12:03:56 +0200] [2871] [ERROR] Exception in worker process:
12:03:56 rest.1 | Traceback (most recent call last):
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
12:03:56 rest.1 |     worker.init_process()
......
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 194, in run
12:03:56 rest.1 |     handler()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 229, in handle_term
12:03:56 rest.1 |     raise StopIteration
12:03:56 rest.1 | StopIteration
12:03:56 rest.1 | 
12:03:56 rest.1 | During handling of the above exception, another exception occurred:
12:03:56 rest.1 | 
12:03:56 rest.1 | Traceback (most recent call last):
12:03:56 rest.1 |   File "/root/liveblog/server/env/bin/gunicorn", line 11, in <module>
12:03:56 rest.1 |     sys.exit(run())
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
12:03:56 rest.1 |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 189, in run
12:03:56 rest.1 |     super(Application, self).run()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 72, in run
12:03:56 rest.1 |     Arbiter(self).run()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 197, in run
12:03:56 rest.1 |     self.halt()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 297, in halt
12:03:56 rest.1 |     self.stop()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 342, in stop
12:03:56 rest.1 |     time.sleep(0.1)
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 214, in handle_chld
12:03:56 rest.1 |     self.reap_workers()
12:03:56 rest.1 |   File "/root/liveblog/server/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
12:03:56 rest.1 |     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
12:03:56 rest.1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
12:03:56 system | rest.1 stopped (rc=-15)

Anybody come across this? Searching for a way forward.

Thanks,
Liam

Freelance Help Wanted to Install Superdesk, Booktype, and Newscoop

$
0
0
Hello all

I would like to create fresh installations of Superdesk, Booktype, and Newscoop on an Amazon AWS instance, along with Ubuntu Desktop for a GUI.

If interested in this as a freelance project, contact me via private message.

Thanks.

Superdesk version 40f3d97

$
0
0
Friend could help me on the following:

I listed superdesk from this link
The installation typically occurred in Superdesk version 40f3d97

However if I run "grunt build" or "grunt server" from the past \ client

Superdesk no longer finds the mongodb base
what should I do ?

It follows in print how the screen looks.
I call Localhost from the browser

Please give me a light how to solve

correct encoding of UTF-8

$
0
0
Can someone help me in the following problem ...

I'm uploading photos manually by Superdesk, but the metadata of the photo is coming without the correct encoding of UTF-8 .. thus making some names ineligible .. could you tell me how I ran
Viewing all 288 articles
Browse latest View live